Vector Projection
Projection of A onto B: proj_B(A) = (A·B/|B|²)B. Scalar projection = A·B̂ = A·B/|B|. Rejection = A − proj_B(A) is perpendicular to B. A = proj + rej.
Did our AI summary help? Let us know.
proj_B(A) + rej_B(A) = A. rej_B(A) · B = 0. When B is unit vector: proj = (A·B)B.
Ready to run the numbers?
Why: Projections decompose vectors into parallel and perpendicular components. Used in physics (work), computer graphics (shadows), and regression (least squares).
How: Scalar projection = A·B/|B| (signed length). Vector projection = (A·B/|B|²)B. Rejection = A − proj_B(A). Rejection is perpendicular to B.
Run the calculator when you are ready.
Vectors A and B
Vector A (to project)
Vector B (onto)
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
proj_B(A) = (A·B/|B|²)B.
— Vector Projection
Rejection is perpendicular to B.
— Decomposition
Key Takeaways
- • Scalar projection: comp_B(A) = (A·B)/|B| — the signed length of A along B.
- • Vector projection: proj_B(A) = ((A·B)/|B|²)B — the component of A parallel to B.
- • Rejection: rej_B(A) = A - proj_B(A) — the component of A perpendicular to B.
- • A = proj_B(A) + rej_B(A) — every vector decomposes into parallel and perpendicular parts.
- • If A ⊥ B, then proj_B(A)=0 and rej_B(A)=A. If A ∥ B, then rej_B(A)=0.
Did You Know?
Work W = F·d is the scalar projection of force onto displacement. Only the parallel component does work.
The projection of a vector onto another is like the "shadow" one vector casts onto the other.
proj and rej are orthogonal: proj_B(A)·rej_B(A)=0. They form a right triangle with A.
The Gram-Schmidt process uses projections to build orthogonal bases from a set of vectors.
Linear regression finds the projection of the data vector onto the column space of the design matrix.
Projections are used for shadows, camera views, and resolving forces in game physics.
Understanding Projection
The projection of onto gives the component of A in the direction of B:
Expert Tips
Zero B
Cannot project onto the zero vector. |B| must be non-zero.
Signed Scalar
Scalar projection can be negative if the angle between A and B is obtuse.
Unit B
If B is a unit vector, proj_B(A) = (A·B)B and comp_B(A) = A·B.
Verification
Check that proj + rej = A and proj·rej = 0.
FAQ
What is scalar projection?
comp_B(A) = (A·B)/|B|. It is the signed length of the projection — positive if A and B form an acute angle.
What is vector projection?
proj_B(A) = ((A·B)/|B|²)B. It is the vector component of A parallel to B.
What is the rejection?
rej_B(A) = A - proj_B(A). It is the component of A perpendicular to B.
When is the scalar projection negative?
When the angle between A and B is greater than 90°. The projection points opposite to B.
When is proj_B(A) = A?
When A is parallel to B. Then rej_B(A) = 0.
When is proj_B(A) = 0?
When A is perpendicular to B (A·B=0). Then rej_B(A) = A.
How is this used in physics?
To resolve forces into components, compute work (F·d), and analyze motion on inclined planes.
How to Use
- Enter components of vector A (to be projected) and vector B (onto which to project).
- Click a sample example or Calculate.
- Review scalar projection, vector projection, rejection, and visualization.
- Copy results if needed.
Disclaimer: Cannot project onto the zero vector. Use z=0 for 2D vectors.
Related Calculators
Vector Calculator
Vector Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsDirection Of Vector Calculator
Direction Of Vector Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsUnit Vector Calculator
Unit Vector Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsVector Addition Calculator
Vector Addition Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsVector Magnitude Calculator
Vector Magnitude Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsCentroid Calculator
Centroid Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics