Projection (Proj) and Perpendicular (Perp)

Projection and Perpendicular
The projection of u onto v is denoted by projvu and is obtained by calculating:
Notes
- The projection of u onto v is the "shadow" that u casts onto v
- projvu is a scalar multiple of v
- projvu is also called the vector component of u parallel to v
The perpendicular of u onto v is denoted by perpvu and is obtained by calculating:
The perpendicular is the vector component of u orthogonal to v


Example: Projection
Let u=⟨3,−1,4⟩ and v=⟨9,0,2⟩.
Part A)
Find projv u.
projvu=v⋅vu⋅vv=⟨9,0,2⟩⋅⟨9,0,2⟩⟨3,−1,4⟩⋅⟨9,0,2⟩⟨9,0,2⟩=92+02+22(3)(9)+(−1)(0)+(4)(2)⟨9,0,2⟩=8535⟨9,0,2⟩=177⟨9,0,2⟩=⟨1763, 0, 1714⟩
Part B)
Find proju v.
projuv=u⋅uv⋅uu=⟨3,−1,4⟩⋅⟨3,−1,4⟩⟨9,0,2⟩⋅⟨3,−1,4⟩⟨3,−1,4⟩=32+(−1)2+42(9)(3)+(0)(−1)+(2)(4)⟨3,−1,4⟩=2635⟨3,−1,4⟩=2635⟨3,−1,4⟩=⟨26105,−2635,1370⟩

Example: Projection and Perpendicular
Let u=[42], v=[−31]∈R2.
Part A)
Sketch vectors u and v and guess whether proju v is in the same direction or the opposite direction of u.
Calculate proju v to check your guess.
We can see that projecting v onto u will require us to extend u in the opposite direction.

projuv=u⋅uv⋅u u=[42]⋅[42][−31]⋅[42][42]=(4)2+22(−3)(4)+(1)(2)[42]=20−10[42]=−21[42]=[−2−1]
Since the scalar multiple of u is negative (−21), we have confirmed that projuv is in the opposite direction of u.
Part B)
Calculate perpuv.
We can use our answer from Part A):
projuv=[−2−1]
So calculating perpuv is as simple as:
perpuv=v−projuv=[−31]−[−2−1]=[−12]
Notice that, as usual, this result is a position vector: if the vector were translated to start at the origin, it would go left 1 and up 2.

Practice: Projection and Perpendicular
Let u=−2−140, v=−3014, and w=0011
Find perpv − w (u+v).
(Enter your answer as a column vector)
Practice: Projection
True or False
There exist vectors u,v∈Rn such that projv u=proju v.