Find the projection of a on b
The scalar projection of a on b is (a·b) / |b|. The vector projection is ((a·b) / |b|²) b.
This is original written practice with invented vectors. Each answer is checked by subtracting the projection from a: the leftover part must have a dot product of zero with b.
Find a·b, project, then test the leftover
- Work out a·b and |b|.
- Scalar projection = a·b / |b|. Vector projection = (a·b / |b|²) b.
- Check: (a minus the projection)·b must be 0.
a = (3, 4, 0), b = (1, 0, 0)
a·b = 3, |b| = 1. Scalar projection 3. Vector projection (3, 0, 0).
Check: Leftover (0, 4, 0), and (0, 4, 0)·(1, 0, 0) = 0.
a = (2, 3, 6), b = (1, 2, 2)
a·b = 20, |b| = 3. Scalar projection 20/3 = 6.67. Vector projection (20/9)(1, 2, 2) = (2.22, 4.44, 4.44).
Check: Leftover (-2/9, -13/9, 14/9), and its dot with b is (-2 - 26 + 28) / 9 = 0.
a = (1, 1, 1), b = (0, 3, 4)
a·b = 7, |b| = 5. Scalar projection 1.4. Vector projection (7/25)(0, 3, 4) = (0, 0.84, 1.12).
Check: Leftover (1, 0.16, -0.12), and its dot with b is 0.48 - 0.48 = 0.
Counterexample: dividing by |b|² for the scalar
A student gives the scalar projection in the second example as 20 / 9 = 2.22.
The check fails, because 2.22 is the size of the multiple of b, not the length. The scalar projection divides by |b| = 3 and gives 6.67.
Try one yourself
Project a = (4, 3, 0) on b = (0, 1, 0) and check.
Show the worked self-check
a·b = 3, |b| = 1. Scalar projection 3, vector projection (0, 3, 0). Leftover (4, 0, 0), and its dot with b is 0.
Scope and limits
- The page covers projection of one 3D vector on another from components.
- It does not cover direction cosines, work done or the angle between vectors.
- The vectors are invented, and the questions are practice, not an exam key.
- Every answer is checked by the leftover being perpendicular.
Common questions
Can the scalar projection be negative?
Yes, when the angle between the vectors is obtuse.
What is the projection of a on itself?
Its own length |a|.
What does a zero projection mean?
The vectors are at right angles.
Is projection of a on b the same as b on a?
No, in general.
Sources and scope
Sources checked . They support the projection formulas. The numbers, worked examples and self-check above are original EZT practice.
- NCERT Class 12 Maths: Vector Algebra, for the projection formulas.
- Wikipedia: Vector projection, for the perpendicular leftover.
Read the Class 12 vector algebra chapterBrowse tuition and practice pages