There are two definitions of the dot product:
$A \cdot B = A_1B_1 + A_2B_2 + \cdots + A_nB_n$
$A \cdot B = AB\cos(\theta)$
I have been trying to develop an intuition of the geometry and algebra of the dot product, and why they are what they are. Although carrying out operations with the derived formulae is quite simple, I am finding it slightly more difficult to understand what exactly is a dot product.
I tried deriving $(2)$ from $(1)$. However, I ended up circling back to $(2)$ - that is, in proving $(2)$, I had to assume that $(2)$ was already true, which I had not yet proven.
Let me illustrate:
\begin{align} \vec{v}\cdot\vec{w} &=(v_x\widehat{\imath}+v_y\widehat{\jmath})\cdot(w_x\widehat{\imath}+w_y\widehat{\jmath})\\ &=v_xw_x\widehat\imath\cdot\widehat\imath+v_yw_y\widehat\jmath\cdot\widehat\jmath+v_xw_y\widehat\imath\cdot\widehat\jmath+v_yw_x\widehat\jmath\cdot\widehat\imath\\ &=v_xw_x+v_yw_y\end{align}
So, now I am left asking: was the dot product arbitrarily defined as $(2)$ and $(1)$ derived, vice versa, neither, or what? Math is pretty fun, though.