Worked example 1
Calculate a dot product
a = (3, −2), b = (4, 5). Find a · b.
- Multiply matching components.
- Add the products.
Answer: a · b = 3×4 + (-2)×5 = 2.
Higher Mathematics
Practise scalar product for Scottish Higher Mathematics with worked examples, clear methods and original interactive questions. Calculate scalar products, test perpendicularity and find the angle between vectors.
The scalar product, or dot product, combines two vectors to give a number. It helps find angles between vectors and test for perpendicular vectors.
If a · b = 0 and neither vector is zero, the vectors are perpendicular.
a · b = |a||b| cos θ = a₁b₁ + a₂b₂
Worked example 1
a = (3, −2), b = (4, 5). Find a · b.
Answer: a · b = 3×4 + (-2)×5 = 2.
Worked example 2
For a = (1, 0), b = (1, 1), find the angle between them.
So: cos θ = , so θ = 45°
Exam reminder
State whether the angle is exact or rounded. If using a calculator, give the degree of accuracy requested.
Continue with the methods that connect most closely to this topic.