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
What you must be able to do
| You must be able to | Level | What it looks like in the exam |
|---|---|---|
| Calculate v · w from components | HL only | "Find a · b" (2 marks) |
| Use v · w = (length of v)(length of w) cos θ to find the angle between two vectors | HL 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 vectors | HL only | "Find the size of angle ABC" (5 marks, Paper 2) |
| Use v · w = 0 for perpendicular vectors, and find an unknown from it | HL 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 lengths | HL 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, squared | HL 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 product | HL 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).
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.
| Property | In words |
|---|---|
| v · w = w · v | order does not matter (it is commutative) |
| u · (v + w) = u · v + u · w | brackets 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|.
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 θ.
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.
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.
- 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.
Worked example 4 (Paper 2). Find the angle between a = 2i − j + 2k and b = i + 4j − k, in degrees.
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.
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.
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.
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.
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.
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.
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
- Write the formula from the booklet first, then substitute with every component in brackets.
- Before finding an angle, note the sign of the scalar product and predict acute or obtuse.
- For an angle in a shape, name the vertex and build both vectors out of it: BA⃗ = a − b, BC⃗ = c − b.
- 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.
- 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.
- For lengths from given scalar products, square first: |a + b|² = (a + b) · (a + b), expand, then square-root.
- 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.