How to Find the Perpendicular Projection of a Vector
At a glance
- 1. Choose a direction
Identify the nonzero vector or subspace that defines what “perpendicular” means.
- 2. Find the parallel part
Project onto the reference vector using the dot product.
- 3. Subtract
Subtract the parallel projection from the original vector to get its perpendicular component.
- 4. Check orthogonality
Take the dot product with the reference vector; the perpendicular component should give zero.
“Perpendicular projection” can mean either the part of a vector perpendicular to a given direction, or a projection onto a specified perpendicular direction or plane. The most common meaning is the perpendicular component relative to a nonzero vector. You find it by removing the part of the vector parallel to that reference vector.
The perpendicular component of a vector
Let be the vector you want to decompose, and let be a nonzero reference vector. The projection of onto is its parallel component:
Subtract that component from to get the perpendicular component:
This is sometimes called the orthogonal component of relative to . It is perpendicular to because
The denominator is , so must not be the zero vector. You do not need to normalize first; the formula works for any nonzero length.
Worked example
Find the component of that is perpendicular to .
First compute the dot products:
The projection of onto is
Subtract it from the original vector:
Check the result:
So is the part of perpendicular to . The original vector is the sum of its parallel and perpendicular parts:
If you mean projection onto a perpendicular direction
In two dimensions, a vector perpendicular to is, for example, . To project onto that perpendicular line, use the usual projection formula with :
This gives the same perpendicular component as , because in the plane the line perpendicular to is exactly the direction spanned by . For the example above, take . Then
In three dimensions, there are many directions perpendicular to a single vector, so “the perpendicular direction” is not unique. The component is still well-defined: it is the projection of onto the entire plane perpendicular to .
More generally, to project onto a plane through the origin with nonzero normal vector , subtract the component along the normal:
Common mistakes
- Using the wrong denominator: divide by , not by or by . If is a unit vector, then , and the formula simplifies to .
- Stopping at the parallel projection: is parallel to . To get the perpendicular component relative to , subtract it from .
- Confusing a perpendicular component with a projection onto one perpendicular line: in dimensions higher than two, the perpendicular space to a vector has more than one direction. The perpendicular component is the projection onto that whole space.
- Forgetting the zero-vector case: the formula cannot use , because its denominator would be zero and a zero vector does not specify a direction.
- Relying on a picture instead of checking: a quick dot-product check, , confirms the calculation exactly.
Use the subtraction formula when you need the part of a vector orthogonal to a reference vector. If a particular line or subspace is specified instead, project onto that line or subspace directly.
References
- Introduction to Linear Algebra, Gilbert Strang
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.