Imagine you're playing with a flashlight and a stick. When you shine the light on the stick, it casts a shadow on the wall. This shadow is like a vector projection! In math terms, we're "projecting" one vector (the stick) onto another vector (the direction of the light).
How to Calculate 2D Vector Projection
To find the projection of vector onto vector , we follow these friendly steps:
Find out how much and agree (using the dot product)
See how long is (its magnitude squared)
Divide these numbers and multiply by
Formula and Definition
The projection of onto is given by:
Where:
is the dot product of and
is the magnitude (length) of
is the magnitude of squared
Calculation Steps
Calculate the dot product of and :
Calculate the magnitude of squared:
Divide the dot product by
Multiply this scalar by to get the projection vector
Example and Visual Representation
Let's project onto
Dot product:
Magnitude of squared:
Scalar projection:
Vector projection:
So, the projection of onto is
This picture shows vector (red), vector (blue), and the projection of onto (green). The gray dashed line shows how is "shadowed" onto to create the projection.
Need a Custom Calculator?
We can create a free, personalized calculator just for you!