Example 1: Find a scalar product from column vectors
Find \( \mathbf{a}\cdot\mathbf{b} \) if
\[
\mathbf{a}=
\begin{pmatrix}
2\\
-1\\
3
\end{pmatrix},
\qquad
\mathbf{b}=
\begin{pmatrix}
4\\
5\\
-2
\end{pmatrix}.
\]
Solution
\[
\mathbf{a}\cdot\mathbf{b}
=(2)(4)+(-1)(5)+(3)(-2)
\]
\[
=8-5-6=-3.
\]
Therefore,
\[
\mathbf{a}\cdot\mathbf{b}=-3.
\]
Example 2: Find a scalar product in \( \mathbf{i}, \mathbf{j}, \mathbf{k} \) form
Find \( \mathbf{p}\cdot\mathbf{q} \) if
\[
\mathbf{p}=3\mathbf{i}-2\mathbf{j}+\mathbf{k},
\qquad
\mathbf{q}=5\mathbf{i}+\mathbf{j}-4\mathbf{k}.
\]
Solution
Multiply matching components and add:
\[
\mathbf{p}\cdot\mathbf{q}
=(3)(5)+(-2)(1)+(1)(-4)
\]
\[
=15-2-4=9.
\]
So,
\[
\mathbf{p}\cdot\mathbf{q}=9.
\]
Example 3: Find the angle between two vectors
Find the angle between
\[
\mathbf{a}=
\begin{pmatrix}
1\\
2\\
2
\end{pmatrix},
\qquad
\mathbf{b}=
\begin{pmatrix}
2\\
1\\
-2
\end{pmatrix}.
\]
Solution
First find the scalar product:
\[
\mathbf{a}\cdot\mathbf{b}=(1)(2)+(2)(1)+(2)(-2)=2+2-4=0.
\]
Now use
\[
\mathbf{a}\cdot\mathbf{b}=|\mathbf{a}||\mathbf{b}|\cos\theta.
\]
Since \( \mathbf{a}\cdot\mathbf{b}=0 \), we have
\[
|\mathbf{a}||\mathbf{b}|\cos\theta=0.
\]
As both vectors are non-zero,
\[
\cos\theta=0
\qquad \Rightarrow \qquad
\theta=90^\circ.
\]
The vectors are perpendicular.
Example 4: Find the angle using \( \cos\theta \)
Find the angle between
\[
\mathbf{u}=2\mathbf{i}+\mathbf{j}+2\mathbf{k},
\qquad
\mathbf{v}=\mathbf{i}-2\mathbf{j}+2\mathbf{k}.
\]
Solution
First find the scalar product:
\[
\mathbf{u}\cdot\mathbf{v}
=(2)(1)+(1)(-2)+(2)(2)=2-2+4=4.
\]
Now find the magnitudes:
\[
|\mathbf{u}|=\sqrt{2^2+1^2+2^2}=\sqrt{9}=3,
\qquad
|\mathbf{v}|=\sqrt{1^2+(-2)^2+2^2}=\sqrt{9}=3.
\]
Use the formula:
\[
\cos\theta=\frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}||\mathbf{v}|}
=\frac{4}{3\times 3}
=\frac{4}{9}.
\]
\[
\theta=\cos^{-1}\!\left(\frac{4}{9}\right).
\]
Hence,
\[
\theta=\cos^{-1}\!\left(\frac{4}{9}\right).
\]
Example 5: Show that two vectors are perpendicular
Show that the vectors
\[
\mathbf{a}=4\mathbf{i}-\mathbf{j}+3\mathbf{k},
\qquad
\mathbf{b}=\mathbf{i}+5\mathbf{j}+\mathbf{k}
\]
are not perpendicular.
Solution
\[
\mathbf{a}\cdot\mathbf{b}
=(4)(1)+(-1)(5)+(3)(1)=4-5+3=2.
\]
Since the scalar product is not zero,
\[
\mathbf{a}\cdot\mathbf{b}\neq 0,
\]
the vectors are not perpendicular.