Educerie

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 3.13 · HL only

The scalar product

How do you multiply two vectors to get a number, and how does that number find the angle between them and decide at once whether they are perpendicular or parallel?

What you will learn

  • HL Know how to calculate the scalar product from components, and that the result is a number.
  • HL Understand why v · w = |v||w| cos θ, and how it gives the angle between two vectors.
  • HL Know that non-zero vectors are perpendicular when v · w = 0 and parallel when |v · w| = |v||w|.
  • HL Know the algebra rules of the scalar product, including v · v = |v|².

You must be able to

  1. HL Find the angle between two vectors, exactly on Paper 1 and to three figures on Paper 2.
  2. HL Find an unknown that makes two vectors perpendicular.
  3. HL Calculate an angle of a triangle from its vertices, using two vectors out of that vertex.
  4. HL Calculate a length such as |a + b| from given lengths and a scalar product.
  5. HL Show that two vectors are perpendicular or parallel.
  6. HL Prove a geometric result, such as the angle in a semicircle, with the scalar product.

In the exam. Paper 1 (no calculator): find a scalar product, show two vectors are perpendicular (3 marks), find the possible values of an unknown that makes them perpendicular (4 marks), an exact angle such as π3\frac{\pi}{3}, the length of a sum such as ∣a+b∣\lvert\boldsymbol{a} + \boldsymbol{b}\rvert from lengths and an angle, and short proofs with the properties. Paper 2: the angle between vectors or at the vertex of a triangle given by coordinates, and the area that follows (3 to 7 marks). The scalar product is then used in every question on lines and planes (3.14 to 3.18).

1Calculating it from components

For v=v1i+v2j+v3k\boldsymbol{v} = v_{1}\boldsymbol{i} + v_{2}\boldsymbol{j} + v_{3}\boldsymbol{k} and w=w1i+w2j+w3k\boldsymbol{w} = w_{1}\boldsymbol{i} + w_{2}\boldsymbol{j} + w_{3}\boldsymbol{k},

v⋅w=v1w1+v2w2+v3w3\boldsymbol{v} \cdot \boldsymbol{w} = v_{1}w_{1} + v_{2}w_{2} + v_{3}w_{3} · in the formula booklet. The answer is a scalar, not a vector.

Worked example 1 (Paper 1). Find (5i+2j−3k)⋅(−i+4j+2k)(5\boldsymbol{i} + 2\boldsymbol{j} - 3\boldsymbol{k}) \cdot (-\boldsymbol{i} + 4\boldsymbol{j} + 2\boldsymbol{k}).

(5)(−1)+(2)(4)+(−3)(2)=−5+8−6=−3\begin{aligned} &(5)(-1) + (2)(4) + (-3)(2) \\[6pt] &= -5 + 8 - 6 \\[6pt] &= -3\end{aligned}
  • Pair the i\boldsymbol{i}-parts, the j\boldsymbol{j}-parts and the k\boldsymbol{k}-parts, multiply each pair, and add. A missing component is 0.
  • The result has no i\boldsymbol{i}, j\boldsymbol{j} or k\boldsymbol{k} in it. Writing −5i+8j−6k-5\boldsymbol{i} + 8\boldsymbol{j} - 6\boldsymbol{k} as the answer is a common error, and it is simply wrong.
  • Column vectors follow the same rule. In two dimensions the v3w3v_{3}w_{3} term is simply absent: (6−2)⋅(17)=6−14=−8\begin{pmatrix}6\\-2\end{pmatrix} \cdot \begin{pmatrix}1\\7\end{pmatrix} = 6 - 14 = -8.
  • Multiplying a vector by a number, as in 3v3\boldsymbol{v}, is a different operation. Its answer is a vector.
  • The base vectors show where the definition comes from. i⋅i=1\boldsymbol{i} \cdot \boldsymbol{i} = 1 because each has components 1, 0, 0. i⋅j=0\boldsymbol{i} \cdot \boldsymbol{j} = 0 because 1×0+0×1+0×0=01 \times 0 + 0 \times 1 + 0 \times 0 = 0.
    • So the three base vectors have length 1 and are perpendicular in pairs. Multiply out (v1i+v2j+v3k)⋅(w1i+w2j+w3k)(v_{1}\boldsymbol{i} + v_{2}\boldsymbol{j} + v_{3}\boldsymbol{k}) \cdot (w_{1}\boldsymbol{i} + w_{2}\boldsymbol{j} + w_{3}\boldsymbol{k}) and every mixed product vanishes. Only v1w1+v2w2+v3w3v_{1}w_{1} + v_{2}w_{2} + v_{3}w_{3} is left.
  • A vector dotted with itself is the sum of its squared components, which is ∣v∣2\lvert\boldsymbol{v}\rvert^{2} by Pythagoras. This is the key to everything in section 8.

2The same number from lengths and an angle

  • The angle between two vectors is measured with both vectors starting at the same point, tail to tail, as in Figure 1. It always lies in the range 0≤θ≤π0 \le \theta \le \pi.
  • If the vectors are drawn nose to tail, slide one of them first. The angle at the join is not θ\theta.
Figure 1 · The angle between two vectors is measured tail to tail (a) as given: nose to tail v w the angle at the join is not θ (b) moved tail to tail v w θ Slide w so both arrows start at the same point, then measure θ between them. Always 0 ≤ θ ≤ π.
Figure 1 · The angle between two vectors is measured tail to tail

v⋅w=∣v∣∣w∣cos⁡θ\boldsymbol{v} \cdot \boldsymbol{w} = \lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert\cos\theta · in the formula booklet, where θ\theta is the angle between v\boldsymbol{v} and w\boldsymbol{w}.

Why the two forms agree

  • The guide's TOK question asks why the scalar product is defined as it is. This is the answer.
  • Draw v\boldsymbol{v} and w\boldsymbol{w} tail to tail. The third side of the triangle is v−w\boldsymbol{v} - \boldsymbol{w}, as in Figure 2. Find ∣v−w∣2\lvert\boldsymbol{v} - \boldsymbol{w}\rvert^{2} in two ways.
Figure 2 · The triangle behind v · w = |v||w| cos θ v w v − w θ The cosine rule and the algebra of the scalar product both give |v − w|². Setting them equal forces v · w = |v||w| cos θ.
Figure 2 · The triangle behind v · w = |v||w| cos θ
∣v−w∣2=(v1−w1)2+(v2−w2)2+(v3−w3)2=∣v∣2+∣w∣2−2(v1w1+v2w2+v3w3)square each difference\lvert \boldsymbol{v} - \boldsymbol{w}\rvert^{2} = (v_{1} - w_{1})^{2} + (v_{2} - w_{2})^{2} + (v_{3} - w_{3})^{2} = \lvert \boldsymbol{v}\rvert^{2} + \lvert \boldsymbol{w}\rvert^{2} - 2(v_{1}w_{1} + v_{2}w_{2} + v_{3}w_{3}) \qquad \textcolor{#838c91}{\text{square each difference}}∣v−w∣2=∣v∣2+∣w∣2−2∣v∣∣w∣cos⁡θcosine rule in the triangle\lvert \boldsymbol{v} - \boldsymbol{w}\rvert^{2} = \lvert \boldsymbol{v}\rvert^{2} + \lvert \boldsymbol{w}\rvert^{2} - 2\lvert \boldsymbol{v}\rvert \lvert \boldsymbol{w}\rvert \cos\theta \qquad \textcolor{#838c91}{\text{cosine rule in the triangle}}v1w1+v2w2+v3w3=∣v∣∣w∣cos⁡θcompare the two linesv_{1}w_{1} + v_{2}w_{2} + v_{3}w_{3} = \lvert \boldsymbol{v}\rvert \lvert \boldsymbol{w}\rvert \cos\theta \qquad \textcolor{#838c91}{\text{compare the two lines}}
  • The guide's enrichment suggestion runs the other way. Take ∣v∣∣w∣cos⁡θ\lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert\cos\theta as the definition and expand ∣v−w∣2\lvert\boldsymbol{v} - \boldsymbol{w}\rvert^{2} with the properties of section 8. The result is the cosine rule.
  • Either way, the component definition was chosen because it measures something geometric.

The sign tells you the angle

  • ∣v∣\lvert\boldsymbol{v}\rvert and ∣w∣\lvert\boldsymbol{w}\rvert are positive, so v⋅w\boldsymbol{v} \cdot \boldsymbol{w} has the same sign as cos⁡θ\cos\theta. Figure 3 shows the three cases.
Figure 3 · The sign of v · w tells you the kind of angle acute: v · w > 0 v w cos θ > 0 right angle: v · w = 0 v w cos θ = 0 obtuse: v · w < 0 v w cos θ < 0 |v| and |w| are positive, so v · w = |v||w|cos θ has the sign of cos θ.
Figure 3 · The sign of v · w tells you the kind of angle
  • v⋅w>0\boldsymbol{v} \cdot \boldsymbol{w} > 0: θ\theta is acute.
  • v⋅w=0\boldsymbol{v} \cdot \boldsymbol{w} = 0: θ=π2\theta = \frac{\pi}{2}, a right angle.
  • v⋅w<0\boldsymbol{v} \cdot \boldsymbol{w} < 0: θ\theta is obtuse.

In Worked example 1, the scalar product −3-3 says at once that the angle between those vectors is obtuse.

Because −1≤cos⁡θ≤1-1 \le \cos\theta \le 1, the scalar product always lies between −∣v∣∣w∣-\lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert and ∣v∣∣w∣\lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert.

  • The top value belongs to vectors pointing the same way (θ=0\theta = 0).
  • The bottom value belongs to vectors pointing opposite ways (θ=π\theta = \pi).

Worked example 2 (Paper 1).

(a) ∣u∣=5\lvert\boldsymbol{u}\rvert = 5, ∣v∣=2\lvert\boldsymbol{v}\rvert = 2 and the angle between them is π4\frac{\pi}{4}. Find u⋅v\boldsymbol{u} \cdot \boldsymbol{v}.

(b) ∣p∣=6\lvert\boldsymbol{p}\rvert = 6, ∣q∣=4\lvert\boldsymbol{q}\rvert = 4 and p⋅q=−12\boldsymbol{p} \cdot \boldsymbol{q} = -12. Find the angle between p\boldsymbol{p} and q\boldsymbol{q}.

u⋅v=(5)(2)cos⁡π4=10×22=52(a) lengths and angle: no components needed\boldsymbol{u} \cdot \boldsymbol{v} = (5)(2)\cos\frac{\pi}{4} = 10 \times \frac{\sqrt{2}}{2} = 5\sqrt{2} \qquad \textcolor{#838c91}{\text{(a) lengths and angle: no components needed}}cos⁡θ=−12(6)(4)=−12(b) rearrange the same formula\cos\theta = \frac{-12}{(6)(4)} = -\frac{1}{2} \qquad \textcolor{#838c91}{\text{(b) rearrange the same formula}}θ=2π3obtuse, as the negative sign said\theta = \frac{2\pi}{3} \qquad \textcolor{#838c91}{\text{obtuse, as the negative sign said}}

Neither part gave components. The formula works in both directions. Questions use the lengths-and-angle form when the vectors are described in words or by a figure.

3Finding the angle between two vectors

Rearrange the geometric form:

cos⁡θ=v1w1+v2w2+v3w3∣v∣∣w∣\cos\theta = \dfrac{v_{1}w_{1} + v_{2}w_{2} + v_{3}w_{3}}{\lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert} · in the formula booklet.

The routine is always three numbers: the scalar product, then the two lengths. Then divide and take the inverse cosine.

Worked example 3 (Paper 1). Find the exact angle between a=2i+2k\boldsymbol{a} = 2\boldsymbol{i} + 2\boldsymbol{k} and b=−3i\boldsymbol{b} = -3\boldsymbol{i}.

a⋅b=(2)(−3)+(0)(0)+(2)(0)=−6\boldsymbol{a} \cdot \boldsymbol{b} = (2)(-3) + (0)(0) + (2)(0) = -6∣a∣=4+4=22,∣b∣=3\lvert \boldsymbol{a}\rvert = \sqrt{4 + 4} = 2\sqrt{2}, \quad \lvert \boldsymbol{b}\rvert = 3cos⁡θ=−622×3=−12\cos\theta = \frac{-6}{2\sqrt{2} \times 3} = -\frac{1}{\sqrt{2}}θ=3π4\theta = \frac{3\pi}{4}

On Paper 1 the fraction must come out as one of the familiar values. If it does not, recheck the arithmetic before reaching for a decimal.

Worked example 4 (Paper 2). Find the angle between a=3i−j+2k\boldsymbol{a} = 3\boldsymbol{i} - \boldsymbol{j} + 2\boldsymbol{k} and b=i+4j+5k\boldsymbol{b} = \boldsymbol{i} + 4\boldsymbol{j} + 5\boldsymbol{k}, in degrees.

a⋅b=3−4+10=9positive: expect an acute angle\boldsymbol{a} \cdot \boldsymbol{b} = 3 - 4 + 10 = 9 \qquad \textcolor{#838c91}{\text{positive: expect an acute angle}}∣a∣=9+1+4=14\lvert \boldsymbol{a}\rvert = \sqrt{9 + 1 + 4} = \sqrt{14}∣b∣=1+16+25=42\lvert \boldsymbol{b}\rvert = \sqrt{1 + 16 + 25} = \sqrt{42}cos⁡θ=91442=0.37115…\cos\theta = \frac{9}{\sqrt{14}\sqrt{42}} = 0.37115\ldotsθ=68.2∘ (3 s.f.), or 1.19 radians\theta = 68.2^{\circ} \ \text{(3 s.f.), or}\ 1.19 \ \text{radians}
  • Keep the full calculator value of cos⁡θ\cos\theta. Rounding it to 0.370.37 first gives 68.3∘68.3^{\circ}, which is wrong in the third figure and loses the accuracy mark.
  • Check the answer against the sign: an acute answer agrees with the positive scalar product.

4Angles in a triangle: choose the vectors that start at the vertex

For the angle ABC at the vertex B, both vectors must start at B: use BA→\overrightarrow{BA} and BC→\overrightarrow{BC}. Using AB→\overrightarrow{AB} and BC→\overrightarrow{BC} measures the angle between one side and the extension of the other, which is π−B\pi - B. Figure 4 shows the difference.

Figure 4 · For angle ABC, both vectors must start at B (a) right: BA⃗ and BC⃗ BA⃗ BC⃗ B A B C (b) wrong: AB⃗ and BC⃗ AB⃗ BC⃗ π − B A B C BA⃗ and BC⃗ give the angle of the triangle. AB⃗ and BC⃗ give its supplement, π − B.
Figure 4 · For angle ABC, both vectors must start at B

Worked example 5 (Paper 2). A(−1,2,3)A(-1, 2, 3), B(2,0,5)B(2, 0, 5) and C(1,4,−1)C(1, 4, -1). Find angle ABC and the area of triangle ABC.

BA→=a−b=−3i+2j−2k\overrightarrow{BA} = \boldsymbol{a} - \boldsymbol{b} = -3\boldsymbol{i} + 2\boldsymbol{j} - 2\boldsymbol{k}BC→=c−b=−i+4j−6k\overrightarrow{BC} = \boldsymbol{c} - \boldsymbol{b} = -\boldsymbol{i} + 4\boldsymbol{j} - 6\boldsymbol{k}BA→⋅BC→=(−3)(−1)+(2)(4)+(−2)(−6)=23\overrightarrow{BA} \cdot \overrightarrow{BC} = (-3)(-1) + (2)(4) + (-2)(-6) = 23∣BA→∣=17,∣BC→∣=53\lvert\overrightarrow{BA}\rvert = \sqrt{17}, \quad \lvert\overrightarrow{BC}\rvert = \sqrt{53}cos⁡B=231753=23901\cos B = \frac{23}{\sqrt{17}\sqrt{53}} = \frac{23}{\sqrt{901}}B=40.0∘ (3 s.f.)B = 40.0^{\circ} \ \text{(3 s.f.)}sin⁡B=1−529901=372901sin⁡B>0 in a triangle\sin B = \sqrt{1 - \frac{529}{901}} = \sqrt{\frac{372}{901}} \qquad \textcolor{#838c91}{\sin B > 0\text{ in a triangle}}area=121753372901=12372=93=9.64 (3 s.f.)\text{area} = \frac{1}{2}\sqrt{17}\sqrt{53}\sqrt{\frac{372}{901}} = \frac{1}{2}\sqrt{372} = \sqrt{93} = 9.64 \ \text{(3 s.f.)}
  • The area used the SL formula 12absin⁡C\frac{1}{2}ab\sin C with the two sides meeting at B. Finding sin⁡B\sin B exactly from cos⁡B\cos B avoids carrying a rounded angle. (In 3.16 the vector product gives the area more directly.)
  • The same idea finds an angle in a solid. Name the vertex, build two vectors out of it, and use section 4.

5Perpendicular vectors

For non-zero vectors, cos⁡θ=0\cos\theta = 0 exactly when θ=π2\theta = \frac{\pi}{2}, so:

v⋅w=0⇔v\boldsymbol{v} \cdot \boldsymbol{w} = 0 \Leftrightarrow \boldsymbol{v} and w\boldsymbol{w} are perpendicular (for non-zero v\boldsymbol{v} and w\boldsymbol{w}).

  • This is the scalar product's most used fact. It proves a right angle, and it finds an unknown that makes one.
  • The "non-zero" condition matters. 0⋅w=0\boldsymbol{0} \cdot \boldsymbol{w} = 0 for every w\boldsymbol{w}, but the zero vector has no direction. So it is not perpendicular to anything in a meaningful sense.

Worked example 6 (Paper 1). Find pp such that 5i+pj−2k5\boldsymbol{i} + p\boldsymbol{j} - 2\boldsymbol{k} is perpendicular to 2i−3j−k2\boldsymbol{i} - 3\boldsymbol{j} - \boldsymbol{k}.

(5)(2)+(p)(−3)+(−2)(−1)=0(5)(2) + (p)(-3) + (-2)(-1) = 010−3p+2=010 - 3p + 2 = 0p=4p = 4

Worked example 7 (Paper 1). a=mi+3j−2k\boldsymbol{a} = m\boldsymbol{i} + 3\boldsymbol{j} - 2\boldsymbol{k} and b=(m−5)i+4j+3k\boldsymbol{b} = (m - 5)\boldsymbol{i} + 4\boldsymbol{j} + 3\boldsymbol{k}. Find the values of mm for which a\boldsymbol{a} and b\boldsymbol{b} are perpendicular.

a⋅b=m(m−5)+(3)(4)+(−2)(3)=m2−5m+6\boldsymbol{a} \cdot \boldsymbol{b} = m(m - 5) + (3)(4) + (-2)(3) = m^{2} - 5m + 6m2−5m+6=0  ⟺  (m−2)(m−3)=0m^{2} - 5m + 6 = 0 \iff (m - 2)(m - 3) = 0m=2 or m=3m = 2 \ \text{or}\ m = 3
  • An unknown in both vectors gives a quadratic, so expect two values and give both. Neither vector is the zero vector for either value (the j\boldsymbol{j}-component of a\boldsymbol{a} is 3), so both answers stand.
  • To show a triangle has a right angle at Q, show QP→⋅QR→=0\overrightarrow{QP} \cdot \overrightarrow{QR} = 0, with both vectors out of Q; Q4 below does this.

6Parallel vectors

For parallel vectors θ=0\theta = 0 (same direction) or θ=π\theta = \pi (opposite directions). Then cos⁡θ=±1\cos\theta = \pm 1, and

∣v⋅w∣=∣v∣∣w∣\lvert\boldsymbol{v} \cdot \boldsymbol{w}\rvert = \lvert\boldsymbol{v}\rvert\lvert\boldsymbol{w}\rvert for parallel vectors.

Worked example 8 (Paper 1). Show that u=4i−4j+2k\boldsymbol{u} = 4\boldsymbol{i} - 4\boldsymbol{j} + 2\boldsymbol{k} and w=−6i+6j−3k\boldsymbol{w} = -6\boldsymbol{i} + 6\boldsymbol{j} - 3\boldsymbol{k} are parallel, and say whether they point the same way.

u⋅w=−24−24−6=−54\boldsymbol{u} \cdot \boldsymbol{w} = -24 - 24 - 6 = -54∣u∣=16+16+4=6,∣w∣=36+36+9=9\lvert \boldsymbol{u}\rvert = \sqrt{16 + 16 + 4} = 6, \quad \lvert \boldsymbol{w}\rvert = \sqrt{36 + 36 + 9} = 9∣u⋅w∣=54=∣u∣∣w∣so cos⁡θ=−1 and θ=π\lvert \boldsymbol{u} \cdot \boldsymbol{w}\rvert = 54 = \lvert \boldsymbol{u}\rvert \lvert \boldsymbol{w}\rvert \qquad \textcolor{#838c91}{\text{so }\cos\theta = -1\text{ and }\theta = \pi}
  • They are parallel and point in opposite directions, because the scalar product is negative.
  • The test from 3.12, w=−32u\boldsymbol{w} = -\frac{3}{2}\boldsymbol{u}, reaches the same conclusion faster when the components are simple. Use whichever the question points to. A "hence" after a scalar product calculation wants this one.

7The algebra of the scalar product

The guide lists four properties. Each follows from the definition by writing out components.

PropertyIn words
v⋅w=w⋅v\boldsymbol{v} \cdot \boldsymbol{w} = \boldsymbol{w} \cdot \boldsymbol{v}order does not matter (it is commutative)
u⋅(v+w)=u⋅v+u⋅w\boldsymbol{u} \cdot (\boldsymbol{v} + \boldsymbol{w}) = \boldsymbol{u} \cdot \boldsymbol{v} + \boldsymbol{u} \cdot \boldsymbol{w}brackets expand as usual (it distributes over addition)
(kv)⋅w=k(v⋅w)(k\boldsymbol{v}) \cdot \boldsymbol{w} = k(\boldsymbol{v} \cdot \boldsymbol{w})a scalar can be taken outside
v⋅v=∣v∣2\boldsymbol{v} \cdot \boldsymbol{v} = \lvert\boldsymbol{v}\rvert^{2}a vector dotted with itself is its length squared

Together these let you expand brackets exactly as in ordinary algebra, as long as every product is a dot product. They matter most when a question gives lengths and a scalar product but no components.

Worked example 9 (Paper 1). ∣p∣=2\lvert\boldsymbol{p}\rvert = 2, ∣q∣=3\lvert\boldsymbol{q}\rvert = 3 and p⋅q=−1\boldsymbol{p} \cdot \boldsymbol{q} = -1. Find ∣3p−q∣\lvert 3\boldsymbol{p} - \boldsymbol{q}\rvert.

∣3p−q∣2=(3p−q)⋅(3p−q)=9p⋅p−3p⋅q−3q⋅p+q⋅qexpand; q⋅p=p⋅q=9∣p∣2−6p⋅q+∣q∣2=36+6+9=51\begin{aligned}\lvert 3\boldsymbol{p} - \boldsymbol{q}\rvert^{2} &= (3\boldsymbol{p} - \boldsymbol{q}) \cdot (3\boldsymbol{p} - \boldsymbol{q}) \\[6pt] &= 9\boldsymbol{p} \cdot \boldsymbol{p} - 3\boldsymbol{p} \cdot \boldsymbol{q} - 3\boldsymbol{q} \cdot \boldsymbol{p} + \boldsymbol{q} \cdot \boldsymbol{q} && \textcolor{#838c91}{\text{expand; }\boldsymbol{q} \cdot \boldsymbol{p} = \boldsymbol{p} \cdot \boldsymbol{q}} \\[6pt] &= 9\lvert \boldsymbol{p}\rvert^{2} - 6\boldsymbol{p} \cdot \boldsymbol{q} + \lvert \boldsymbol{q}\rvert^{2} \\[6pt] &= 36 + 6 + 9 = 51\end{aligned}∣3p−q∣=51\lvert 3\boldsymbol{p} - \boldsymbol{q}\rvert = \sqrt{51}
  • Square first, expand, and take the square root last. Stopping at 51 is a common last-line loss.
  • The two extremes of section 2 also bound the length of a sum. From ∣a+b∣2=∣a∣2+2a⋅b+∣b∣2\lvert\boldsymbol{a} + \boldsymbol{b}\rvert^{2} = \lvert\boldsymbol{a}\rvert^{2} + 2\boldsymbol{a} \cdot \boldsymbol{b} + \lvert\boldsymbol{b}\rvert^{2}, the sum is longest when the vectors point the same way (θ=0\theta = 0). It is shortest when they point opposite ways (θ=π\theta = \pi).
    • Example: for ∣a∣=9\lvert\boldsymbol{a}\rvert = 9 and ∣b∣=4\lvert\boldsymbol{b}\rvert = 4, 5≤∣a+b∣≤135 \le \lvert\boldsymbol{a} + \boldsymbol{b}\rvert \le 13.

Worked example 10 (Paper 1). ∣a∣=8\lvert\boldsymbol{a}\rvert = 8 and ∣b∣=6\lvert\boldsymbol{b}\rvert = 6, and 3a+b3\boldsymbol{a} + \boldsymbol{b} is perpendicular to a−2b\boldsymbol{a} - 2\boldsymbol{b}.

Find the exact angle between a\boldsymbol{a} and b\boldsymbol{b}.

(3a+b)⋅(a−2b)=0perpendicular(3\boldsymbol{a} + \boldsymbol{b}) \cdot (\boldsymbol{a} - 2\boldsymbol{b}) = 0 \qquad \textcolor{#838c91}{\text{perpendicular}}3a⋅a−6a⋅b+b⋅a−2b⋅b=0expand3\boldsymbol{a} \cdot \boldsymbol{a} - 6\boldsymbol{a} \cdot \boldsymbol{b} + \boldsymbol{b} \cdot \boldsymbol{a} - 2\boldsymbol{b} \cdot \boldsymbol{b} = 0 \qquad \textcolor{#838c91}{\text{expand}}3∣a∣2−5a⋅b−2∣b∣2=0b⋅a=a⋅b3\lvert\boldsymbol{a}\rvert^{2} - 5\boldsymbol{a} \cdot \boldsymbol{b} - 2\lvert\boldsymbol{b}\rvert^{2} = 0 \qquad \textcolor{#838c91}{\boldsymbol{b} \cdot \boldsymbol{a} = \boldsymbol{a} \cdot \boldsymbol{b}}192−5a⋅b−72=0  ⟹  a⋅b=24192 - 5\boldsymbol{a} \cdot \boldsymbol{b} - 72 = 0 \implies \boldsymbol{a} \cdot \boldsymbol{b} = 24cos⁡θ=24(8)(6)=12\cos\theta = \frac{24}{(8)(6)} = \frac{1}{2}θ=π3\theta = \frac{\pi}{3}

No components appear. The perpendicular condition gives the scalar product, and the geometric form turns it into the angle.

8What the number measures

  • Rearranged, v⋅w∣v∣=∣w∣cos⁡θ\dfrac{\boldsymbol{v} \cdot \boldsymbol{w}}{\lvert\boldsymbol{v}\rvert} = \lvert\boldsymbol{w}\rvert\cos\theta. That is the scalar component of w\boldsymbol{w} along v\boldsymbol{v}. It is the signed length of the "shadow" of w\boldsymbol{w} on the line of v\boldsymbol{v}, shown in Figure 5. It says how much of w\boldsymbol{w} points along v\boldsymbol{v}.
  • It is positive when θ\theta is acute and negative when θ\theta is obtuse, because the shadow then points against v\boldsymbol{v}. The shadow's length itself is ∣w∣ ∣cos⁡θ∣\lvert\boldsymbol{w}\rvert\,\lvert\cos\theta\rvert.
Figure 5 · What the number measures: the shadow of one vector on another v w |w| cos θ θ The component of w along v is |w| cos θ = (v · w) ÷ |v|. For a force, (F · s) is the work done.
Figure 5 · What the number measures: the shadow of one vector on another

Worked example 11 (Paper 1). Find the component of w=i+5j+2k\boldsymbol{w} = \boldsymbol{i} + 5\boldsymbol{j} + 2\boldsymbol{k} along v=3i+4k\boldsymbol{v} = 3\boldsymbol{i} + 4\boldsymbol{k}.

v⋅w=3+0+8=11,∣v∣=5\boldsymbol{v} \cdot \boldsymbol{w} = 3 + 0 + 8 = 11, \quad \lvert\boldsymbol{v}\rvert = 5∣w∣cos⁡θ=115\lvert\boldsymbol{w}\rvert\cos\theta = \frac{11}{5}
  • In physics, the work done by a force F\boldsymbol{F} moving an object through a displacement s\boldsymbol{s} is F⋅s\boldsymbol{F} \cdot \boldsymbol{s}. That is the part of the force along the motion times the distance moved.
    • Example: a force of 6i+2j6\boldsymbol{i} + 2\boldsymbol{j} newtons moving an object by 4i−3j4\boldsymbol{i} - 3\boldsymbol{j} metres does 24−6=1824 - 6 = 18 joules of work. A force at right angles to the motion does no work, which is the perpendicular test again.

9Proofs with the scalar product

The properties turn geometric facts into algebra. The pattern: name the vectors, express the lines in question with them, expand, and read off the conclusion. The classic example is the angle in a semicircle.

Worked example 12 (Paper 1 or 3). A and B are the ends of a diameter of a circle with centre O. P is any other point on the circle. Prove that angle APB is a right angle.

Figure 6 · The angle in a semicircle, proved with a scalar product u −u p A B P O PA⃗ · PB⃗ = |p|² − |u|² = 0, because |p| = |u| = r. So angle APB is a right angle.
Figure 6 · The angle in a semicircle, proved with a scalar product
let OB→=u, so OA→=−u, and let OP→=p\text{let } \overrightarrow{OB} = \boldsymbol{u}, \ \text{so}\ \overrightarrow{OA} = -\boldsymbol{u}, \ \text{and let}\ \overrightarrow{OP} = \boldsymbol{p}∣p∣=∣u∣=rboth are radii\lvert \boldsymbol{p}\rvert = \lvert \boldsymbol{u}\rvert = r \qquad \textcolor{#838c91}{\text{both are radii}}PA→=−u−p,PB→=u−p\overrightarrow{PA} = -\boldsymbol{u} - \boldsymbol{p}, \quad \overrightarrow{PB} = \boldsymbol{u} - \boldsymbol{p}PA→⋅PB→=(−u−p)⋅(u−p)=−u⋅u+u⋅p−p⋅u+p⋅pexpand=−∣u∣2+∣p∣2=−r2+r2=0\begin{aligned}\overrightarrow{PA} \cdot \overrightarrow{PB} &= (-\boldsymbol{u} - \boldsymbol{p}) \cdot (\boldsymbol{u} - \boldsymbol{p}) \\[6pt] &= -\boldsymbol{u} \cdot \boldsymbol{u} + \boldsymbol{u} \cdot \boldsymbol{p} - \boldsymbol{p} \cdot \boldsymbol{u} + \boldsymbol{p} \cdot \boldsymbol{p} && \textcolor{#838c91}{\text{expand}} \\[6pt] &= -\lvert \boldsymbol{u}\rvert^{2} + \lvert \boldsymbol{p}\rvert^{2} = -r^{2} + r^{2} = 0\end{aligned}

PA→\overrightarrow{PA} and PB→\overrightarrow{PB} are non-zero (P is neither A nor B) and their scalar product is 0. So they are perpendicular and angle APB = π2\frac{\pi}{2}.

  • The proof never used coordinates, so it holds for every circle and every P.

Worked example 13 (Paper 1). The diagonals of a parallelogram are equal in length. Prove that the parallelogram is a rectangle.

let the sides from one corner be a and b; the diagonals are a+b and a−b\text{let the sides from one corner be } \boldsymbol{a} \text{ and } \boldsymbol{b}; \ \text{the diagonals are}\ \boldsymbol{a} + \boldsymbol{b} \ \text{and}\ \boldsymbol{a} - \boldsymbol{b}∣a+b∣2=∣a−b∣2equal diagonals, squared\lvert \boldsymbol{a} + \boldsymbol{b}\rvert^{2} = \lvert \boldsymbol{a} - \boldsymbol{b}\rvert^{2} \qquad \textcolor{#838c91}{\text{equal diagonals, squared}}∣a∣2+2a⋅b+∣b∣2=∣a∣2−2a⋅b+∣b∣2\lvert \boldsymbol{a}\rvert^{2} + 2\boldsymbol{a} \cdot \boldsymbol{b} + \lvert \boldsymbol{b}\rvert^{2} = \lvert \boldsymbol{a}\rvert^{2} - 2\boldsymbol{a} \cdot \boldsymbol{b} + \lvert \boldsymbol{b}\rvert^{2}4a⋅b=04\boldsymbol{a} \cdot \boldsymbol{b} = 0

So a⋅b=0\boldsymbol{a} \cdot \boldsymbol{b} = 0, and the two sides at that corner are non-zero and perpendicular. The corner is a right angle, and a parallelogram with one right angle is a rectangle.

Practice questions

31 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.