Proof: We will prove this theorem for vectors in
\(\mathbb{R}^2\text{.}\) A similar argument can be made for two vectors in
\(\mathbb{R}^n\) by considering them in the plane (or line) which they span.
First, note that if either \(\vec a = \vec 0\) or \(\vec b = \vec 0\text{,}\) then the equation is true since both the left side and right side are 0. Now suppose \(\vec a \neq \vec 0\) and \(\vec b \neq \vec 0\text{.}\) Then, we know that \(\|\vec a\| \neq 0\) and \(\|\vec b\| \neq 0\text{.}\) Letβs consider the unit vectors \(\vec u_1 = \frac{\vec a}{\|\vec a\|}\) and \(\vec u_2 = \frac{\vec b}{\|\vec b\|}\text{.}\) Since both \(\vec u_1\) and \(\vec u_2\) are unit vectors in \(\mathbb{R}^2\text{,}\) they both lie on the unit circle. Note that rotating both vectors by the same angle will not change the angle between them. So, letβs rotate the vectors so that \(\vec u_1\) lies on the positive \(x\)-axis. (This is similar to choosing a new reference frame in physics). Then, \(\vec u_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix}\) and \(\vec u_2 = \begin{bmatrix} \cos \theta \\ \sin \theta \end{bmatrix}\text{,}\) where \(\theta\) is the angle between \(\vec u_1\) and \(\vec u_2\text{.}\) In this reference frame, we have that
\begin{equation*}
\vec u_1 \cdot \vec u_2 = \begin{bmatrix} 1 \\ 0 \end{bmatrix} \cdot \begin{bmatrix} \cos \theta \\ \sin \theta \end{bmatrix} = \cos\theta\text{.}
\end{equation*}
By replacing \(\vec u_1\) and \(\vec u_2\) with their definitions in terms of \(\vec a\) and \(\vec b\text{,}\) we see that
\begin{equation*}
\dfrac{\vec a}{\|\vec a\|} \cdot \dfrac{\vec b}{\|\vec b\|} = \cos \theta \quad \implies \quad \vec a \cdot \vec b = \|\vec a\|\|\vec b\|\cos \theta\text{.}
\end{equation*}