Vector Projection
The projection of onto is the component of in the direction of . It is used in least squares, physics (resolving forces) and computer graphics.
LaTeX
\operatorname{proj}_{\mathbf b}\mathbf a=\frac{\mathbf a\cdot\mathbf b}{|\mathbf b|^2}\,\mathbf bVariables
- vector being projected
- nonzero direction vector
Example
Project onto .
- , .
- .
Answer: .