Unit Vectors and Projections

A unit vector is a vector with a magnitude (length) of exactly 1. Unit vectors are essential tools in linear algebra and physics because they capture pure direction without any scale. Every nonzero vector can be converted into a unit vector by dividing by its magnitude — a process called normalization. The resulting unit vector points in exactly the same direction as the original but has length 1. Vector projection is the process of decomposing one vector into a component that lies along another vector. Imagine shining a light straight down onto a vector — the shadow it casts on a second vector is the projection. This idea appears everywhere in physics (finding the component of a force along a surface), computer graphics (lighting calculations), and data science (least-squares fitting). Projections connect geometry and algebra in a beautiful way. Together, unit vectors and projections give us a powerful language for describing direction and decomposition in two or three dimensions. The standard unit vectors i = (1, 0) and j = (0, 1) form a basis for the plane, meaning every 2-D vector can be written as a unique combination of them. Mastering these concepts is a critical step toward understanding more advanced topics such as dot products, linear transformations, and eigenvalues.

Key takeaways
  • Magnitude of a Vector
  • Normalizing a Vector to Create a Unit Vector
  • The Standard Basis Unit Vectors
  • The Dot Product — Foundation for Projections
  • Scalar Projection
  • Vector Projection
  • Decomposing a Vector

Magnitude of a Vector

Given a vector v = (a, b), its magnitude is ||v|| = sqrt(a² + b²) by the Pythagorean theorem. In three dimensions, if v = (a, b, c), then ||v|| = sqrt(a² + b² + c²). The magnitude is always a non-negative real number, and it equals zero only for the zero vector.

Normalizing a Vector to Create a Unit Vector

To find the unit vector û in the direction of v, divide every component by ||v||: û = v / ||v|| = (a/||v||, b/||v||). You can verify this works: ||û|| = sqrt((a/||v||)² + (b/||v||)²) = (1/||v||) * sqrt(a² + b²) = ||v||/||v|| = 1. This process is called normalization.

The Standard Basis Unit Vectors

In two dimensions, the standard unit vectors are i = (1, 0) pointing along the positive x-axis and j = (0, 1) pointing along the positive y-axis. Any vector v = (a, b) can be written as v = a·i + b·j. In three dimensions we add k = (0, 0, 1). These basis vectors simplify writing and computing with vectors enormously.

The Dot Product — Foundation for Projections

The dot product of two vectors u = (u₁, u₂) and v = (v₁, v₂) is u · v = u₁v₁ + u₂v₂. Geometrically, u · v = ||u|| ||v|| cos(θ), where θ is the angle between the vectors. The dot product is a scalar (a plain number), not a vector. It measures how much two vectors 'align' — it equals zero when vectors are perpendicular.

Scalar Projection

The scalar projection of vector u onto vector v is the signed length of the shadow of u along v. It equals comp_v(u) = (u · v) / ||v||. This is a number, positive if u and v point in roughly the same direction, negative if they point in opposite directions. Using the geometric dot product formula: comp_v(u) = ||u|| cos(θ).

Vector Projection

The vector projection of u onto v is the actual vector along v with the correct length. It is: proj_v(u) = ((u · v) / ||v||²) v. This can also be written as proj_v(u) = ((u · v) / (v · v)) v. The result is a vector parallel to v. The component of u perpendicular to v is then u - proj_v(u), and these two components are orthogonal (their dot product is zero).

Decomposing a Vector

Any vector u can be split into two perpendicular parts relative to a direction v: u = proj_v(u) + (u − proj_v(u)). The first part is parallel to v, and the second is perpendicular to v. This orthogonal decomposition is fundamental in physics (resolving forces) and in the Gram-Schmidt process in advanced linear algebra.

The Key Equation

projv(u)=u⋅v∥v∥2 v\text{proj}_{\mathbf{v}}(\mathbf{u}) = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|^2}\,\mathbf{v}
  • \mathbf{u} — Source vector (dimensionless or any consistent unit): The vector being projected onto another vector
  • \mathbf{v} — Target vector (dimensionless or any consistent unit): The vector that defines the direction of projection
  • \mathbf{u} \cdot \mathbf{v} — Dot product (square of the unit used): The sum of products of corresponding components; equals ||u|| ||v|| cos θ
  • \|\mathbf{v}\|^2 — Squared magnitude of v (square of the unit used): The dot product of v with itself; normalizes the projection to the length of v
  • \text{proj}_{\mathbf{v}}(\mathbf{u}) — Vector projection (same unit as u and v): The resulting vector parallel to v with the appropriate component length

Worked Example

Problem. Let u = (3, 4) and v = (1, 2). (a) Find the unit vector in the direction of u. (b) Find the vector projection of u onto v. (c) Find the component of u perpendicular to v.

u^=(35,45),projv(u)=(115,225),u⊥=(45,−25)\hat{\mathbf{u}} = \left(\tfrac{3}{5},\tfrac{4}{5}\right),\quad \text{proj}_{\mathbf{v}}(\mathbf{u}) = \left(\tfrac{11}{5},\tfrac{22}{5}\right),\quad \mathbf{u}_{\perp} = \left(\tfrac{4}{5},-\tfrac{2}{5}\right)

Answer. Unit vector û = (3/5, 4/5); projection proj_v(u) = (11/5, 22/5); perpendicular component = (4/5, −2/5).

Figure
Diagram
xyu=(3,4)v=(1,2)proj_v(u)u_perpOriginu=(3,4)v=(1,2)Scale: each 40px ≈ 1 unit. u = proj_v(u) + u_perp (right-angle decomposition)
Origins · 1 minJosiah Willard Gibbs and how this was discovered
JW
Josiah Willard Gibbs
1839–1903 · American

Gibbs developed the modern notation for vectors, including the dot product and cross product, in his 1881 pamphlet 'Elements of Vector Analysis'. His formulation replaced the more cumbersome quaternion algebra of Hamilton and became the standard language used in physics and engineering. The concepts of unit vectors and projections are expressed directly using Gibbs's dot product notation. Gibbs was largely unknown outside a small circle of scientists during his lifetime, yet James Clerk Maxwell praised his work as a great advance. Gibbs never sought fame — he published his vector analysis as a private pamphlet and distributed it for free to colleagues around the world.

  • The Dot Product — The dot product u · v is the core computation inside every projection formula; understanding it deeply is essential for working with projections.
  • Vector Magnitude and Direction — Computing the magnitude ||v|| is the first step in both normalization (finding unit vectors) and scalar projection.
  • Vector Addition and Scalar Multiplication — Projections are computed using scalar multiplication of v, and the perpendicular decomposition uses vector subtraction.
  • Orthogonal Vectors — The perpendicular component u − proj_v(u) is orthogonal to v; orthogonality is defined by the dot product equaling zero.
  • Angle Between Two Vectors — The cosine formula cos θ = (u · v)/(||u|| ||v||) connects the dot product to the geometric angle, explaining why projections equal ||u|| cos θ.