Projection — Definition, Formula & Examples
Projection is the operation of mapping a vector onto another vector (or subspace) by dropping a perpendicular from the original vector. The result is the component of the original vector that lies in the direction of the target.
Given vectors and in an inner product space, the orthogonal projection of onto is the vector . More generally, the projection onto a subspace is the unique decomposition where and .
Key Formula
Where:
- = The vector being projected
- = The vector onto which you project
- = Dot product of u and v
How It Works
To project vector onto vector , you compute the scalar coefficient and then multiply it by . This scalar measures how much of points in the direction of . The difference is the component of orthogonal to . When projecting onto a subspace spanned by multiple vectors, you can use projection matrices: if has columns forming a basis for the subspace, the projection matrix is .
Worked Example
Problem: Find the projection of u = (3, 4) onto v = (1, 0).
Step 1: Compute the dot product of u and v.
Step 2: Compute the dot product of v with itself.
Step 3: Multiply the scalar ratio by v to get the projection.
Answer: The projection of (3, 4) onto (1, 0) is (3, 0), which is the horizontal component of u.
Why It Matters
Projections are central to least-squares regression, where you project a data vector onto the column space of a matrix to find the best-fit solution. They also underpin the Gram-Schmidt process for constructing orthonormal bases and appear in computer graphics for rendering 3D scenes onto 2D screens.
Common Mistakes
Mistake: Dividing by the magnitude of v instead of the dot product of v with itself.
Correction: The denominator must be , not . Dividing by just the magnitude gives the scalar component (a number), not the vector projection.
