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.

A two-dimensional vector is an ordered pair of real numbers representing a directed quantity in the plane — equivalently, an arrow from one point to another whose only properties that matter are its length and the way it points. The component-wise representation expresses this arrow as the sum of independent horizontal and vertical pieces, transforming geometric reasoning into algebra. This matters because nearly every problem in mechanics, graphics, and navigation involves combining directional quantities, and component form makes such combinations purely mechanical. The surprising fact is that an arrow which "lives" in geometric space — with no preferred numbers attached — becomes a precise pair of coordinates only after you choose axes, yet the geometric truths (like a vector's length) come out identical regardless of which axes you picked.

The Core Insight

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

2D Vector and Components

A 2D vector is an ordered pair of real numbers:

1
⟳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:

2
⟳apply the Pythagorean theorem to the right triangle with legs and and hypotenuse .

The direction angle measured counterclockwise from the positive -axis is:

3
⟳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:

4
⟳project the hypotenuse onto each axis using the definitions of cosine (adjacent) and sine (opposite).

Component-wise Operations

For vectors , and a scalar :

5
⟳place head-to-tail after ; the resultant's horizontal displacement is the sum of horizontal displacements, likewise vertically.
6
⟳stretching the arrow by factor stretches its shadow on each axis by the same factor (similar triangles).
7
⟳expand via the Law of Cosines and compare with the component expansion; is the angle between them.

Why It Holds / Derivation

Component Addition from the Triangle Rule

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.

Magnitude from the Pythagorean Theorem

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].

Josiah Willard Gibbs | 1839–1903

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.

A 2D vector resolved into its x- and y-components, with magnitude and direction angle.

x y v v_x = r·cosθ v_y = r·sinθ θ O

Worked Examples

Adding Two Displacement Vectors

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:

From Magnitude and Angle to Components

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

  • Projectile motion (physics): velocity is split into horizontal (, constant) and vertical (, affected by gravity) components, decoupling a curved trajectory into two simple 1D motions.
  • Navigation & GPS: a ship's course combines its own velocity vector with the current's velocity vector; components give the true resultant track.
  • Video games & computer graphics: sprite positions, velocities, and collision normals are stored as pairs; movement is component addition each frame.
  • Statics & engineering: forces in a bridge truss are resolved into horizontal and vertical components so that equilibrium can be solved.
  • Robotics: a robot arm's end-effector velocity is computed by adding the contributions of each joint as 2D vectors in the plane of motion.
  • Aviation: wind triangles add an aircraft's airspeed vector to the wind vector to determine ground speed and heading correction.
  • Sailing & rowing: the resultant of thrust and tidal flow vectors determines the actual path over the seabed.

Historical Development

  • 1637 — René Descartes introduces coordinate geometry in La Géométrie, giving the plane its address system that components rely on.
  • 1799 — Caspar Wessel publishes a geometric representation of complex numbers as directed line segments in the plane, an early vector idea.
  • 1806 — Jean-Robert Argand independently popularizes the plane-diagram view of complex numbers (the "Argand diagram").
  • 1827 — August Möbius's Barycentric Calculus develops directed quantities and their addition.
  • 1843 — William Rowan Hamilton invents quaternions, embedding 2D and 3D directed magnitudes in an algebra and coining the word "vector."
  • 1844 — Hermann Grassmann publishes Die lineale Ausdehnungslehre, a sweeping but under-read theory of -dimensional vector spaces.
  • 1881–84 — J. Willard Gibbs distributes printed lecture notes on vector analysis, isolating the dot and cross products.
  • 1901 — E. B. Wilson's textbook Vector Analysis, based on Gibbs's lectures, standardizes the notation worldwide.
  • 1910s–20s — Vector methods become the default language of physics and engineering, displacing quaternion-based approaches in mechanics and electromagnetism.

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

Before this

Where this leads