The cosine of a difference, from a distance on the circle
Quick review (2 minutes)
Picture two seats on a Ferris wheel with a rope pulled tight from one to the other.
For every pair of angles a and b, in degrees or in radians: cos(a − b) = cos a cos b + sin a sin b.
Read what is asked: cos(a − b) is the cosine of one angle, the gap a − b. It is not two cosines with a minus between them.
Name the angles: a is the angle before the minus sign and b is the angle after it.
Write the four values cos a, sin a, cos b and sin b from the unit circle or the special triangles, each with the sign its quadrant gives it.
Multiply the two cosines: cos a · cos b.
Multiply the two sines: sin a · sin b.
Add the two products. The sign between them is plus, even though the angle has a minus.
Check: when the gap a − b is an angle whose cosine you know, the result must equal that cosine.
Draw the unit circle with P at angle a and Q at angle b, and write them as P = (cos a, sin a) and Q = (cos b, sin b).
First measurement: put P and Q into the squared distance formula, P = (cos a − cos b + (sin a − sin b.
Expand both squares, pair a with a and b with b, replace each pair by 1, and take out −2: P = 2 − 2(cos a cos b + sin a sin b).
Turn the circle back by b, so every angle loses b. Q lands on (1, 0) and P lands on (cos(a − b), sin(a − b)); the chord moves with them and keeps its length.
Second measurement: P = (cos(a − b) − 1 + (a − b) = 2 − 2 cos(a − b), after expanding and using (a − b) + (a − b) = 1.
Equate the two expressions for the squared distance, take 2 away from each side, and divide each side by −2: cos(a − b) = cos a cos b + sin a sin b.
On the unit circle, P is the point at 90° and Q is the point at 30°. Find the length of the chord PQ where it sits, and again after turning the circle back (clockwise) by 30°. Then test the difference formula with a = 90° and b = 30°. In plain words: measure one straight line in two pictures, check that the two lengths agree, and check that cos 90° cos 30° + sin 90° sin 30° equals cos(90° − 30°).
PQ = 1 both ways.
cos 90° cos 30° + sin 90° sin 30° = = cos(90° − 30°).
Copying the minus sign. The angle inside is a − b, so a minus between the two products feels natural, but the formula has a plus: cos(a − b) = cos a cos b + sin a sin b. Catch it with a = b: the gap is 0° and cos 0° = 1, and only the plus gives a + a = 1.
difference formula
A difference formula gives the sine, cosine or tangent of one angle minus another, a − b, from the values of each angle on its own.
chord
A chord (say KORD) is a straight segment whose two ends both lie on a circle. It cuts straight across, so it is shorter than the curved arc between the same two ends.
1 In plain words
Picture two seats on a Ferris wheel with a rope pulled tight from one to the other. A straight line joining two points of a circle is called a chord. When the wheel turns, both seats move together, so the rope keeps its length: it depends only on the gap between the seats, not on where the wheel stopped. If one seat sits at angle a and the other at angle b, the gap is a − b. You can measure that chord twice: once where the seats are, and once after turning the wheel until one seat reaches the 3 o'clock spot. The two lengths must agree, and writing that down gives the difference formula: cos(a − b) = cos a cos b + sin a sin b.
2 Picture it
Reminder
Reminder: A point on the unit circle, The distance formula, Squaring a difference, Squaring a sum, What t means, The Pythagorean identity, Multiplying fractions with roots, Signs when multiplying, Special angles, Signs by quadrant, Subtracting a negative, Taking out a common factor, Keeping an equation balanced, Subtracting fractions of π
- A point on the unit circle. The point at angle t is (cos t, sin t): x is the cosine, y is the sine. At 0° it is (1, 0); at 90° it is (0, 1).
- The distance formula. d = , so = ( − + ( − . From (1, 0) to (0, 1): = (0 − 1 + (1 − 0 = 2, so d = .
- Squaring a difference. (x − y = − 2xy + , three terms. Test: (5 − 2 = 9, and 25 − 20 + 4 = 9.
- Squaring a sum. (x + y = + 2xy + . Test: (1 + 2 = 9, and 1 + 4 + 4 = 9.
- What t means. t means (cos t: find the cosine, then square it. 60° = ( = .
- The Pythagorean identity. t + t = 1 for every angle t, with the same t in both places. At 30°: + = 1.
- Multiplying fractions with roots. Multiply top by top and bottom by bottom, using · = 3: · = , and · = .
- Signs when multiplying. Negative times negative is positive, negative times positive is negative: (−)(−) = , and (− = 2.
- Special angles.
- Signs by quadrant. Quadrant II: cosine negative, sine positive. Quadrant III: both negative. Quadrant IV: cosine positive, sine negative. So cos 210° = −, since 210° is 30° past 180° and lies in quadrant III.
- Subtracting a negative. Taking away a negative adds: − − (−) = − + = .
- Taking out a common factor. −2X − 2Y = −2(X + Y). Test with X = 3 and Y = 4: −6 − 8 = −14, and −2 · 7 = −14.
- Keeping an equation balanced. Subtract the same number from both sides, or divide both sides by the same number that is not 0, and they stay equal: 2 − 2c = 2 − 2d becomes −2c = −2d, then c = d.
- Subtracting fractions of π. Give them a common bottom first: − = − = = .
3 Why
Take the chord between the points at angles a and b, (cos a, sin a) and (cos b, sin b). The distance formula, after expanding and using t + t = 1 twice, gives its squared length as 2 − 2(cos a cos b + sin a sin b). Turn the circle back by b: the point at b lands on (1, 0), the point at a lands at angle a − b, and the squared length reads 2 − 2 cos(a − b). Turning cannot stretch a chord, so the results are equal, which forces cos(a − b) = cos a cos b + sin a sin b.
4 The rule
For every pair of angles a and b, in degrees or in radians: .
The same idea, five ways
the cosine of a minus b equals cosine a times cosine b, plus sine a times sine b
The cosine of the gap between two angles equals the product of their cosines plus the product of their sines.
- cos(a − b) = + , for the point (, ) at angle a and the point (, ) at angle b on the unit circle
- chord picture: P = 2 − 2 cos(a − b), for the chord PQ between those two points
Like the rope between two Ferris wheel seats: its length depends only on the gap between the seats, so you may measure it wherever the wheel happens to stop.
The same idea, other ways
Draw the unit circle with P at angle a, Q at angle b, and the straight chord PQ between them. Draw it a second time after turning the whole circle back by b: Q now sits at 3 o'clock, the point (1, 0), and P sits at angle a − b. The two drawings show one chord, moved but not stretched. Measure it in each drawing with the distance formula and set the two answers equal.
Before the turn: P = (cos a, sin a), Q = (cos b, sin b)
After turning back by b: P = (cos(a − b), sin(a − b)), Q = (1, 0)
One chord, so the two values of P are equal
Two friends ride a Ferris wheel in seats joined by a tight rope. You can measure the rope right now, wherever the seats happen to be. Or you can wait until the wheel carries one friend to the 3 o'clock spot and measure it then. The rope has not changed, so both measurements give the same number. The first measurement comes out in terms of cos a, cos b, sin a and sin b; the second in terms of cos(a − b). Saying the two are equal is the formula.
Take a = 180° and b = 90°. Where they sit, P = (−1, 0) and Q = (0, 1), so P = (−1 − 0 + (0 − 1 = 1 + 1 = 2. Turned back by 90°, P moves to 90°, the point (0, 1), and Q moves to (1, 0), so P = (0 − 1 + (1 − 0 = 2 again. The formula agrees: cos 180° cos 90° + sin 180° sin 90° = (−1)(0) + (0)(1) = 0, and cos(180° − 90°) = cos 90° = 0.
where they sit: P = (−1, 0), Q = (0, 1), P = 1 + 1 = 2
turned back by 90°: P = (0, 1), Q = (1, 0), P = 1 + 1 = 2
formula: (−1)(0) + (0)(1) = 0 = cos 90°
Work out the squared chord with letters and it always comes out as 2 minus 2 times something. Measured where the points sit, the something is cos a cos b + sin a sin b. Measured after the turn, the something is cos(a − b). One chord cannot have two lengths, so 2 − 2 × (the first something) equals 2 − 2 × (the second something), and that can only happen when the two somethings are equal.
where it sits: P = 2 − 2(cos a cos b + sin a sin b)
after the turn: P = 2 − 2 cos(a − b)
one chord, one length: cos(a − b) = cos a cos b + sin a sin b
Multiply matching coordinates and add. With P = (cos a, sin a) and Q = (cos b, sin b), x times x plus y times y is cos(a − b). It measures how well the two points line up: 1 when they are the same point, 0 when they are a quarter turn apart, −1 when they sit opposite each other. Try (1, 0) and (0, 1): 1 · 0 + 0 · 1 = 0 = cos 90°.
| a | b | cos a cos b | sin a sin b | their sum | ||
|---|---|---|---|---|---|---|
| 60° | 60° | 0° | 1 | 1 | ||
| 90° | 30° | 60° | 0 | |||
| 135° | 45° | 90° | 0 | 0 | ||
| 210° | 120° | 90° | 0 | 0 | ||
| 300° | 60° | 240° | ||||
| 30° | 90° | 0 |
5 How
- Read what is asked: cos(a − b) is the cosine of one angle, the gap a − b. It is not two cosines with a minus between them.
- Name the angles: a is the angle before the minus sign and b is the angle after it.
- Write the four values cos a, sin a, cos b and sin b from the unit circle or the special triangles, each with the sign its quadrant gives it.
- Multiply the two cosines: cos a · cos b.
- Multiply the two sines: sin a · sin b.
- Add the two products. The sign between them is plus, even though the angle has a minus.
- Check: when the gap a − b is an angle whose cosine you know, the result must equal that cosine.
Deriving the difference formula: one chord, measured two ways
- Draw the unit circle with P at angle a and Q at angle b, and write them as P = (cos a, sin a) and Q = (cos b, sin b).
- First measurement: put P and Q into the squared distance formula, P = (cos a − cos b + (sin a − sin b.
- Expand both squares, pair a with a and b with b, replace each pair by 1, and take out −2: P = 2 − 2(cos a cos b + sin a sin b).
- Turn the circle back by b, so every angle loses b. Q lands on (1, 0) and P lands on (cos(a − b), sin(a − b)); the chord moves with them and keeps its length.
- Second measurement: P = (cos(a − b) − 1 + (a − b) = 2 − 2 cos(a − b), after expanding and using (a − b) + (a − b) = 1.
- Equate the two expressions for the squared distance, take 2 away from each side, and divide each side by −2: cos(a − b) = cos a cos b + sin a sin b.
6 Worked example
Worked example
One chord, two ways: the points at 90° and 30°
On the unit circle, P is the point at 90° and Q is the point at 30°. Find the length of the chord PQ where it sits, and again after turning the circle back (clockwise) by 30°. Then test the difference formula with a = 90° and b = 30°. In plain words: measure one straight line in two pictures, check that the two lengths agree, and check that cos 90° cos 30° + sin 90° sin 30° equals cos(90° − 30°).
Show the steps and the answer
- Write the points where they sit: and .On the unit circle the point at angle t is (cos t, sin t). 90° points straight up, and the 30° values come from the 30-60-90 triangle.
- First way: .The distance formula subtracts the x's and the y's, squares each difference and adds. Working with P leaves the square root for the very end.
- Work out each square: , and , so .To square a fraction, square its top and its bottom; · = 3, and a negative number times itself is positive.
- Add: .The bottoms match, so add the tops.
- Turn the circle back by : Q moves to , the point (1, 0), and P moves to , the point .Turning back by 30° takes 30° off every angle. Both points move together, so the chord between them keeps its length.
- Second way: .The same distance formula on the turned points; − 1 = −, whose square is .
- Both ways give , so PQ .A length is never negative, so PQ is the positive square root of P.
- Formula side: .From P = (0, 1), cos 90° = 0 and sin 90° = 1; anything times 0 is 0.
- Gap side: . The two sides match.After the turn, P sat at 60°, and its x coordinate is cos 60° = .
- PQ = 1 both ways.
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 7
Rung 1: the same point twice
Use the difference formula with a = 60° and b = 60°, and compare the result with cos(60° − 60°). In plain words: when both angles are the same, does the formula give the cosine of a 0° gap?
Show the steps and the answer
- Find the gap and its cosine: , and .The point at 0° on the unit circle is (1, 0), and the cosine is its x coordinate.
- Write the values: and .The 30-60-90 triangle, shrunk to hypotenuse 1, has next to the 60° angle and across from it.
- Fill in the formula: .Multiply top by top and bottom by bottom; · = 3.
- Add: .The bottoms match, so add the tops.
Rung 2 of 7
Rung 2: a level chord, 135° and 45°
P is the point at 135° and Q is the point at 45° on the unit circle. Find P where the points sit and again after turning the circle back by 45°, then compare cos 135° cos 45° + sin 135° sin 45° with cos(135° − 45°). In plain words: measure one chord in two places, then test the formula on these two angles.
Show the steps and the answer
- Write the points: and .135° is 45° short of 180°, in quadrant II, where cosine is negative and sine is positive; at 45° both values are .
- First way: .Two halves of make one , here with a minus; equal heights subtract to 0; and (− = 2.
- Turn the circle back by : Q moves to , the point (1, 0), and P moves to , the point (0, 1).Turning back by 45° takes 45° off both angles, and the chord moves with them unchanged.
- Second way: .The distance formula on the turned points.
- Formula side: . · = 2; a negative times a positive is negative, so the two products cancel.
- Gap side: . The two sides match.The point at 90° is (0, 1), whose x coordinate is 0.
- P = 2 both ways, so PQ = .
- The formula gives 0 = cos 90°.
Rung 3 of 7
Rung 3: negatives and roots, 210° and 120°
P is the point at 210° and Q is the point at 120° on the unit circle. Find P where the points sit and after turning the circle back by 120°, then test the difference formula with a = 210° and b = 120°. In plain words: the same two measurements, with coordinates that are negative and contain roots.
Show the steps and the answer
- Write the points: and .210° is 30° past 180°, in quadrant III, where cosine and sine are both negative; 120° is 60° short of 180°, in quadrant II, where cosine is negative and sine positive.
- Find the differences. x: . y: .Taking away a negative adds; both fractions have bottom 2, so the tops combine.
- Square them: , and .(x − y = − 2xy + and (x + y = + 2xy + , with x = 1 and y = ; the bottom 2 squares to 4, and a negative squared is positive.
- Add: .The −2 and the +2 cancel.
- Turn the circle back by : Q moves to , the point (1, 0), and P moves to , the point (0, 1). Then .Both points turn together, so the chord is the same; the turned points have whole-number coordinates.
- Formula side: .A negative times a negative is positive; a negative times a positive is negative.
- Gap side: . The two sides match.The point at 90° is (0, 1).
- P = 2 both ways, so PQ = .
- The formula gives 0 = cos 90°.
Rung 4 of 7
Rung 4: a gap past half a turn, 300° and 60°
P is the point at 300° and Q is the point at 60° on the unit circle. Find P both ways and test the difference formula with a = 300° and b = 60°. In plain words: the gap 300° − 60° = 240° is more than half a turn; does the method still work, and does the formula give a negative cosine correctly?
Show the steps and the answer
- Write the points: and .300° is 60° short of 360°, in quadrant IV, where cosine is positive and sine negative; 60° gives (, ).
- First way: .The x's are equal; two halves of , with a minus, make −; and (− = 3.
- Turn the circle back by : Q moves to , the point (1, 0), and P moves to , the point .240° is 60° past 180°, in quadrant III, where both coordinates are negative.
- Second way: .− − 1 = −, whose square is ; a negative squared is positive.
- Formula side: . · = 3, a negative times a positive is negative, and reduces to .
- Gap side: . The two sides match.The turned point P = (−, −) sits at 240°, and its x coordinate is −.
- P = 3 both ways, so PQ = .
- The formula gives − = cos 240°.
Rung 5 of 7
Rung 5: the first way, with letters
For any angles a and b, let P = (cos a, sin a) and Q = (cos b, sin b). Show that P = 2 − 2(cos a cos b + sin a sin b). In plain words: do the first measurement once with letters, so it covers every pair of angles at the same time.
Show the steps and the answer
- .The squared distance formula, with x's cos a and cos b and y's sin a and sin b.
- First square: .(x − y = − 2xy + , with x = cos a and y = cos b.
- Second square: .The same pattern, with x = sin a and y = sin b.
- Regroup: .Terms joined by adding may be put in any order; this sets each angle's own and side by side.
- Replace each pair by 1: .t + t = 1 for every angle t, used once with t = a and once with t = b.
- Take out : .−2X − 2Y = −2(X + Y), with X = cos a cos b and Y = sin a sin b; multiplying the bracket back out returns the two terms.
Rung 6 of 7
Rung 6: the second way, with letters
Show that the chord from the point (cos t, sin t) to the point (1, 0) has squared length 2 − 2 cos t. In plain words: when one end of the chord sits at 3 o'clock, its squared length depends on one cosine only.
Show the steps and the answer
- .The squared distance formula, with (1, 0) as the second point.
- First square: .(x − y = − 2xy + , with x = cos t and y = 1: 2 · cos t · 1 = 2 cos t and = 1.
- Second square: .Taking away 0 changes nothing.
- Add and regroup: .t + t = 1, and 1 + 1 = 2.
Rung 7 of 7
Rung 7: the two ways together
Use rungs 5 and 6 to show that cos(a − b) = cos a cos b + sin a sin b for every pair of angles a and b. In plain words: measure one chord in two places with letters, set the two answers equal, and solve for cos(a − b).
Show the steps and the answer
where it sits: P = 2 − 2(cos a cos b + sin a sin b)
after the turn: P = 2 − 2 cos(a − b)
subtract 2: −2 cos(a − b) = −2(cos a cos b + sin a sin b)
divide by −2: cos(a − b) = cos a cos b + sin a sin b
- Put P at angle a and Q at angle b. By rung 5, .This is the first measurement, made where the points sit.
- Turn the circle back by b: Q moves to angle , the point (1, 0), and P moves to angle , the point .Turning back by b takes b off every angle, and the point at any angle t is (cos t, sin t).
- By rung 6 with , the turned chord has .A turn moves the chord without stretching it, like the rope between two Ferris wheel seats, so this is the same chord measured again.
- Set the two equal: .They are two measurements of one length.
- Subtract 2 from both sides: .This removes the 2 that both sides share; taking the same amount from both sides keeps them equal.
- Divide both sides by : .This frees cos(a − b); dividing both sides by the same number that is not 0 keeps them equal.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory device: minus inside, plus outside. In the formula, like pairs with like: cos a with cos b, sin a with sin b.
- Sign check: put a = b. The gap is 0° and cos 0° = 1. The plus version gives a + a = 1; a minus version fails, for example 90° − 90° = 0 − 1 = −1.
- Zero check: put b = 0°. The formula gives cos a · 1 + sin a · 0 = cos a, as it must, since a − 0° = a.
- Order does not matter: swapping a and b leaves cos a cos b + sin a sin b unchanged, so cos(30° − 90°) = cos(90° − 30°) = . The chord does not care which end you name first.
- Radians work the same way: cos( − ) = 0 · + 1 · = , and − = , whose cosine is .
- Compare P, not PQ. Equal lengths have equal squares, and the squared form never needs a square root.
- Know the formula cold: the next lessons build on it. The derivation you do not need to memorize; rebuild it from the picture of one chord in two places.
7 The trap
Copying the minus sign. The angle inside is a − b, so a minus between the two products feels natural, but the formula has a plus: cos(a − b) = cos a cos b + sin a sin b. Catch it with a = b: the gap is 0° and cos 0° = 1, and only the plus gives a + a = 1.
Flash cards
Say the answer out loud, then flip.
Complete the difference formula: cos(a − b) = ?
- cos a cos b + sin a sin b
- Cosines pair with cosines, sines pair with sines. Minus in the angle, plus in the answer.
The angle in cos(a − b) has a minus, but the difference formula has a plus. How does choosing a = b confirm the plus?
- With a = b the gap is 0°, and cos 0° = 1.
- The plus gives cos a cos a + sin a sin a = a + a = 1, a match.
- A minus would give a − a, which is 0 − 1 = −1 at a = 90°, so it cannot be right.
Why must 2 − 2 cos(a − b) equal 2 − 2(cos a cos b + sin a sin b)?
- Both are the squared length of the same chord, the one joining the points at angles a and b.
- The right side measures it where the points sit. The left side measures it after the circle turns back by b, moving the point at b to (1, 0) at 3 o'clock and the point at a to angle a − b.
- Turning cannot stretch a chord, any more than a turning Ferris wheel stretches a rope between two seats, so the two must agree. Setting them equal gives the difference formula.
Find cos(90° − 30°) with the difference formula, and say why cos 90° − cos 30° is the wrong move.
- Check: the gap is 60°, and cos 60° = .
- cos 90° − cos 30° = 0 − = −, a different number: cos(a − b) is the cosine of one angle, the gap, not two cosines with a minus between them.