How much of a vector points along a line?
A box sits on a ramp. Gravity pulls it straight down, but the box can only slide along the ramp. How much of the pull acts along the ramp? A plane flies northeast through a wind from the west. How much of the wind pushes the plane forward? Questions like these ask for the part of one vector that lies along another. That part is called a projection.
In lesson 1 you met the "shadow" |u| cos θ. Now you will give it a name, find it from components, and turn it into a vector.
Scalar projection
The scalar projection of u on v is the signed length of the shadow of u on the line of v:
scalar projection of u on v = |u| cos θ = (u · v) / |v|
The second form comes from u · v = |u||v| cos θ: divide both sides by |v|. It is a number. It is positive when θ is acute, 0 when u ⊥ v, and negative when θ is obtuse (the shadow points backwards).
Vector projection
The vector projection of u on v, written proj_v u, is the shadow as a vector. Take the scalar projection and multiply it by the unit vector v/|v|:
proj_v u = ((u · v) / |v|) (v / |v|) = ((u · v) / |v|²) v = ((u · v) / (v · v)) v
The number in front is just a scalar, so the vector projection is always parallel to v (or 0).
Components are projections
The scalar projection of v = [v₁, v₂, v₃] on i is v · i / |i| = v₁. So each component of a vector is its scalar projection on an axis, and v = (projection on i) + (projection on j) + (projection on k). Projections let you use any direction as an "axis": along a ramp, along a road, along a runway.
Hands-on activityA kitchen scale on a slope
You need: a digital kitchen scale, a heavy unopened can (about 400 g), a long cutting board or a sturdy shelf board, a few books, a ruler and a calculator. Do this on the floor so nothing can fall far.
- Weigh the can on the flat scale. Call the reading m.
- Put the scale on the board, and raise one end of the board on a stack of books. Measure the board length L between its supports and the rise h. The tilt angle θ satisfies sin θ = h/L.
- Press the scale's zero (tare) button while it is empty on the slope, then put the can on it. A scale measures only the push into its surface, which is the perpendicular part of the weight. Predict the reading: m cos θ.
- Try two or three different heights. Keep the slope gentle (h no more than half of L) so the can does not slide.
What to look for: with m = 400 g, L = 50 cm and h = 20 cm, sin θ = 0.4, cos θ ≈ 0.917, so the reading should be about 367 g. The missing part of the weight is the component along the slope, the part that would make the can slide.