Vectors: magnitude, direction and products · Resolve parallel and perpendicular components
Choose the object the question asks for
A signed scalar, a length and a vector component are different results. Start with the same unit direction, then choose the required form.
Normalise the target direction
The target vector b must be nonzero. The signed scalar component s may be negative; an ordinary length cannot.
- Projection length · scalarTake the absolute value
Use . The signed scalar component itself is ; preserve its sign when that is what the question asks for.
- Parallel component · vectorMultiply by the unit direction
Use . A negative means this component points opposite to ; do not replace it by .
- Perpendicular component · vectorSubtract the parallel component
Use . Its dot product with is zero. If a perpendicular length is requested, take the magnitude of this vector.
Check that the two vector components add back to a. Reversing the target direction changes the signed scalar’s sign, while the projection length and both vector components stay unchanged.