MyCalCute
Install
Science

Vector projection: check the perpendicular remainder

Separate a vector into parallel and perpendicular parts, then verify the result with a dot product.

Method

A projection answers how much of a vector points along a chosen direction. For a nonzero direction vector B, the vector projection of A is B multiplied by (A · B) divided by (B · B). This produces a vector, whereas the scalar projection is a signed length. Subtracting the vector projection from A gives a perpendicular remainder. Keep the components in the same coordinate system and unit. Reversing B changes the scalar projection's sign but leaves the projected vector unchanged.

Worked example

Consider a displacement A and a horizontal direction B using the components below. The projected displacement keeps the horizontal component, while the remainder contains the vertical component. Their sum recovers A. A dot product of zero between the remainder and B verifies perpendicularity without relying on a drawing. In the calculator, enter the components in matching axes; for a planar example, use a zero component on the remaining axis.

⁦A = (3, 4, 0); B = (2, 0, 0)⁩

⁦A · B = 6; B · B = 4⁩

⁦(6 / 4) B = (3, 0, 0)⁩

⁦A − (3, 0, 0) = (0, 4, 0)⁩

⁦(0, 4, 0) · (2, 0, 0) = 0⁩

Checks and limits

A zero direction vector has no direction and makes the denominator zero, so it cannot be used as B. A zero vector A can still be projected onto a nonzero B. Rounded inputs or results can leave a small numerical residual instead of exact zero; compare it with the scale of the components. A negative scalar projection means the component points against the chosen direction. Projection alone does not give the angle between vectors; use the angle calculator when both vectors are nonzero.

Related calculators

Source: OpenStax — vector projection and the dot product