You enteredcompvu, u=(3,4), v=(1,0)
Vector projection
(3,0) 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
Result
So the scalar projection of u onto v is 3.