[3, 0]
The projection of [3, 4] onto [1, 0] is [3, 0].
How to read the decomposition
The projection vector is the part of a that runs along b. The perpendicular component is the leftover part of a after that shadow is removed.
A positive scalar projection means the shadow points with the target direction. A negative scalar projection means it points against the target direction. A zero scalar projection means the vectors are perpendicular.
Steps
v₁ = [3, 4], v₂ = [1, 0]
v₁ · v₂ = (3)(1) + (4)(0) = 3
v₂ · v₂ = x²=1 + y²=0 = 1
|v₂| = √1 = 1
|v₁| = √25 = 5
Scalar projection = (v₁ · v₂) / |v₂| = 3 / 1 = 3
Scale factor = (v₁ · v₂) / (v₂ · v₂) = 3 / 1 = 3
proj = 3 × [1, 0] = [3, 0]
perpendicular component = v₁ - proj = [3, 4] - [3, 0] = [0, 4]
Angle between vectors = arccos((v₁ · v₂) / (|v₁||v₂|)) = 53.13010235415599°