Skip to content

Vector Projection Calculator

Project vector a onto vector b: scalar projection, vector projection components, and the perpendicular rejection. Works in 2D (leave z = 0) and 3D, with step-by-step derivations.

Inputs

Vector a (projected)

Vector b (direction)

Results

Enter a value to see results.

Details

Step-by-step derivation

\begin{aligned} \operatorname{comp}_{\mathbf{b}}\mathbf{a} &= \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|} \\ &= \frac{?}{?} \\ &= ? \end{aligned}
\begin{aligned} p_x &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_x \\ &= \frac{?}{{\text{?}}}(1) \\ &= ? \end{aligned}
\begin{aligned} p_y &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_y \\ &= \frac{?}{{\text{?}}}(0) \\ &= ? \end{aligned}
\begin{aligned} p_z &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_z \\ &= \frac{?}{{\text{?}}}(0) \\ &= ? \end{aligned}
\begin{aligned} r_x &= a_x - p_x \\ &= 3 - (?) \\ &= ? \end{aligned}
\begin{aligned} r_y &= a_y - p_y \\ &= 4 - (?) \\ &= ? \end{aligned}
\begin{aligned} r_z &= a_z - p_z \\ &= 0 - (?) \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?