2D Vectors & Component-wise Representation
A 2D vector is a quantity with both magnitude and direction in the plane, written component-wise as . Key result: any planar vector decomposes uniquely into horizontal and vertical components, and all vector operations (addition, scaling, magnitude) reduce to simple arithmetic on these components. Applies to physics (forces, velocities), computer graphics, navigation, and engineering. Formalized through the 19th-century work of Hamilton, Grassmann, and Gibbs.
Every vector in the plane can be broken into two perpendicular pieces — one along the -axis and one along the -axis — and these pieces add back up to recreate the original. Because the axes are independent, operations done on the -components never interfere with the -components. This decoupling is what turns geometry into arithmetic: to add vectors you add their components separately; to scale, you scale each component; to find length, you apply the Pythagorean theorem to the two components.
Formal Statement
A 2D vector is an ordered pair of real numbers:
Derivation hint: any planar vector is a unique linear combination of the basis vectors and ; the coefficients are the components. where:
- is the horizontal (x) component (a scalar, can be negative),
- is the vertical (y) component (a scalar, can be negative),
- is the unit vector along the positive -axis,
- is the unit vector along the positive -axis.
The magnitude (length) of is:
Derivation hint: apply the Pythagorean theorem to the right triangle with legs and and hypotenuse . The direction angle measured counterclockwise from the positive -axis is:
Derivation hint: from ; use atan2 (not plain arctan) to resolve which of the four quadrants the vector points into. Conversely, given magnitude and angle , the components are recovered by:
Derivation hint: project the hypotenuse onto each axis using the definitions of cosine (adjacent) and sine (opposite).
For vectors , and a scalar :
Derivation hint: place head-to-tail after ; the resultant's horizontal displacement is the sum of horizontal displacements, likewise vertically.
Derivation hint: stretching the arrow by factor stretches its shadow on each axis by the same factor (similar triangles).
Derivation hint: expand via the Law of Cosines and compare with the component expansion; is the angle between them.
Why It Holds / Derivation
We show that geometric head-to-tail addition equals component-wise addition [5].
Step 1. Represent as a directed arrow starting at the origin and ending at point . By definition the components are the horizontal and vertical displacements from to .
Step 2. Place the tail of at the head of . Since produces horizontal displacement and vertical displacement , the head of lands at the point
Step 3. The resultant is the arrow from to . Its horizontal displacement is and its vertical displacement is — exactly the components of .
Step 4. Therefore , which is [5]. The key fact used is that total displacement along each axis is the independent sum of the partial displacements — horizontal motion never contributes to vertical position.
∎Step 1. The vector runs from to .
Step 2. Drop a perpendicular from to the -axis, meeting it at . Triangle has a right angle at .
Step 3. Leg has length and leg has length . The hypotenuse has length .
Step 4. By Pythagoras, (the squares discard the sign issue), giving , which is [2].
∎The modern component notation comes largely from Gibbs, an American mathematical physicist at Yale. Drawing on Hamilton's quaternions and Grassmann's algebra of extension, Gibbs distilled a streamlined "vector analysis" in lecture notes (1880s) that separated the genuinely useful operations — dot product, cross product, gradient — from the heavier quaternion machinery. His student E. B. Wilson published these as Vector Analysis (1901), which set the notation used in classrooms today.
Building Intuition
Think of a vector as instructions for a walk: "go 3 steps east, then 4 steps north." The pair captures the whole trip, and where you started doesn't matter — only the net displacement. The two numbers are independent because east-west walking changes only your east-west position. This is why adding two trips means adding their easting separately from their northing. The magnitude is the straight-line "as the crow flies" distance, and the angle tells you the compass bearing. Components are just the shadows the arrow casts onto the two axes when lit from above and from the side.
Worked Examples
Given: A hiker walks km, then km. Find the resultant displacement, its magnitude, and its bearing from east.
Step 1 — Add components (using [5]):
Step 2 — Magnitude (using [2]):
Step 3 — Direction (using [3]):
Answer:
Given: A force of magnitude acts at from the positive -axis. Resolve it into components.
Step 1 — Horizontal component (using [4]):
Step 2 — Vertical component (using [4]):
Step 3 — Check magnitude (using [2]):
Answer:
The negative -component correctly reflects that points up and to the left.
Common Misconceptions
Magnitudes do not add unless the vectors are parallel. A common error is to compute . This holds only when and point the same direction. In general, the triangle inequality gives
Always add the components first, then take the magnitude of the result — never add the magnitudes directly.
Use `atan2`, not plain `arctan`. The formula returns values only in and cannot distinguish a vector pointing into the second quadrant from one in the fourth. Plain arctan gives the same answer for and , which point in opposite directions. The two-argument `atan2(v_y, v_x)` inspects both signs and returns the correct angle in all four quadrants.
Consider and . Naïvely adding magnitudes suggests a result of length . But:
The correct length is , not — because the vectors are perpendicular, the "extra" length is lost to the change in direction. This single example demolishes the magnitude-addition fallacy.
Connections
2D vectors are the gateway to a web of related ideas. They generalize directly to 3D Vectors by adding a -component and a basis vector. The Dot Product (equation [7]) extracts the angle between vectors and underlies the notion of projection and work. The whole framework rests on The Cartesian Coordinate System, which supplies the axes onto which components are measured, and on the Pythagorean Theorem, which converts components into length. When vectors are packed into rows and columns, they become the objects acted on by Matrices and Linear Transformations, where rotation and scaling are encoded as matrix multiplication. Finally, the same arrows reappear as Complex Numbers, where is written and addition is identical.
Real-World Applications
Historical Development
Subtleties & Limits
Component representation is not absolute: the components themselves depend entirely on the chosen axes, while geometric quantities like magnitude and the angle between two vectors do not. This raises a deep question explored in linear algebra and physics — which quantities are coordinate-independent (invariant), and which are mere artifacts of bookkeeping? A vector "is" the same arrow whether you describe it as or, after rotating your axes by , as some other pair; the invariant is what physics actually cares about. Pushing this principle to curved spaces and accelerating frames leads to tensor analysis and ultimately the machinery of general relativity, where naïve component arithmetic must be replaced by rules that track how components transform when the coordinate grid itself bends.
See Also
3D Vectors · The Dot Product · The Cross Product · The Cartesian Coordinate System · Complex Numbers · Matrices and Linear Transformations · Trigonometry of Right Triangles · Projectile Motion