In the figure below, three vectors are joined together to form a triangle. The name of each vector is a single letter in boldface, each vector is specified by three lengths in an $xyz$ coordinate system, and vectors $\boldsymbol{a}$ and $\boldsymbol{b}$ are separated by angle $\theta$.

Let $a$, $b$, and $c$ (with neither boldface nor subscripts) represent the magnitudes (lengths) of vectors $\boldsymbol{a}$, $\boldsymbol{b}$, and $\boldsymbol{c}$. Note that the Pythagorean theorem is used. \begin{eqnarray*} a &=& \sqrt{a_x^2 + a_y^2 + a_z^2} \\ b &=& \sqrt{b_x^2 + b_y^2 + b_z^2} \\ c &=& \sqrt{c_x^2 + c_y^2 + c_z^2} \end{eqnarray*}
The expression $\boldsymbol{a} \cdot \boldsymbol{b}$ signifies the $scalar\ product$ (a.k.a. the $dot\ product$) of vectors $\boldsymbol{a}$ and $\boldsymbol{b}$. There are two common formulas for computing $\boldsymbol{a} \cdot \boldsymbol{b}$. The first is the sum of the products of the $xyz$ components. The second is the product of the magnitudes and the cosine of angle $\theta$. \begin{eqnarray*} \boldsymbol{a} \cdot \boldsymbol{b} &=& a_x b_x + a_y b_y + a_z b_z \\ \boldsymbol{a} \cdot \boldsymbol{b} &=& a b \cos \theta \end{eqnarray*}
It's not obvious that these two formulas for the scalar product are equivalent. Therefore, demonstrate that they are --- demonstrate that \begin{eqnarray*} a_x b_x + a_y b_y + a_z b_z &=& a b \cos \theta \end{eqnarray*}