My textbook is in Swedish so I am sorry if the wording is a bit weird or if things have got another name in english. Anyway, I am confused regarding Scalar Multiplication and Orthogonal projection, especially how scalar multiplication is used to derive the formula for orthogonal projection.
Scalar multiplication is defined as: $$|u| \cdot |v| \cdot \cos [u,v]$$ Orthogonal projection is defined as $$u' = \frac{u\cdot v}{|v|^2} \cdot v$$
From what I understand the difference between these is that scalar multiplication produces a magnitude, while orthogonal projection produces a vector.
I am trying to prove the formula for orthogonal projection myself and I have come up with the follwing:
Define $$ e = \frac{1}{|v|} \cdot v$$ i.e a normalized vector in the direction of v. Now, the magnitude times the direction would produce the full vector correct? So:
$$ u' = |u|\cdot|v|\cdot\cos [u,v] \cdot e = \frac{|u|\cdot|v|\cdot\cos [u,v] \cdot v}{|v|}$$
Which gives $$\frac{u\cdot v\cdot v}{|v|}$$
Which is not the formula for orthogonal projection. Where am I going wrong?