Quarry School

The cosine of a difference, from a distance on the circle

Subject: MathematicsLeans on: A point on the unit circleLeans on: The distance formulaLeans on: Squaring a differenceLeans on: Squaring a sumLeans on: What cos²t meansLeans on: The Pythagorean identityLeans on: Multiplying fractions with rootsLeans on: Signs when multiplyingLeans on: Special anglesLeans on: Signs by quadrantLeans on: Subtracting a negativeLeans on: Taking out a common factorLeans on: Keeping an equation balancedLeans on: Subtracting fractions of π
Level 1 · FoundationsAbout 26 min read2 new termsKeystone idea. Later lessons build on this one.
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Picture two seats on a Ferris wheel with a rope pulled tight from one to the other.

    Rule

    For every pair of angles a and b, in degrees or in radians: cos(a − b) = cos a cos b + sin a sin b.

    Step

    1. 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.

    2. Name the angles: a is the angle before the minus sign and b is the angle after it.

    3. 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.

    4. Multiply the two cosines: cos a · cos b.

    5. Multiply the two sines: sin a · sin b.

    6. Add the two products. The sign between them is plus, even though the angle has a minus.

    7. Check: when the gap a − b is an angle whose cosine you know, the result must equal that cosine.

    Strategy

    1. 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).

    2. First measurement: put P and Q into the squared distance formula, PQ2 = (cos a − cos b)2 + (sin a − sin b)2.

    3. Expand both squares, pair cos2a with sin2a and cos2b with sin2b, replace each pair by 1, and take out −2: PQ2 = 2 − 2(cos a cos b + sin a sin b).

    4. 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.

    5. Second measurement: PQ2 = (cos(a − b) − 1)2 + sin2(a − b) = 2 − 2 cos(a − b), after expanding and using cos2(a − b) + sin2(a − b) = 1.

    6. 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.

    Question

    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°).

    Answer

    PQ = 1 both ways.
    cos 90° cos 30° + sin 90° sin 30° = 12 = cos(90° − 30°).

    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 cos2a + sin2a = 1.

    Term

    difference formula

    Definition

    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.

    Term

    chord

    Definition

    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

    a − b
    The gap from the point at angle b to the point at angle a is a − b, and the chord between the two points…

    Reminder

    Reminder: A point on the unit circle, The distance formula, Squaring a difference, Squaring a sum, What cos2t 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 = (x2−x1)2+(y2−y1)2, so d2 = (x2 − x1)2 + (y2 − y1)2. From (1, 0) to (0, 1): d2 = (0 − 1)2 + (1 − 0)2 = 2, so d = 2.
    • Squaring a difference. (x − y)2 = x2 − 2xy + y2, three terms. Test: (5 − 2)2 = 9, and 25 − 20 + 4 = 9.
    • Squaring a sum. (x + y)2 = x2 + 2xy + y2. Test: (1 + 2)2 = 9, and 1 + 4 + 4 = 9.
    • What cos2t means. cos2t means (cos t)2: find the cosine, then square it. cos260° = (12)2 = 14.
    • The Pythagorean identity. cos2t + sin2t = 1 for every angle t, with the same t in both places. At 30°: 34 + 14 = 1.
    • Multiplying fractions with roots. Multiply top by top and bottom by bottom, using 3 · 3 = 3: 32 · 32 = 34, and 12 · 32 = 34.
    • Signs when multiplying. Negative times negative is positive, negative times positive is negative: (−12)(−32) = 34, and (−2)2 = 2.
    • Special angles. cos30°=32,sin30°=12;cos45°=sin45°=22;cos60°=12,sin60°=32.
    • Signs by quadrant. Quadrant II: cosine negative, sine positive. Quadrant III: both negative. Quadrant IV: cosine positive, sine negative. So cos 210° = −32, since 210° is 30° past 180° and lies in quadrant III.
    • Subtracting a negative. Taking away a negative adds: −32 − (−12) = −32 + 12 = 1−32.
    • 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: π2 − π6 = 3π6 − π6 = 2π6 = π3.

    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 cos2t + sin2t = 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: cos(a−b)=cosacosb+sinasinb.

    The same idea, five ways

    Say it

    the cosine of a minus b equals cosine a times cosine b, plus sine a times sine b

    Write it

    The cosine of the gap between two angles equals the product of their cosines plus the product of their sines.

    In math
    • cos(a−b)=cosacosb+sinasinb
    • cos(a−b)=cos(a)·cos(b)+sin(a)·sin(b)
    • cos(α−β)=cosαcosβ+sinαsinβ
    • cos(a − b) = x1x2 + y1y2, for the point (x1, y1) at angle a and the point (x2, y2) at angle b on the unit circle
    • chord picture: PQ2 = 2 − 2 cos(a − b), for the chord PQ between those two points
    Like

    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.

    See it
    a − b1
    A slice with two radii of length 1 and the gap a − b between them.

    The same idea, other ways

    As a picture

    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 PQ2 are equal

    As a story

    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.

    With small numbers

    Take a = 180° and b = 90°. Where they sit, P = (−1, 0) and Q = (0, 1), so PQ2 = (−1 − 0)2 + (0 − 1)2 = 1 + 1 = 2. Turned back by 90°, P moves to 90°, the point (0, 1), and Q moves to (1, 0), so PQ2 = (0 − 1)2 + (1 − 0)2 = 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), PQ2 = 1 + 1 = 2

    turned back by 90°: P = (0, 1), Q = (1, 0), PQ2 = 1 + 1 = 2

    formula: (−1)(0) + (0)(1) = 0 = cos 90°

    Why it must be true

    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: PQ2 = 2 − 2(cos a cos b + sin a sin b)

    after the turn: PQ2 = 2 − 2 cos(a − b)

    one chord, one length: cos(a − b) = cos a cos b + sin a sin b

    As a rule of thumb

    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°.

    x = cos θy = sin θ(cos a, sin a)
    Each point on the unit circle carries its cosine as x and its sine as y, so the formula multiplies x by x and…
    aba−bcos a cos bsin a sin btheir sumcos(a−b)
    60°60°0°143411
    90°30°60°0121212
    135°45°90°−121200
    210°120°90°34−3400
    300°60°240°14−34−12−12
    30°90°−60°0121212

    5 How

    1. 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.
    2. Name the angles: a is the angle before the minus sign and b is the angle after it.
    3. 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.
    4. Multiply the two cosines: cos a · cos b.
    5. Multiply the two sines: sin a · sin b.
    6. Add the two products. The sign between them is plus, even though the angle has a minus.
    7. 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

    1
    Is each point written as (cos of its angle, sin of its angle)?
    YesGo on to the distance formula.
    NoRewrite it first: on the unit circle the point at angle t is (cos t, sin t), and the point at 0° is (1, 0).
    ↓
    2
    Did each squared bracket expand into three terms, including a middle term?
    YesGo on to pairing.
    NoExpand again with (x − y)2 = x2 − 2xy + y2; only two terms means the middle one was lost.
    ↓
    3
    Is every cos2 paired with the sin2 of the same angle?
    YesReplace each pair by 1.
    NoPair them again: cos2a + sin2b is not 1 in general.
    ↓
    4
    Do both measurements have the shape 2 − 2 × (something)?
    YesSet them equal, subtract 2 from both sides, divide both sides by −2.
    NoAn expansion went wrong; redo that measurement before setting anything equal.
    1. 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).
    2. First measurement: put P and Q into the squared distance formula, PQ2 = (cos a − cos b)2 + (sin a − sin b)2.
    3. Expand both squares, pair cos2a with sin2a and cos2b with sin2b, replace each pair by 1, and take out −2: PQ2 = 2 − 2(cos a cos b + sin a sin b).
    4. 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.
    5. Second measurement: PQ2 = (cos(a − b) − 1)2 + sin2(a − b) = 2 − 2 cos(a − b), after expanding and using cos2(a − b) + sin2(a − b) = 1.
    6. 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°).

    90° − 30° = 60°
    Where the points sit: Q at 30°, P at 90°, a 60° gap between them.
    60°
    After turning back by 30°: Q at 3 o'clock and P at 60°, the same 60° gap.
    Show the steps and the answer
    30°60°√31245°45°11√2
    The 30-60-90 triangle.
    1. Write the points where they sit: P=(cos90°,sin90°)=(0,1) and Q=(cos30°,sin30°)=(32,12).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.
    2. First way: PQ2=(0−32)2+(1−12)2.The distance formula subtracts the x's and the y's, squares each difference and adds. Working with PQ2 leaves the square root for the very end.
    3. Work out each square: (−32)2=34, and 1−12=12, so (12)2=14.To square a fraction, square its top and its bottom; 3 · 3 = 3, and a negative number times itself is positive.
    4. Add: PQ2=34+14=44=1.The bottoms match, so add the tops.
    5. Turn the circle back by 30°: Q moves to 30°−30°=0°, the point (1, 0), and P moves to 90°−30°=60°, the point (12,32).Turning back by 30° takes 30° off every angle. Both points move together, so the chord between them keeps its length.
    6. Second way: PQ2=(12−1)2+(32−0)2=(−12)2+34=14+34=1.The same distance formula on the turned points; 12 − 1 = −12, whose square is 14.
    7. Both ways give PQ2=1, so PQ =1=1.A length is never negative, so PQ is the positive square root of PQ2.
    8. Formula side: cos90°cos30°+sin90°sin30°=0·32+1·12=12.From P = (0, 1), cos 90° = 0 and sin 90° = 1; anything times 0 is 0.
    9. Gap side: cos(90°−30°)=cos60°=12. The two sides match.After the turn, P sat at 60°, and its x coordinate is cos 60° = 12.
    Answer
    • PQ = 1 both ways.
    • cos90°cos30°+sin90°sin30°=12=cos(90°−30°).
    Double-check Look at the triangle made by the center O and the points P and Q. Its sides OP and OQ are radii, both 1 long, with the 60° gap between them. A triangle with two equal sides is a mirror image of itself across its middle, so its other two angles are equal; together they make 180° − 60° = 120°, so each is 120° ÷ 2 = 60°. A triangle whose three angles are all 60° has three equal sides (it is the triangle that the 30-60-90 triangle is half of), so PQ = OP = 1, as both measurements found.

    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
    x = cos θy = sin θa = b = 60°
    Both angles name the same point, so the chord from it to itself has length 0.
    1. Find the gap and its cosine: 60°−60°=0°, and cos0°=1.The point at 0° on the unit circle is (1, 0), and the cosine is its x coordinate.
    2. Write the values: cos60°=12 and sin60°=32.The 30-60-90 triangle, shrunk to hypotenuse 1, has 12 next to the 60° angle and 32 across from it.
    3. Fill in the formula: cos60°·cos60°+sin60°·sin60°=12·12+32·32=14+34.Multiply top by top and bottom by bottom; 3 · 3 = 3.
    4. Add: 14+34=44=1.The bottoms match, so add the tops.
    Answer
    Both sides equal 1.
    Double-check With a = b, the formula's right side is cos260° + sin260°, and cos2t + sin2t = 1 holds for every angle t, so it had to come out 1.

    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 PQ2 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
    135° − 45° = 90°
    The gap from 45° to 135° is a quarter turn.
    1. Write the points: P=(−22,22) and Q=(22,22).135° is 45° short of 180°, in quadrant II, where cosine is negative and sine is positive; at 45° both values are 22.
    2. First way: PQ2=(−22−22)2+(22−22)2=(−2)2+02=2.Two halves of 2 make one 2, here with a minus; equal heights subtract to 0; and (−2)2 = 2.
    3. Turn the circle back by 45°: Q moves to 0°, the point (1, 0), and P moves to 135°−45°=90°, the point (0, 1).Turning back by 45° takes 45° off both angles, and the chord moves with them unchanged.
    4. Second way: PQ2=(0−1)2+(1−0)2=1+1=2.The distance formula on the turned points.
    5. Formula side: (−22)·22+22·22=−24+24=0.2 · 2 = 2; a negative times a positive is negative, so the two products cancel.
    6. Gap side: cos(135°−45°)=cos90°=0. The two sides match.The point at 90° is (0, 1), whose x coordinate is 0.
    Answer
    • PQ2 = 2 both ways, so PQ = 2.
    • The formula gives 0 = cos 90°.
    Double-check Both points sit at the same height, 22, so the chord is level and its length is the distance between the x's: 22 − (−22) = 2, and (2)2 = 2.

    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 PQ2 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
    210° − 120° = 90°
    Another quarter turn of gap, this time reaching from quadrant II into quadrant III.
    1. Write the points: P=(−32,−12) and Q=(−12,32).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.
    2. Find the differences. x: −32−(−12)=1−32. y: −12−32=−1+32.Taking away a negative adds; both fractions have bottom 2, so the tops combine.
    3. Square them: (1−32)2=1−23+34=4−234, and (−1+32)2=1+23+34=4+234.(x − y)2 = x2 − 2xy + y2 and (x + y)2 = x2 + 2xy + y2, with x = 1 and y = 3; the bottom 2 squares to 4, and a negative squared is positive.
    4. Add: PQ2=4−23+4+234=84=2.The −23 and the +23 cancel.
    5. Turn the circle back by 120°: Q moves to 0°, the point (1, 0), and P moves to 210°−120°=90°, the point (0, 1). Then PQ2=(0−1)2+(1−0)2=2.Both points turn together, so the chord is the same; the turned points have whole-number coordinates.
    6. Formula side: (−32)·(−12)+(−12)·32=34−34=0.A negative times a negative is positive; a negative times a positive is negative.
    7. Gap side: cos(210°−120°)=cos90°=0. The two sides match.The point at 90° is (0, 1).
    Answer
    • PQ2 = 2 both ways, so PQ = 2.
    • The formula gives 0 = cos 90°.
    Double-check In decimals, with 3 ≈ 1.732, the differences are about −0.366 and −1.366, whose squares are about 0.134 and 1.866, adding to about 2.000 (rounded). Rung 2 also had a 90° gap and also gave PQ2 = 2: equal gaps, equal chords, which is the idea this lesson rests on.

    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 PQ2 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
    300° − 60° = 240°
    The gap runs more than half a turn.
    1. Write the points: P=(12,−32) and Q=(12,32).300° is 60° short of 360°, in quadrant IV, where cosine is positive and sine negative; 60° gives (12, 32).
    2. First way: PQ2=(12−12)2+(−32−32)2=02+(−3)2=3.The x's are equal; two halves of 3, with a minus, make −3; and (−3)2 = 3.
    3. Turn the circle back by 60°: Q moves to 0°, the point (1, 0), and P moves to 300°−60°=240°, the point (−12,−32).240° is 60° past 180°, in quadrant III, where both coordinates are negative.
    4. Second way: PQ2=(−12−1)2+(−32−0)2=(−32)2+34=94+34=124=3.−12 − 1 = −32, whose square is 94; a negative squared is positive.
    5. Formula side: 12·12+(−32)·32=14−34=−24=−12.3 · 3 = 3, a negative times a positive is negative, and 24 reduces to 12.
    6. Gap side: cos(300°−60°)=cos240°=−12. The two sides match.The turned point P = (−12, −32) sits at 240°, and its x coordinate is −12.
    Answer
    • PQ2 = 3 both ways, so PQ = 3.
    • The formula gives −12 = cos 240°.
    Double-check P and Q share the x coordinate 12, so the chord stands upright and its length is the distance between the heights: 32 − (−32) = 3, whose square is 3.

    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 PQ2 = 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
    x = cos θy = sin θ(cos a, sin a)
    Each end of the chord is written with its own angle.
    1. PQ2=(cosa−cosb)2+(sina−sinb)2.The squared distance formula, with x's cos a and cos b and y's sin a and sin b.
    2. First square: (cosa−cosb)2=cos2a−2cosacosb+cos2b.(x − y)2 = x2 − 2xy + y2, with x = cos a and y = cos b.
    3. Second square: (sina−sinb)2=sin2a−2sinasinb+sin2b.The same pattern, with x = sin a and y = sin b.
    4. Regroup: PQ2=(cos2a+sin2a)+(cos2b+sin2b)−2cosacosb−2sinasinb.Terms joined by adding may be put in any order; this sets each angle's own cos2 and sin2 side by side.
    5. Replace each pair by 1: PQ2=1+1−2cosacosb−2sinasinb=2−2cosacosb−2sinasinb.cos2t + sin2t = 1 for every angle t, used once with t = a and once with t = b.
    6. Take out −2: PQ2=2−2(cosacosb+sinasinb).−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.
    Answer
    PQ2 = 2 − 2(cos a cos b + sin a sin b)
    Double-check Put in a = 90° and b = 30°: 2 − 2(0 · 32 + 1 · 12) = 2 − 2 · 12 = 1, the same PQ2 = 1 that the worked example found with numbers.

    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
    x = cos θy = sin θ(cos t, sin t)
    One end of the chord is (cos t, sin t); the other end is (1, 0), where the circle crosses the positive x-axis.
    1. PQ2=(cost−1)2+(sint−0)2.The squared distance formula, with (1, 0) as the second point.
    2. First square: (cost−1)2=cos2t−2cost+1.(x − y)2 = x2 − 2xy + y2, with x = cos t and y = 1: 2 · cos t · 1 = 2 cos t and 12 = 1.
    3. Second square: (sint−0)2=sin2t.Taking away 0 changes nothing.
    4. Add and regroup: PQ2=(cos2t+sin2t)−2cost+1=1−2cost+1=2−2cost.cos2t + sin2t = 1, and 1 + 1 = 2.
    Answer
    PQ2 = 2 − 2 cos t
    Double-check Take t = 180°: the point is (−1, 0), and the chord runs straight through the center from one side of the circle to the other, so its length is 2 and PQ2 = 4. The formula gives 2 − 2 cos 180° = 2 − 2(−1) = 4.

    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: PQ2 = 2 − 2(cos a cos b + sin a sin b)

    after the turn: PQ2 = 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

    1. Put P at angle a and Q at angle b. By rung 5, PQ2=2−2(cosacosb+sinasinb).This is the first measurement, made where the points sit.
    2. Turn the circle back by b: Q moves to angle b−b=0, the point (1, 0), and P moves to angle a−b, the point (cos(a−b),sin(a−b)).Turning back by b takes b off every angle, and the point at any angle t is (cos t, sin t).
    3. By rung 6 with t=a−b, the turned chord has PQ2=2−2cos(a−b).A turn moves the chord without stretching it, like the rope between two Ferris wheel seats, so this is the same chord measured again.
    4. Set the two equal: 2−2cos(a−b)=2−2(cosacosb+sinasinb).They are two measurements of one length.
    5. Subtract 2 from both sides: −2cos(a−b)=−2(cosacosb+sinasinb).This removes the 2 that both sides share; taking the same amount from both sides keeps them equal.
    6. Divide both sides by −2: cos(a−b)=cosacosb+sinasinb.This frees cos(a − b); dividing both sides by the same number that is not 0 keeps them equal.
    Answer
    cos(a − b) = cos a cos b + sin a sin b, for every pair of angles a and b.
    Double-check Test it on a case where a is smaller than b, so the gap is negative: a = 30° and b = 90°. The formula gives 32 · 0 + 12 · 1 = 12. The gap is 30° − 90° = −60°, the point reached by turning 60° clockwise from 3 o'clock, which is (12, −32), so cos(−60°) = 12. The two match.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: cos(a−b)=cosa−cosb
    Cosine does not split across a minus sign, any more than it splits across a plus. Take a = b = 50°: the left side is cos 0° = 1, but the right side is cos 50° − cos 50° = 0.
    ✓ Instead: cos(a − b) = cos a cos b + sin a sin b. With a = b = 50° it gives cos250° + sin250° = 1, which matches cos 0° = 1.
    ✗ Not this: cos(a − b) = cos a cos b − sin a sin b, with the minus sign copied into the middle
    Take a = b = 90°: this version gives 0 · 0 − 1 · 1 = −1, but cos(90° − 90°) = cos 0° = 1. The version with a minus in the middle belongs to a different angle, taken up in the next lesson.
    ✓ Instead: A plus in the middle: cos 90° cos 90° + sin 90° sin 90° = 0 · 0 + 1 · 1 = 1 = cos 0°.
    ✗ Not this: (cos a − cos b)2 = cos2a − cos2b, dropping the middle term
    Squaring a difference gives three terms, not two. With numbers, (5 − 2)2 = 9, but 52 − 22 = 21. The dropped term, −2 cos a cos b, is the very piece that grows into the formula.
    ✓ Instead: (cosa−cosb)2=cos2a−2cosacosb+cos2b.
    ✗ Not this: Replacing cos2a + sin2b by 1
    The identity cos2t + sin2t = 1 needs the same angle in both places. With a = 0° and b = 90°: cos20° + sin290° = 1 + 1 = 2, not 1.
    ✓ Instead: Pair cos2a with sin2a, and cos2b with sin2b. Each pair is 1, so the two pairs make 2.
    ✗ Not this: Taking the chord to be the curved arc between the two points
    The arc bends along the circle, while the chord cuts straight across, and the distance formula measures straight lines. For a 60° gap on the unit circle the arc is π3 ≈ 1.047 long (rounded), but the chord is 1.
    ✓ Instead: The chord is the straight segment PQ, and its length comes from the distance formula.

    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 cos2a + sin2a = 1; a minus version fails, for example cos290° − sin290° = 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°) = 12. The chord does not care which end you name first.
    • Radians work the same way: cos(π2 − π6) = 0 · 32 + 1 · 12 = 12, and π2 − π6 = π3, whose cosine is 12.
    • Compare PQ2, 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 cos2a + sin2a = 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 = cos2a + sin2a = 1, a match.
    • A minus would give cos2a − sin2a, 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.
    • cos90°cos30°+sin90°sin30°=0·32+1·12=12
    • Check: the gap is 60°, and cos 60° = 12.
    • cos 90° − cos 30° = 0 − 32 = −32, a different number: cos(a − b) is the cosine of one angle, the gap, not two cosines with a minus between them.