In Multivariable Calculus, the professor said that in order to compute the angle $x$ between two vectors $v$ and $w$, we use the formula: $\cos(x) = \frac{\vec{v} \cdot \vec{w}}{|\vec{v}| \cdot |\vec{w}|}$
He also mentioned "Projection" but I didn't understand much of it. The only thing I got was that we can create a right triangle by drawing a perpendicular line from one vector to the head of the other and compute the angle like that using $\cos$, but I don't understand why we're multiplying vectors, or dividing by their magnitudes…how do those operations make sense?
Also, in the specific example, the result of $\cos(x) = \frac{\vec{v} \cdot \vec{w}}{|\vec{v}| \cdot |\vec{w}|}$ ended up being $1/2 = \pi/2$. Where does $\pi/2$ come from here? I can't understand how we go from $1/2$ to $\pi/2$.
$\textbf{A really nice construction of this proof}$: Let $\textbf{A,B}$ be two vectors and $B$ $\neq O$. We seek a vector $P$ such that, $$(\textbf{A} -P) \cdot \textbf{B} = 0$$ and $P=c\textbf{B}$ for some number $c$. Suppose we can find such a number $c$, namely one satisfying, $$(A-cB) \cdot B = 0$$ We then get $$\textbf{A} \cdot \textbf{B} = c\textbf{B} \cdot \textbf{B}$$ and therefore $c=\frac{ \textbf{A} \cdot \textbf{B}}{\textbf{B} \cdot \textbf{B}}$. From this construction and use of what we know about planee geometry, $$\cos(\theta) = \frac{c||\textbf{B}||}{||\textbf{A}||}$$ and substituting in our value for $c$ we get, $$A \cdot B = ||\textbf{A}|| ||\textbf{B}|| \cos(\theta)$$ \
$\textbf{Picture for our Construction}$