You enteredprojvu, u=(3,4), v=(1,0)
(3,0) Perpendicular component
(0,4) Show the work
- 1
Dot product and squared length
The projection needs the dot product u⋅v, which measures how far u points along v, and the squared length ∣v∣2 of the vector projected onto.
u⋅v=3×1+4×0=3+0=3, ∣v∣2=12+02=1+0=1 - 2
Vector projection
The projection of u onto v is the part of u that lies along v: a multiple of v, so it points along v (or opposite to it).
projvu=∣v∣2u⋅vv=13(1,0)=3(1,0)=(3,0) - 3
Scalar projection
The scalar projection is the signed length of that shadow: positive when u leans the same way as v, negative when it leans the other way.
compvu=∣v∣u⋅v=13=3 - 4
Perpendicular component
What is left of u after taking away the projection is perpendicular to v: its dot product with v is 0.
u⊥=u−projvu=(3,4)−(3,0)=(0,4) - 5
Result
So the projection of u onto v is (3,0).