James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout

The scalar product

The scalar (dot) product: its two formulas, the angle between two vectors, the test for perpendicular vectors, projections, and using the algebra of the dot product in proofs.

AHL 3.13HL onlyPaper 1Paper 2≈ 55 min to work through
Before you start: vector components and magnitude. See Vectors: the basics.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Calculate 𝐚·𝐛 from componentsAHL 3.13
  • Use 𝐚·𝐛=|𝐚||𝐛|cosθ to find anglesAHL 3.13
  • Test for perpendicular vectors and find unknownsAHL 3.13
  • Find angles in triangles and solids using vectorsAHL 3.13
  • Use properties of the dot product in proofsAHL 3.13

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

The scalar product turns two vectors into one number that measures how much they point the same way. It is large and positive when they are nearly parallel, zero when they are perpendicular, and negative when they point apart. That makes it the tool for angles and for testing perpendicularity, in any number of dimensions.

2.1 Two formulas

Scalar product In formula booklet
𝐚·𝐛=a1b1+a2b2+a3b3=|𝐚||𝐛|cosθ

where θ is the angle between 𝐚 and 𝐛 when they are placed tail to tail. Hence cosθ=𝐚·𝐛|𝐚||𝐛|.

Worked example 1Paper 1
Find the angle between 𝐚=(122) and 𝐛=(2−12).
𝐚·𝐛=2−2+4=4; |𝐚|=|𝐛|=3
cosθ=49
θ=63.6°
Why do the two formulas agree?

The cosine rule in the triangle formed by 𝐚, 𝐛 and 𝐚−𝐛 gives |𝐚−𝐛|2=|𝐚|2+|𝐛|2−2|𝐚||𝐛|cosθ. Expanding the left side in components gives |𝐚|2+|𝐛|2−2(a1b1+a2b2+a3b3). Comparing, the two formulas are equal.

2.2 Perpendicular vectors

Perpendicular test Not in booklet: learn it

For non-zero vectors, 𝐚⟂𝐛⟺𝐚·𝐛=0. Parallel vectors have 𝐚·𝐛=±|𝐚||𝐛|.

Worked example 2Paper 1
Find k such that (k2−1) and (3k4) are perpendicular.
3k+2k−4=0
k=45

2.3 Angles in triangles and solids

To find angle BA^C, use the vectors from A: AB→ and AC→. Using BA→ with AC→ gives the supplementary (exterior) angle instead.

Worked example 3Paper 2
Find BA^C for A(1,0,0), B(0,2,0), C(0,0,3).
AB→=(−120), AC→=(−103)
cosBA^C=1510
BA^C=81.9°
Worked example 4Paper 1
Find the exact cosine of the angle between two space diagonals of a cube, and the acute angle.
Take the unit cube: diagonals along (111) and (11−1).
A smart choice of coordinates.
cosθ=1+1−133=13
θ=70.5°

2.4 Algebra of the scalar product

The dot product behaves like ordinary multiplication: 𝐚·𝐛=𝐛·𝐚, 𝐚·(𝐛+𝐜)=𝐚·𝐛+𝐚·𝐜, and 𝐚·𝐚=|𝐚|2. This allows proofs without coordinates.

Worked example 5Paper 1
Show that if |𝐚+𝐛|=|𝐚−𝐛| then 𝐚⟂𝐛.
|𝐚+𝐛|2=(𝐚+𝐛)·(𝐚+𝐛)=|𝐚|2+2𝐚·𝐛+|𝐛|2
Similarly |𝐚−𝐛|2=|𝐚|2−2𝐚·𝐛+|𝐛|2
Equal, so 4𝐚·𝐛=0, hence 𝐚⟂𝐛.
Geometrically: a parallelogram with equal diagonals is a rectangle.

Projection. The component of 𝐚 in the direction of 𝐛 (the length of the shadow of 𝐚 on 𝐛) is 𝐚·𝐛|𝐛|=|𝐚|cosθ. This idea gives shortest distances later on.

Worked example 6 (faded)Paper 1
Find (2−13)·(142).
2−4+6= 4  ← you work this out
On your TI-Nspire Calculator tricks →

dotP([1,2,2],[2,-1,2]) gives the scalar product. For an angle: cos⁻¹(dotP(a,b)/(norm(a)·norm(b))) in degree or radian mode as required.

3Explore it

Rotate 𝐛. The scalar product is positive for acute angles, zero at 90° and negative for obtuse angles. The green segment is the projection of 𝐛 onto 𝐚.

4Common mistakes & exam tips

Common mistakes

  • Thinking the scalar product is a vector. It is a number.
  • Using BA→ and AC→ for angle A, which gives the exterior angle.
  • Forgetting that cosθ<0 means an obtuse angle: if the question asks for the acute angle, use 180°−θ.
  • Writing 𝐚2 for 𝐚·𝐚 and then treating it as a vector.
  • Arithmetic slips with negative components: write each product separately.

Exam tips

  • For an "exact" angle question, give cosθ as a fraction or surd before the angle.
  • Perpendicular ⇒ set the dot product to zero: this is the commonest use in exams.
  • In proofs, expand dot products like brackets and use 𝐚·𝐚=|𝐚|2.
  • State "acute angle" or "obtuse angle" if the question distinguishes them.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find (30−2)·(154).
3−8=−5
FluencyP2
Find the angle between 𝐢+𝐣 and 𝐣+𝐤.
cosθ=12: 60°
FluencyP3
Show that (21−2) and (122) are perpendicular.
2+2−4=0
FluencyP4
|𝐚|=4, |𝐛|=5, 𝐚·𝐛=10. Find the angle between them.
cosθ=12: 60°
Problem solvingP5
Show that the diagonals of a rhombus are perpendicular.
Sides 𝐚,𝐛 with |𝐚|=|𝐛|; diagonals 𝐚+𝐛, 𝐚−𝐛; dot product |𝐚|2−|𝐛|2=0.
Problem solvingP6
Find a vector perpendicular to both (101) and (011) using dot products.
(xyz): x+z=0, y+z=0: e.g. (11−1). (Faster: the vector product.)

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[5 marks]

Let 𝐚=(21−2) and 𝐛=(1−22).

  • (a)Find 𝐚·𝐛.[1]
  • (b)Find the exact value of the cosine of the angle between 𝐚 and 𝐛.[3]
  • (c)State whether this angle is acute or obtuse.[1]
(a)
−4A1
(b)
|𝐚|=|𝐛|=3A1
−43×3M1
−49A1
(c)
obtuse, since cosθ<0R1
Question 2Paper 1[6 marks]

The vectors 𝐮=(k2−1) and 𝐯=(3k4) are perpendicular.

  • (a)Find the value of k.[2]
  • (b)For this k, find the angle between 𝐮 and 𝐰=(011), to the nearest degree.[4]
(a)
3k+2k−4=0M1
k=45A1
(b)
𝐮·𝐰=1A1
|𝐮|=5.64, |𝐰|=2A1
cosθ=15.642M1
73°A1
Question 3Paper 1[6 marks]

Let 𝐚 and 𝐛 be non-zero vectors with |𝐚|=|𝐛|.

  • (a)Show that (𝐚+𝐛)·(𝐚−𝐛)=0.[3]
  • (b)Hence state a geometric property of a rhombus, explaining your answer.[3]
(a)
𝐚·𝐚−𝐚·𝐛+𝐛·𝐚−𝐛·𝐛M1A1
|𝐚|2−|𝐛|2=0AG A1
(b)
sides of a rhombus can be taken as 𝐚,𝐛 with equal lengthR1
diagonals are 𝐚+𝐛 and 𝐚−𝐛R1
so the diagonals are perpendicularA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2023 · TZ2 · Paper 1Q9A scalar product condition in a parallelogram★★★
May 2023 · TZ1 · Paper 1Q12The angle between two intersecting lines★★★
May 2025 · TZ2 · Paper 3Q2Scalar products within an investigation★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake