(there are two questions quite similar to this one, found here: (Dot Product Intuition, How to understand dot product is the angle's cosine?), but they have no accepted answers and I feel have a different approach than mine)
I am trying to intuitively understand the dot product, I am studying a first course in linear algebra.
So far in my studies I have two ways of calculating the dot product between two vectors.
The first one is to assume that the vectors are written in an orthonormal basis and then we can simply multiply and add the $x$ and $y$ coordinates of the vectors like this:
$\vec{u} = (\sqrt{2}, \sqrt{2})$, and $\vec{v} = (1, 0)$
gives: $\sqrt{2}\times1 + \sqrt{2}\times0 = \sqrt{2}$
The second way is to use the following formula $\vec{u}\cdot\vec{v} = |\vec{u}||\vec{v}|\cos{\alpha}$
This gives $2\times1\cos{45} = \sqrt{2}$
Now I understand how you can prove that these two methods will produce the same results.
But I have a hard time understanding how this is true intuitively.
Now one way to think about how the $|\vec{u}||\vec{v}|\cos{\alpha}$ formula is to always rotate the vectors so that the $\vec{v}$ has a $y$-coordinate of $0$.
Then by calculating the $\vec{u}\cdot\vec{v} = |\vec{u}||\vec{v}|\cos{\alpha}$ we simply get the "horizontal" projection of $\vec{u}$ onto $\vec{v}$.
In other words, we always make sure that the $y$-coordinate of one of the vectors are $0$, like in the example above $\sqrt{2}\times1 + \sqrt{2}\times0 = \sqrt{2}$
My question to you is how do you think about this relationship between these two formulas?
Thank you for your time and help!