Menu
Sign up Sign in

AI HL · AHL 4

Vectors

AHL 4.14

The angle between two vectors; perpendicular and parallel vectors

AHL 4.14

The angle between two vectors; perpendicular and parallel vectors

Target: I can find the angle between two vectors in 2D and 3D from their components. (+3 more)

By the end of this section

Key points

The angle between two vectors

  • Put the two forms of the scalar product together: \(\cos\theta = \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\).
  • In 2D use two components. In 3D use three.
  • A positive scalar product gives an acute angle. A negative scalar product gives an obtuse angle.
  • Do not drop the minus sign from \(\mathbf{a}\cdot\mathbf{b}\): that gives the wrong angle.

Angle in a triangle

  • Draw the triangle. For the angle at \(\mathrm{A}\), find \(\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA}\) and \(\overrightarrow{AC} = \overrightarrow{OC} - \overrightarrow{OA}\).
  • Both vectors must leave the vertex. Then use the formula for \(\cos\theta\).
  • Never use the position vectors of B and C for an angle at A.

Perpendicular and parallel

  • Perpendicular vectors: \(\mathbf{a}\cdot\mathbf{b} = 0\).
  • Parallel vectors: \(|\mathbf{a}\cdot\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\). The angle is \(0^\circ\) or \(180^\circ\).
  • With an unknown \(t\), set \(\mathbf{a}\cdot\mathbf{b} = 0\) and expand. If \(t\) appears in both vectors in the same component you get a quadratic. Solve it on the calculator.

On the calculator

Solving a quadratic for t

  • Expand \(\mathbf{a}\cdot\mathbf{b}\) and collect terms to get \(pt^2 + qt + r = 0\).
  • Use the calculator's polynomial solver for the quadratic. Both solutions can be correct.
  • Check each value in the original scalar product.

Screenshot and video to come

Explore: the scalar product and the angle

Drag the tip of a and the tip of b. Both vectors leave the origin. Watch the sign of a · b and the angle between them.

a · b
Angle θ
The angle is

Click a tip, then use the arrow keys to move it one unit. The tips stay on whole numbers, so you can check each line by hand.

Drag a tip to change a vector.

  1. Keep a still and swing b all the way round. Where does a · b change from positive to negative? What is the angle there?
  2. Make a · b equal to 0 with neither vector being the zero vector. What is the same about every way of doing it?
  3. Make b twice as long without changing its direction. What happens to a · b, to cos θ and to θ? Why?
  4. Make the vectors point in opposite directions. What are cos θ and θ now, and how does the working show that they are parallel?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
The angle between two vectors

Find the angle between \(\mathbf{a} = \begin{pmatrix}3\\-2\\6\end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix}1\\4\\-2\end{pmatrix}\).

Working
  1. The formula

    \(\cos\theta = \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\)

    Combine the two forms of the scalar product.

  2. Scalar product

    \(\mathbf{a}\cdot\mathbf{b} = (3)(1) + (-2)(4) + (6)(-2) = -17\)

    Multiply matching components.

  3. Magnitudes

    \(|\mathbf{a}| = \sqrt{49},\quad |\mathbf{b}| = \sqrt{21}\)

    Square, add, root.

  4. The angle

    \(\cos\theta = \dfrac{-17}{\sqrt{49}\sqrt{21}} = -0.5300\) \(\theta = \cos^{-1}(-0.5300) = 122^\circ\)

    A negative cosine gives an obtuse angle.

Video walkthrough coming
Angle between two vectors in 2D

Find the angle between \(\mathbf{a} = 2\mathbf{i} + 5\mathbf{j}\) and \(\mathbf{b} = 6\mathbf{i} - \mathbf{j}\).

Working
  1. Use the same formula with two components

    \(\mathbf{a} = \begin{pmatrix}2\\5\end{pmatrix},\ \mathbf{b} = \begin{pmatrix}6\\-1\end{pmatrix}\)

    In 2D there is no third term.

  2. Scalar product

    \(\mathbf{a}\cdot\mathbf{b} = (2)(6) + (5)(-1) = 7\)

  3. Magnitudes

    \(|\mathbf{a}| = \sqrt{29},\quad |\mathbf{b}| = \sqrt{37}\)

  4. The angle

    \(\cos\theta = \dfrac{7}{\sqrt{29}\sqrt{37}} = 0.2137\) \(\theta = \cos^{-1}(0.2137) = 77.7^\circ\)

    Acute: the scalar product is positive.

Video walkthrough coming
Angle at a vertex

The points A, B and C have coordinates (2, −1, 3), (5, 1, −1) and (0, 4, 2). Find angle \(BAC\).

θABC
Working
  1. Vectors from A

    \(\overrightarrow{AB} = \begin{pmatrix}5\\1\\-1\end{pmatrix} - \begin{pmatrix}2\\-1\\3\end{pmatrix} = \begin{pmatrix}3\\2\\-4\end{pmatrix},\quad \overrightarrow{AC} = \begin{pmatrix}0\\4\\2\end{pmatrix} - \begin{pmatrix}2\\-1\\3\end{pmatrix} = \begin{pmatrix}-2\\5\\-1\end{pmatrix}\)

    Draw the triangle. Both vectors leave A, so subtract A from each.

  2. Scalar product

    \(\overrightarrow{AB}\cdot\overrightarrow{AC} = (3)(-2) + (2)(5) + (-4)(-1) = 8\)

  3. Magnitudes

    \(|\overrightarrow{AB}| = \sqrt{29},\quad |\overrightarrow{AC}| = \sqrt{30}\)

  4. The angle

    \(\cos\theta = \dfrac{8}{\sqrt{29}\sqrt{30}} = 0.2712\) \(\theta = \cos^{-1}(0.2712) = 74.3^\circ\)

    Angle BAC = 74.3°.

Video walkthrough coming
Perpendicular vectors

Find the value of \(t\) for which \(\mathbf{a} = \begin{pmatrix}3t\\ t+2\\ 1-2t\end{pmatrix}\) is perpendicular to \(\mathbf{b} = \begin{pmatrix}2\\-3\\4\end{pmatrix}\).

Working
  1. Perpendicular means the scalar product is zero

    \(\mathbf{a}\cdot\mathbf{b} = 0\)

    cos 90° = 0.

  2. Expand

    \((3t)(2) + (t+2)(-3) + (1-2t)(4) = 0\)

    Multiply matching components.

  3. Collect terms

    \(-2 - 5t = 0\)

    6t − 3t − 6 + 4 − 8t = −5t − 2.

  4. Solve

    \(t = -0.4\)

    A linear equation in t.

Video walkthrough coming
A quadratic from perpendicular

The vectors \(\mathbf{a} = \begin{pmatrix}t\\ 3\\ t-1\end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix}t-5\\ 2\\ -1\end{pmatrix}\) are perpendicular. Find the possible values of \(t\).

Working
  1. Scalar product equals zero

    \(t(t-5) + (3)(2) + (t-1)(-1) = 0\)

    Perpendicular means \(\mathbf{a}\cdot\mathbf{b} = 0\).

  2. Simplify

    \(t^2 - 5t + 6 - t + 1 = t^2 - 6t + 7 = 0\)

    This time t² appears: a quadratic.

  3. From the calculator

    Polynomial solver: t = 1.59 or t = 4.41

    Solve t² − 6t + 7 = 0 on the calculator. Both values work.

  4. Both solutions

    \(t = 3 - \sqrt{2} = 1.59,\quad t = 3 + \sqrt{2} = 4.41\)

    There are two vectors of this form that are perpendicular.

Video walkthrough coming
Parallel vectors

Show that \(\mathbf{a} = \begin{pmatrix}2\\-4\\6\end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix}-3\\6\\-9\end{pmatrix}\) are parallel, by finding \(\cos\theta\).

Working
  1. Scalar product

    \(\mathbf{a}\cdot\mathbf{b} = (2)(-3) + (-4)(6) + (6)(-9) = -84\)

  2. Product of the magnitudes

    \(|\mathbf{a}||\mathbf{b}| = \sqrt{56}\sqrt{126} = 84.0\)

    Square roots of 56 and 126 multiply to 84.

  3. cos θ

    \(\cos\theta = \dfrac{-84}{84.0} = -1\)

    θ = 180°. The vectors are parallel, pointing in opposite directions. Parallel means \(|\mathbf{a}\cdot\mathbf{b}| = |\mathbf{a}||\mathbf{b}|\).

Video walkthrough coming