I’ll write the two vectors in components.
\begin{align*}
\amp u = \begin{pmatrix}
u_1 \\ u_2 \\ u_3 \\ \ldots \\ u_n
\end{pmatrix}
\amp \amp v = \begin{pmatrix}
v_1 \\ v_2 \\ v_3 \\ \ldots \\ v_n
\end{pmatrix}
\end{align*}
Then I want to consider this sum:
\begin{equation*}
au_1v_1 + au_2v_2 + au_3v_3 + \ldots au_nv_n\text{.}
\end{equation*}
I’m going to organize this sum in three different ways, which will correspond to the three desired versions in the equation in the proposition. Since I will only be arranging brackets for addition and multiplication of numbers in acceptable ways, all three of these organizations are just calculating the same sum, so I can conclude that all three are equal.
First, I’ll factor the \(a\) out of the entire sum.
\begin{equation*}
a(u_1v_2 + u_2v_2 + u_3v_3 + \ldots u _nv_n)
\end{equation*}
What is in brackets is the definition of the dot product, so this is \(a (u \cdot v)\text{.}\) Next I’ll bracket the \(a\) with the \(u_i\) components.
\begin{equation*}
(au_1)v_2 + (au_2)v_2 + (au_3)v_3 + \ldots (au_n)v_n
\end{equation*}
This is, by definition, also a dot product.
\begin{equation*}
\begin{pmatrix}
au_1 \\ au_2 \\ au_3 \\ \vdots \\ au_n
\end{pmatrix} \cdot
\begin{pmatrix}
v_1 \\ v_2 \\ v_3 \\ \vdots \\ v_n
\end{pmatrix}
\end{equation*}
The first vector in this dot product is, by definition, the scalar multiple of \(u\) by \(a\text{.}\) Therefore, this organization of the sum gives \((au) \cdot v\text{.}\) Finally, I’ll change the order of the multiplications and group \(a\) with the \(v_i\) components.
\begin{equation*}
u_1(av_2) + u_2(av_2) + u_3(av_3) + \ldots u_n(av_n)
\end{equation*}
This is, by definition, also a dot product.
\begin{equation*}
\begin{pmatrix}
u_1 \\ u_2 \\ u_3 \\ \vdots \\ u_n
\end{pmatrix} \cdot
\begin{pmatrix}
av_1 \\ av_2 \\ av_3 \\ \vdots \\ av_n
\end{pmatrix}
\end{equation*}
The second vector in this dot product is, by definition, the scalar multiple of \(v\) by \(a\text{.}\) Therefore, this organization of the sum gives \(u \cdot (av)\text{.}\) Since all three organizations are valid ways of calculating the sum, I conclude that
\begin{equation*}
u \cdot (av) = (au) \cdot v = a(u \cdot v)\text{,}
\end{equation*}
which concludes the proof.