I can
- find the angle between two vectors
- find the length of a + b when I know lengths and a · b
- find t so that a + tb is perpendicular to a
Key idea
The angle θ between a and b satisfies cos θ = (a · b) ÷ (length of a × length of b). Useful values: cos 60° = 1/2, cos 45° = 1/√2, cos 90° = 0, cos 120° = −1/2.
For lengths, use (length of a + b)² = (a + b) · (a + b) = (length of a)² + 2 a · b + (length of b)². For a − b, the middle term is −2 a · b. For a + 3b the middle term is 6 a · b and the last term is 9 times (length of b)².
Two vectors are perpendicular when their inner product is 0. To find t with (a + tb) perpendicular to a, write a · a + t (a · b) = 0, so t = −(a · a) ÷ (a · b).
Worked examples
Example 1: Lengths 2 and 3, a · b = 3. Find the angle between a and b.
Watch it: lengths 2 and 3, a · b = 3: the angle between a and b, step by step:
- The dot product gives the cosine of the angle.
- cos θ = 3 ÷ (2 × 3) = 1/2.
- From the special triangle, cos 60° = 1/2.
- The angle is 60 degrees.
- a has length 2 and b has length 3. The angle between them is 60°.
- cos θ = 3 ÷ (2 × 3) = 1/2.
- The angle with cosine 1/2 is 60°.
The angle is 60 degrees.
Example 2: Lengths 2 and 3, a · b = 1. Find the length of a + b.
Watch it: lengths 2 and 3, a · b = 1: the length of a + b, step by step:
- Square the length of a + b and expand.
- |a|² = 4, 2 a · b = 2 and |b|² = 9. They add to 15.
- The length is the square root of 15.
- a, b and the diagonal a + b of the parallelogram.
- (length)² = 4 + 2 × 1 + 9 = 15.
- The length is the square root of 15.
The length of a + b is √15.
Example 3: a = (2, 1), b = (1, 3). Find t so that a + tb is perpendicular to a.
Watch it: a = (2, 1), b = (1, 3): t so that a + tb ⟂ a, step by step:
- a · a = 2 × 2 + 1 × 1 = 5.
- a · b = 2 × 1 + 1 × 3 = 5.
- For a perpendicular pair, the dot product is 0.
- Put in a · a = 5 and a · b = 5.
- t = −5 ÷ 5 = −1.
- Check: a + tb = (1, −2), and (1, −2) · (2, 1) = 2 − 2 = 0.
- a = (2, 1) and a + tb = (1, −2) meet at a right angle.
- a · a = 4 + 1 = 5.
- a · b = 2 + 3 = 5.
- t = −5 ÷ 5 = −1.
- Check: a + tb = (1, −2), and (1, −2) · (2, 1) = 0.
t = −1
Try it
Show answer
90Show answer
60Show answer
45Show answer
120Show answer
5Show answer
-2Common mistakes
- Forgetting to divide by both lengths when finding cos θ.
- Writing (length of a + b)² as a² + b². The middle term 2 a · b is needed.
- Wrong sign for t. The formula has a minus sign: t = −(a · a) ÷ (a · b).
Remember
- cos θ = (a · b) ÷ (product of the lengths).
- Perpendicular means inner product 0.
- Square both sides to get the length of a sum.
Practise this
Worksheets 71 to 80 of Vectors practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.
Open Mathhh