Vectors: magnitude, direction and products
Resolve parallel and perpendicular components · Diagrams
Projection in acute and obtuse cases
Compare the signed scalar, the parallel vector and the perpendicular residual. The illustration keeps the target unit direction pointing right.
Illustration: |a| = 3 units and b̂ points right. Change θ to compare signs and lengths. Values are rounded to four significant figures.
Acute angle
The projection follows the target direction; its signed component is positive.
- Signed scalar s
- 2.121
- Parallel length PQ
- 2.121 units
- Perpendicular length QR
- 2.121 units
PR represents a, PQ its parallel vector and QR its perpendicular residual. The angle θ is measured from b̂ to a.
Keep the scalar component's sign
Use the unit direction , with . A negative component means the projection points opposite to this direction.
Resolve the parallel vector
The arrow follows the target direction when s is positive and reverses when s is negative. Keep the sign in the vector answer.
Find the perpendicular residual
Triangle addition gives . The residual is perpendicular to the target direction.
Take a magnitude for the parallel length
PQ is a nonnegative length. The same absolute-value formula covers acute and obtuse angles.
The target vector b must be nonzero to form b̂. If a is zero, both lengths are zero and its angle has no defined direction.
Compare with the acute and obtuse source cases
Expand diagramFit diagram to page
Use the scrollbars or arrow keys to inspect details.