Beautiful Math
Path

Linear algebra · Lesson 1

Vectors

A vector is magnitude with direction: an arrow in space, or an ordered list of numbers. That dual view is why linear algebra powers both geometry and data.

Core ~14 minDeep study ~32 minWhat is a vector?How do you add vectors?

How this idea was born

Wind has speed and direction. A force pushes a certain amount along a heading. Displacement says how far and which way you walked. For centuries, physics needed a citizen that could carry both magnitude and direction without collapsing into a single bare number.
Josiah Willard Gibbs (1839-1903), with Heaviside and others, helped push vector language into a form physicists could compute with, amid competing formalisms. MacTutor sketches the career. Steal the ethic: choose representations that make the next calculation inevitable, not ornamental. As an arrow a vector knows direction and length; as a list it knows components along axes. That dual view is why the same language powers geometry, physics, and data tables.
This chapter is the foundation for a modern rereader before matrices as maps, alignment via dot products, and bases as scaffolding. If you only memorize column notation, you miss the geometry. If you only draw arrows, you cannot scale to a million features.

First principles

A vector can be:
  1. A geometric arrow (direction + length)
  2. A coordinate list (v1,v2,,vn)(v_1, v_2, \ldots, v_n)
vw
A vector is magnitude plus direction - an arrow, or a list of coordinates.
Addition tip-to-tail matches componentwise sums. Scaling cvc\mathbf{v} stretches (or flips if c<0c < 0). The zero vector is the arrow of no displacement and the list of all zeros.
Linear combinations av+bwa\mathbf{v} + b\mathbf{w} fill a line or a plane (or more) depending on how independent v\mathbf{v} and w\mathbf{w} are. That is a preview of span; the bases chapter will make independence precise.

Worked intuition

Tip-to-tail addition is a physical story: walk one displacement, then another. The shortcut home is the sum. Componentwise addition is the same story told in coordinates. When data scientists say "vector," they often mean the coordinate list - but the arrow intuition still teaches what scaling and adding do.
If u\mathbf{u} points east and v\mathbf{v} points north, u+v\mathbf{u}+\mathbf{v} points northeast with a length the Pythagorean theorem can compute. Geometry lesson, still paying rent.
One row of a spreadsheet is a vector. Features become axes. Distance and angle become geometry on data. Multiplying by 1-1 reverses direction. Multiplying by 22 doubles length without turning (in the usual Euclidean picture).
xy(3, 4)
Coordinates turn geometry into numbers: every point is an ordered pair (x, y).
Algebrica's vectors page develops magnitude, direction, and the dual arrow/list view with careful diagrams. Read it when you want more than the cartoon arrow.

Common confusions

Speed without direction. A weather report that says "wind 40" without a heading is half a vector. Sailors, pilots, and robots need the missing half. Data science makes the same demand: a feature without an axis meaning is a number adrift.
Adding vectors from different spaces. You can add two length-3 lists only when corresponding components mean the same axes. Age plus income is meaningful as a feature vector only after you decide those are coordinates of one record, not after you pretend the units magically match for every operation.
Position versus free vector. In geometry pedagogy, arrows can slide (free vectors) or be anchored at the origin as position vectors. The algebra is related; the story differs. Be explicit which picture you are using.
"High-dimensional" as mystical. Dimension nn means nn independent axes in the list view. It is bookkeeping with geometry attached, not a portal to another metaphysics.
Treating one-hot IDs as geometrically meaningful distances. Index 77 is not "near" index 88 in meaning just because the integers are neighbors. Embedding spaces try to fix that; raw IDs do not.
Forgetting origin dependence in some applied settings. Physics free vectors slide; some data vectors are anchored interpretations. State your picture.

History & stories

Josiah Willard Gibbs helped give vector analysis a practical language physicists could compute with, amid competing formalisms (including quaternion traditions associated with figures such as Hamilton and later debates involving Heaviside and others). MacTutor's Gibbs biography is the reliable short reference. He cared that tools serve thinking about the physical world.
The ethic is representation discipline: when several notations compete, prefer the one that makes the next calculation inevitable.

Real world

Wind has speed and direction. A force pushes a certain amount along a heading. Displacements add as vectors: walk east then north; net displacement is the diagonal. Robotics, navigation, and animation stacks live on these additions all day.
A data record with age, income, and score is a vector in feature space. Once axes are fixed, "nearby" becomes a geometric question.

Open when you want the machine-learning connection. Skip freely.

Field notes, extra examples, and glossary live here when you want more than the core path.

Carry this forward

  • Vectors are arrows and lists under one set of addition and scaling laws.
  • Linear combinations preview span; independence waits for the bases chapter.
  • Next: matrices as machines that send vectors to vectors.

Read more

Go deeper when curiosity hits - videos, essays, and primary trails.

Check your understanding

A short learning loop - try a few, learn from misses, mark complete when you have engaged. No timer, no scoreboard.

1.A vector is…
2.Scaling by -2…
3.Tip-to-tail addition matches…
4.Step Into the Light (Strogatz) frames vectors as…
5.A spreadsheet row is…

Try at least 3 core prompts, or choose I'll return later.