NotesByLex

Vector Projection

The Vector Projection of a Vector a\mathbf{a} onto another vector b\mathbf{b} is the component of a\mathbf{a} that points in the direction of b\mathbf{b}. You can think of it as the "shadow" a\mathbf{a} casts on the line through b\mathbf{b}.

It's calculated using the Dot Product:

projba=a⋅bb⋅bb \text{proj}_{\mathbf{b}}\mathbf{a} = \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}} \mathbf{b}

The scalar projection, a⋅b∣b∣\frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|}, gives just the (signed) length of that shadow, where ∣b∣|\mathbf{b}| is the Vector Magnitude of b\mathbf{b}.