[Math] Why are the two dot product definitions equal

geometryvectors

I have an intuitive understanding of why $a\dot{}b=|a||b|\cos{\theta}$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.

What I don't understand is why $a\dot{}b=a_xb_x + a_yb_y = |a||b|\cos{\theta}$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers to this question, but the proofs seem to depend on the actual algebraic definition to arrive at it.

My main question is, why are the two definitions really equal?

Best Answer

Note that with $a$ and $b$ two sides of a triangle and $\theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|\cos \theta$$ so that $$2|a||b|\cos\theta=\Sigma a_i^2+\Sigma b_i^2-\Sigma (b_i-a_i)^2=2\Sigma a_ib_i$$ so that $$|a||b|\cos\theta=\Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.

Related Question