Vectors · Lesson 3 of 3

The scalar product

The scalar (dot) product a·b, the angle between two vectors, perpendicular vectors, and finding unknowns from an angle or from |a + b|.

16 minYou should already know: Vectors & transformations
  1. 1
  2. 2
  3. 3

Adding vectors gives another vector. The scalar product (or dot product) of two vectors gives a number, and that number tells you the angle between them.

The scalar product and the angle

For a=a1i+a2j\mathbf a = a_1\mathbf i + a_2\mathbf j and b=b1i+b2j\mathbf b = b_1\mathbf i + b_2\mathbf j:

a⋅b=a1b1+a2b2=∣a∣∣b∣cos⁡θ\mathbf a \cdot \mathbf b = a_1b_1 + a_2b_2 = |\mathbf a||\mathbf b|\cos\theta

where θ\theta is the angle between them when they start from the same point. So

θabcos θ = a·b ÷ (|a||b|)
The angle between two vectorscos θ = a·b ÷ (|a||b|)
  • If a⋅b=0\mathbf a \cdot \mathbf b = 0, then cos⁡θ=0\cos\theta = 0: the vectors are perpendicular.
  • A positive scalar product means an acute angle; a negative one means obtuse.
The scalar productSet the components of a and b
−6−4−2246−6−4−2246xy
11a·b4.123, 3.606|a| and |b|42.3°angle θ
a·b = (4)(2) + (1)(3) = 11. cos θ = 11 ÷ (4.123 × 3.606) = 0.7399, so θ = 42.3°. A positive scalar product means the angle is acute.

Worked example · WAEC 2018

WAEC 2018 · Paper 2 · Q14

The position vectors of points AA, BB and CC with respect to the origin are (8i−10j)(8\mathbf i - 10\mathbf j), (2i+6j)(2\mathbf i + 6\mathbf j) and (−10i+4j)(-10\mathbf i + 4\mathbf j) respectively. If ABCNABCN is a parallelogram, find:

the position vector of NN;

∣AN→∣|\overrightarrow{AN}| and ∣AB→∣|\overrightarrow{AB}|;

correct to two decimal places, the acute angle between AN→\overrightarrow{AN} and AB→\overrightarrow{AB}.

  1. The fourth vertex

    • The i\mathbf i part: 8+(−10)−2=−4{8 + (-10) - 2 = -4}.
    • The j\mathbf j part: −10+4−6=−12{-10 + 4 - 6 = -12}.
    • So n=−4i−12j{\mathbf n = -4\mathbf i - 12\mathbf j}.

    Think first. ABCN in order: n = a + c − b.

  2. The two sides from A

    • AN→=n−a=−12i−2j{\overrightarrow{AN} = \mathbf n - \mathbf a = -12\mathbf i - 2\mathbf j}, so ∣AN→∣=148{|\overrightarrow{AN}| = \sqrt{148}}.
    • AB→=b−a=−6i+16j{\overrightarrow{AB} = \mathbf b - \mathbf a = -6\mathbf i + 16\mathbf j}, so ∣AB→∣=292{|\overrightarrow{AB}| = \sqrt{292}}.
  3. The angle

    • AN→⋅AB→=(−12)(−6)+(−2)(16){\overrightarrow{AN} \cdot \overrightarrow{AB} = (-12)(-6) + (-2)(16)}.
    • =72−32=40{= 72 - 32 = 40}.
    • cos⁡θ=40148292=40207.88≈0.1924{\cos\theta = \frac{40}{\sqrt{148}\sqrt{292}} = \frac{40}{207.88} \approx 0.1924}.
    • So θ≈78.91∘{\theta \approx 78.91^\circ}.

    Think first. Find the scalar product, then cos θ.

More: angles between vectors

Perpendicular vectors

To show two vectors are perpendicular, show their scalar product is 0. To find an unknown that makes them perpendicular, set the scalar product equal to 0 and solve.

Worked example · WAEC 2022

WAEC 2022 · Paper 2 · Q8

The points MM, NN, QQ and RR are in the xyxy plane with position vectors m=i+j\mathbf m = \mathbf i + \mathbf j, n=2i−j\mathbf n = 2\mathbf i - \mathbf j, q=xi+j\mathbf q = x\mathbf i + \mathbf j and r=(x+1)i−3j\mathbf r = (x + 1)\mathbf i - 3\mathbf j respectively. If NQ→\overrightarrow{NQ} is perpendicular to MR→\overrightarrow{MR}, find the values of xx.

  1. The two vectors

    • NQ→=q−n=(x−2)i+2j{\overrightarrow{NQ} = \mathbf q - \mathbf n = (x - 2)\mathbf i + 2\mathbf j}.
    • MR→=r−m=xi−4j{\overrightarrow{MR} = \mathbf r - \mathbf m = x\mathbf i - 4\mathbf j}.

    Think first. End minus start for NQ and MR.

  2. Scalar product zero

    • x(x−2)+2(−4)=0{x(x - 2) + 2(-4) = 0}.
    • So x2−2x−8=0{x^2 - 2x - 8 = 0}.
    • Factorise: (x−4)(x+2)=0{(x - 4)(x + 2) = 0}, so x=4{x = 4} or x=−2{x = -2}.

    Think first. Multiply the i parts, multiply the j parts, add.

More: perpendicular vectors

The scalar product from lengths

Squaring ∣a+b∣|\mathbf a + \mathbf b| gives ∣a+b∣2=∣a∣2+∣b∣2+2 a⋅b|\mathbf a + \mathbf b|^2 = |\mathbf a|^2 + |\mathbf b|^2 + 2\,\mathbf a \cdot \mathbf b, so the lengths alone can give the scalar product and the angle.

Worked example · WAEC 2018

WAEC 2018 · Paper 2 · Q15 (b)

The vectors a\mathbf a and b\mathbf b are such that ∣a∣=3 cm|\mathbf a| = 3\text{ cm}, ∣b∣=10 cm|\mathbf b| = 10\text{ cm} and ∣a+b∣=139|\mathbf a + \mathbf b| = \sqrt{139}. Find: (i) the angle between a\mathbf a and b\mathbf b; (ii) the scalar (dot) product of a\mathbf a and b\mathbf b.

  1. Square the length

    • ∣a+b∣2=∣a∣2+∣b∣2+2 a⋅b{|\mathbf a + \mathbf b|^2 = |\mathbf a|^2 + |\mathbf b|^2 + 2\,\mathbf a \cdot \mathbf b}.
    • 139=9+100+2 a⋅b{139 = 9 + 100 + 2\,\mathbf a \cdot \mathbf b}, so a⋅b=15{\mathbf a \cdot \mathbf b = 15}.

    Think first. Expand |a + b|².

  2. The angle

    • cos⁡θ=153×10=12{\cos\theta = \frac{15}{3 \times 10} = \frac12}, so θ=60∘{\theta = 60^\circ}.

More: unknowns from an angle

Your turn

WAEC 2018 · Paper 2 · Q7

  1. (a)

    A triangle PQRPQR has vertices P(2,2)P(2, 2), Q(3,−1)Q(3, -1) and R(4,0)R(4, 0). Using the vector method, calculate angle PQRPQR.

Worked solution (try it first)
  1. Angle PQRPQR is at QQ, so use vectors starting at QQ.
  2. QP→=(−13)\overrightarrow{QP} = \begin{pmatrix} -1 \\ 3 \end{pmatrix} and QR→=(11)\overrightarrow{QR} = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.
  3. Their scalar product is (−1)(1)+(3)(1)=2(-1)(1) + (3)(1) = 2.
  4. cos⁡θ=2102\cos\theta = \dfrac{2}{\sqrt{10}\sqrt2}
    =15= \dfrac{1}{\sqrt5}, so θ≈63.43∘\theta \approx 63.43^\circ.

Report a problem with this question