Educerie
Level

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

Educerie · IB Diploma · Mathematics: analysis and approaches

Topic 3 Geometry and trigonometry · 3.13 The scalar product

Level
HL only, the whole subtopic. If you are SL, none of this is on your papers.
Themes (key concepts)
relationships, equivalence, quantity. The scalar product turns two vectors into a single quantity, and its two equivalent forms, one from components and one from lengths and an angle, give an algebraic handle on a geometric relationship: the angle between two directions.
The question this unit answers
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?
Where it is examined
Paper 1 (no calculator): find a scalar product, show two vectors are perpendicular, find an unknown that makes them perpendicular (3 to 5 marks), an exact angle such as π/3, and short proofs with the properties (4 to 6 marks). Paper 2: angles in triangles and solids given by coordinates, and the area that follows (5 to 7 marks). The scalar product is then used in every question on lines and planes (3.14 to 3.18).

What you must be able to do

You must be able toLevelWhat it looks like in the exam
Calculate v · w from componentsHL only"Find a · b" (2 marks)
Use v · w = (length of v)(length of w) cos θ to find the angle between two vectorsHL only"Find the angle between a and b" (4 to 5 marks)
Find an angle of a triangle from the coordinates of its vertices, choosing the right pair of vectorsHL only"Find the size of angle ABC" (5 marks, Paper 2)
Use v · w = 0 for perpendicular vectors, and find an unknown from itHL only"Find p such that a and b are perpendicular" (3 marks)
Use the parallel test: the size of v · w equals the product of the lengthsHL only"Show that a and b are parallel" (2 to 3 marks)
Apply the properties v · w = w · v, u · (v + w) = u · v + u · w, (kv) · w = k(v · w), and v · v = the length of v, squaredHL only"Given the lengths of a and b and a · b, find the length of a + b" (4 marks)
Prove geometric results with the scalar productHL only"Show that the diagonals of a rhombus are perpendicular" (5 marks, Paper 1 or 3)

Before you start

You need all of 3.12: components, AB⃗ = b − a, and the magnitude |v| = √(v₁² + v₂² + v₃²). You need the cosine rule (SL 3.2), because it is the reason the two forms of the scalar product agree, and exact values of cos at 0, π/6, π/4, π/3, π/2 and their supplements (SL 3.5). Vectors are bold in the text and plain in the worked calculations.


1The idea in one paragraph

Multiply two vectors component by component and add: that gives a single number, the scalar product (or dot product) v · w = v₁w₁ + v₂w₂ + v₃w₃. The surprise is that the same number is also |v||w| cos θ, where θ is the angle between the vectors. So the scalar product links the numbers in two vectors to the angle between them, and rearranging gives cos θ = (v · w) ÷ (|v||w|). Two quick tests fall out. If v · w = 0, cos θ = 0 and the vectors are perpendicular; if |v · w| equals |v||w|, cos θ = ±1 and they are parallel. The sign alone tells you whether the angle is acute or obtuse. And because the product obeys the ordinary rules of algebra, you can expand brackets of vectors and prove geometry with them.

2The definition

For v = v₁i + v₂j + v₃k and w = w₁i + w₂j + w₃k,

v · w = v₁w₁ + v₂w₂ + v₃w₃ · in the formula booklet. The answer is a scalar, not a vector.

Worked example 1 (Paper 1). Find (3i + 2j − k) · (i − 4j + 2k).

(3)(1) + (2)(−4) + (−1)(2)
= 3 − 8 − 2
= −7

Pair the i-components, the j-components and the k-components, multiply each pair, and add. A missing component is 0. The result has no i, j or k in it; writing 3i − 8j − 2k as the answer is the most common error on this page, and it scores nothing.

The base vectors show where the definition comes from. i · i = 1 because each has components 1, 0, 0, and i · j = 0 because 1 × 0 + 0 × 1 + 0 × 0 = 0. Expanding (v₁i + v₂j + v₃k) · (w₁i + w₂j + w₃k) term by term, every mixed product such as i · j vanishes, and only v₁w₁ + v₂w₂ + v₃w₃ survives.

3The rules it obeys

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

PropertyIn words
v · w = w · vorder does not matter (it is commutative)
u · (v + w) = u · v + u · wbrackets expand as usual (it distributes over addition)
(kv) · w = k(v · w)a scalar can be taken outside
v · v = v₁² + v₂² + v₃²a vector dotted with itself is its length squared

The last one is the most useful, and the reason is Pythagoras: v · v = v₁² + v₂² + v₃², which is |v|². Together these let you expand brackets exactly as in ordinary algebra, as long as every product is a dot product.

Worked example 2 (Paper 1). |a| = 3, |b| = 5 and a · b = −4. Find |a − 2b|.

|a − 2b|2 = (a − 2b) · (a − 2b)
= a · a − 2a · b − 2b · a + 4b · bexpand; b · a = a · b
= |a|2 − 4a · b + 4|b|2
= 9 − 4(−4) + 4(25) = 125
|a − 2b| = √125 = 5√5

You never needed components. That is the point of the properties: some questions give only lengths and a scalar product.

4The 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 ≤ θ ≤ π. If the vectors are drawn nose to tail, slide one of them first; the angle at the join is not θ.

Figure 1 · The angle between two vectors is measured tail to tail 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 θ · in the formula booklet, where θ is the angle between v and w.

Why the two forms agree. The guide's TOK question asks why the scalar product is defined as it is, and this is the answer. Draw v and w tail to tail; the third side of the triangle is v − w, as in Figure 2. Find |v − w|² in two ways.

Figure 2 · The triangle behind v · w = |v||w| cos θ 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 = (v − w) · (v − w) = |v|2 − 2v · w + |w|2properties of section 3
|v − w|2 = |v|2 + |w|2 − 2|v| |w| cos θcosine rule in the triangle
v · w = |v| |w| cos θcompare the two lines

Read backwards, the same two lines prove the cosine rule from the scalar product, which is the guide's enrichment suggestion. Either way, the component definition was chosen because it measures something geometric.

The sign tells you the angle. |v| and |w| are positive, so v · w has the same sign as cos θ. Figure 3 shows the three cases.

Figure 3 · The sign of v · w tells you the kind of angle 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: θ is acute.
  • v · w = 0: θ = π/2, a right angle.
  • v · w < 0: θ is obtuse.

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

5Finding the angle between two vectors

Rearrange the geometric form:

cos θ = (v₁w₁ + v₂w₂ + v₃w₃) ÷ (|v||w|) · in the formula booklet.

Worked example 3 (Paper 1). Find the exact angle between a = i + j and b = j + k.

a · b = (1)(0) + (1)(1) + (0)(1) = 1
|a| = √2, |b| = √2
cos θ = 1 / (√2 × √2) = 1/2
θ = π/3

Worked example 4 (Paper 2). Find the angle between a = 2i − j + 2k and b = i + 4j − k, in degrees.

a · b = 2 − 4 − 2 = −4negative: expect an obtuse angle
|a| = √(4 + 1 + 4) = 3
|b| = √(1 + 16 + 1) = √18 = 3√2
cos θ = −4 / (9√2) = −0.31427...
θ = 108.3° (1 d.p.), or 1.89 radians

Keep the full calculator value of cos θ; rounding it to −0.31 first moves the angle by a tenth of a degree, enough to lose the accuracy mark. And check the answer against the sign: an obtuse answer here agrees with the negative scalar product.

6Angles 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⃗ and BC⃗. Using AB⃗ and BC⃗ measures the angle between one side and the extension of the other, which is π − B. Figure 4 shows the difference.

Figure 4 · For angle ABC, both vectors must start at B 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, 0, 2), B(3, 1, 0) and C(4, −1, 3). Find angle ABC and the area of triangle ABC.

BA = a − b = −2i − j + 2k
BC = c − b = i − 2j + 3k
BA · BC = (−2)(1) + (−1)(−2) + (2)(3) = 6
|BA| = √(4 + 1 + 4) = 3, |BC| = √(1 + 4 + 9) = √14
cos B = 6 / (3√14) = 2/√14
B = 57.7° (3 s.f.)
sin B = √(1 − 4/14) = √(10/14)sin B > 0 in a triangle
area = (1/2)|BA| |BC| sin B = (1/2)(3)(√14)√(10/14) = (3/2)√10 = 4.74 (3 s.f.)

The area used the SL formula ½ab sin C with the two sides meeting at B. Finding sin B exactly from cos B avoids carrying a rounded angle. (In 3.16 the vector product gives the area more directly.)

7Perpendicular vectors

For non-zero vectors, cos θ = 0 exactly when θ = π/2, so:

v · w = 0 ⇔ v and w are perpendicular (for non-zero v and w).

This is the scalar product's most used fact. It proves a right angle, and it finds an unknown that makes one.

Worked example 6 (Paper 1). Find p such that 2i + pj − k is perpendicular to 3i − 2j + 4k.

(2)(3) + (p)(−2) + (−1)(4) = 0
6 − 2p − 4 = 0
p = 1

The condition "non-zero" matters. 0 · w = 0 for every w, but the zero vector has no direction, so it is not perpendicular to anything in a meaningful sense.

To show a triangle has a right angle at Q, show QP⃗ · QR⃗ = 0; Q4 below does this.

8Parallel vectors

For parallel vectors θ = 0 (same direction) or θ = π (opposite directions), so cos θ = ±1 and

|v · w| = |v||w| for parallel vectors.

Worked example 7 (Paper 1). Show that u = 2i − j + 2k and w = −4i + 2j − 4k are parallel, and say whether they point the same way.

u · w = −8 − 2 − 8 = −18
|u| = 3, |w| = √(16 + 4 + 16) = 6
|u · w| = 18 = |u| |w|so cos θ = −1 and θ = π

They are parallel and point in opposite directions, because the scalar product is negative. The test from 3.12, w = −2u, 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.

9What the number measures, and proofs

The projection. Rearranged, v · w ÷ |v| = |w| cos θ. That is the length of the "shadow" of w on the line of v, shown in Figure 5: how much of w points along v. In physics, the work done by a force F moving an object through a displacement s is F · s, the part of the force along the motion times the distance moved. A force at right angles to the motion does no work, which is the perpendicular test again.

Figure 5 · What the number measures: the shadow of one vector on another 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

Proofs. The properties turn geometric facts into algebra. The classic example is the angle in a semicircle.

Worked example 8 (Paper 1 or 3). A and B are the ends of a diameter of a circle with centre O, and 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 Figure 6 · The angle in a semicircle, proved with a scalar product u −u p A B P O PA⃗ · PB⃗ = |u|² − |p|² = 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
|p| = |u| = rboth are radii
PA = −u − p, PB = u − p
PA · PB = (−u − p) · (u − p)
= −u · u + u · p − p · u + p · pexpand
= −|u|2 + |p|2 = −r2 + r2 = 0

PA⃗ and PB⃗ are non-zero (P is neither A nor B) and their scalar product is 0, so they are perpendicular and angle APB = π/2. The proof never used coordinates, so it holds for every circle and every P.

10Where marks are lost

Writing a vector as the answer. v · w is a number. "3i − 8j − 2k" is not a scalar product.

Using the wrong pair of vectors for an angle. For angle ABC use BA⃗ and BC⃗, both from B. AB⃗ with BC⃗ gives π − B.

Rounding cos θ before taking arccos. Keep the exact fraction or the full calculator value, then round the angle.

Dropping the negative sign. A negative scalar product means an obtuse angle. Taking arccos of the absolute value gives the acute angle instead, and the wrong answer.

Degree and radian mode. Say which unit your answer is in, and check the calculator is set to match.

Forgetting to square the whole magnitude. v · v = |v|², so |a + b| needs a square root at the end. Stopping at 37 instead of √37 is a common last-line loss.

Treating v · w as ordinary multiplication. You cannot divide by a vector, and (a · b)c is a vector, not the same as a(b · c). Only the listed properties are allowed.

11Work it right

  1. Write the formula from the booklet first, then substitute with every component in brackets.
  2. Before finding an angle, note the sign of the scalar product and predict acute or obtuse.
  3. For an angle in a shape, name the vertex and build both vectors out of it: BA⃗ = a − b, BC⃗ = c − b.
  4. On Paper 1, leave cos θ as an exact fraction and recognise the exact angle; on Paper 2, carry the full value and round only the final angle.
  5. For perpendicular, set the scalar product to 0 and say the vectors are non-zero. For parallel, show |v · w| = |v||w| or v = kw.
  6. For lengths from given scalar products, square first: |a + b|² = (a + b) · (a + b), expand, then square-root.
  7. In a proof, define the vectors, expand with the properties, and end with a sentence saying what the zero (or the equality) means.

12Try it

Marks in brackets. Q1, Q2, Q4, Q5 and Q6 are Paper 1 style (no calculator). Q3 is Paper 2 style.

Q1. a = 2i − 3j + k and b = i + j + pk.

(a) Find a · b in terms of p. 2 marks

(b) Find the value of p for which a and b are perpendicular. 1 mark

(c) For p = 3, state whether the angle between a and b is acute or obtuse, giving a reason. 2 marks

Q2. Find the exact angle between the vectors i + j and k − i. 4 marks

Q3. Paper 2. The points A(2, −1, 4), B(5, 1, 2) and C(−1, 3, 6) are the vertices of a triangle.

(a) Find AB⃗ and AC⃗. 2 marks

(b) Find the size of angle BAC, in degrees. 4 marks

(c) Find the area of triangle ABC. 2 marks

Q4. The points P(3, 2, 0), Q(1, 1, 1) and R(2, 0, 2) are given.

(a) Show that angle PQR is a right angle. 3 marks

(b) Find the exact area of triangle PQR. 3 marks

Q5. OABC is a rhombus, with OA⃗ = a and OC⃗ = c, so that |a| = |c|. Prove that the diagonals OB and AC are perpendicular. 5 marks

Q6. The vectors a and b satisfy |a| = 3, |b| = 4 and a · b = 6.

(a) Find the exact angle between a and b. 2 marks

(b) Find |a + b|. 3 marks

13In one breath

The scalar product v · w = v₁w₁ + v₂w₂ + v₃w₃ is a number, and it equals |v||w| cos θ, where θ is the angle between the vectors measured tail to tail, 0 ≤ θ ≤ π; the cosine rule is the reason the two agree. So cos θ = (v · w) ÷ (|v||w|): a positive product means acute, zero means perpendicular, negative means obtuse. For an angle of a triangle, both vectors start at the vertex. Non-zero vectors are perpendicular exactly when v · w = 0, which also finds unknowns; parallel vectors have |v · w| = |v||w|. The product is commutative, distributes over addition, lets scalars out, and v · v = |v|², so vector brackets expand like ordinary algebra, which turns lengths such as |a − 2b| and geometric proofs such as the angle in a semicircle into a few lines.


Answers

Q1. (a) a · b = (2)(1) + (−3)(1) + (1)(p) = p − 1. (b) p − 1 = 0, so p = 1. (c) For p = 3, a · b = 2 > 0, and since |a||b| > 0, cos θ > 0, so the angle is acute. (a) M1 for the component products, A1 for p − 1. (b) A1. (c) A1 for 2, R1 for linking the positive sign to an acute angle.

Q2. u = i + j and v = −i + k. u · v = (1)(−1) + (1)(0) + (0)(1) = −1. |u| = |v| = √2. cos θ = −1 ÷ 2 = −1/2, so θ = 2π/3. M1 for the scalar product, A1 for −1 and both magnitudes √2, M1 for cos θ = −1/2, A1 for 2π/3 (accept 120°). Giving π/3 scores M1 A1 M1 A0.

Q3. (a) AB⃗ = 3i + 2j − 2k and AC⃗ = −3i + 4j + 2k. (b) AB⃗ · AC⃗ = −9 + 8 − 4 = −5, |AB⃗| = √17 and |AC⃗| = √29. cos A = −5 ÷ √493 = −0.2252, so angle BAC = 103° (3 s.f.). (c) Area = ½ × √17 × √29 × sin 103.01° = 10.8 (3 s.f.). (a) A1 A1. (b) M1 for the scalar product of their vectors, A1 for −5 with both magnitudes, M1 for substituting into the angle formula, A1 for 103°. (c) M1 for ½|AB||AC| sin A, A1 for 10.8. Using AB⃗ and BC⃗ in (b) scores M1 A0 M1 A0.

Q4. (a) QP⃗ = 2i + j − k and QR⃗ = i − j + k. QP⃗ · QR⃗ = 2 − 1 − 1 = 0, and both vectors are non-zero, so they are perpendicular: angle PQR = π/2. (b) |QP⃗| = √6 and |QR⃗| = √3. The right angle is at Q, so the area is ½ × √6 × √3 = ½√18 = 3√2/2. (a) A1 for both vectors from Q, M1 for the scalar product, R1 for "= 0, so perpendicular". (b) A1 for both magnitudes, M1 for ½ × base × height, A1 for 3√2/2.

Q5. OB⃗ = a + c (along OA, then AB, which equals OC⃗) and AC⃗ = c − a. OB⃗ · AC⃗ = (a + c) · (c − a) = a · c − a · a + c · c − c · a = |c|² − |a|² = 0, because |a| = |c|. The diagonals are non-zero vectors with scalar product 0, so they are perpendicular. A1 for OB⃗ = a + c, A1 for AC⃗ = c − a, M1 for expanding the scalar product, A1 for |c|² − |a|² using a · c = c · a, R1 for concluding from = 0 with |a| = |c|.

Q6. (a) cos θ = 6 ÷ (3 × 4) = 1/2, so θ = π/3. (b) |a + b|² = |a|² + 2a · b + |b|² = 9 + 12 + 16 = 37, so |a + b| = √37. (a) M1 for cos θ = a · b ÷ (|a||b|), A1 for π/3. (b) M1 for expanding (a + b) · (a + b), A1 for 37, A1 for √37. An answer of 3 + 4 = 7 scores 0.


Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section AHL 3.13 The scalar product of two vectors; the angle between two vectors; perpendicular and parallel vectors. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.

Mocks: in the future, hold tight!