Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 38 · Trigonometric Identities

Sum and Difference Formulas

Learn the angle sum and difference formulas for sin, cos and tan, use them to find exact values such as sin 75°, and check them with code.

Is sin(A + B) equal to sin A + sin B? It is not. Try A = B = 90°: sin 180° = 0, but sin 90° + sin 90° = 2. Trigonometric functions do not distribute over addition. The sum and difference formulas tell you what really happens, and they unlock exact values for angles such as 15° and 75° that you cannot read straight from the unit circle.

The formulas

Text
sin(A + B) = sin A cos B + cos A sin B
sin(A − B) = sin A cos B − cos A sin B

cos(A + B) = cos A cos B − sin A sin B
cos(A − B) = cos A cos B + sin A sin B

tan(A + B) = (tan A + tan B) / (1 − tan A tan B)
tan(A − B) = (tan A − tan B) / (1 + tan A tan B)

Watch the signs. In the cosine formulas the sign on the right is opposite to the sign inside the bracket. In the sine formulas the signs match. The tangent formulas follow from dividing the sine formula by the cosine formula.

Where does cos(A − B) come from? Place two points on the unit circle at angles A and B. The distance between them can be measured two ways: with the distance formula, and by rotating so one point lands at (1, 0). Setting the two expressions equal gives cos(A − B) = cos A cos B + sin A sin B. The other five formulas follow from it using cos(−B) = cos B, sin(−B) = −sin B and the complement identities.

Exact values for 75°, 15° and 105°

Use the angles you know exactly: 30°, 45°, 60°, 90°.

Example 1: sin 75°. Write 75° = 45° + 30°.

Text
sin 75° = sin 45° cos 30° + cos 45° sin 30°
        = (√2/2)(√3/2) + (√2/2)(1/2)
        = (√6 + √2) / 4

Example 2: cos 15°. Write 15° = 45° − 30°.

Text
cos 15° = cos 45° cos 30° + sin 45° sin 30°
        = (√6 + √2) / 4

Both equal (√6 + √2)/4 ≈ 0.9659. That makes sense: sin 75° = cos 15°, because 75° and 15° are complementary.

Example 3: tan 75°.

Text
tan 75° = (tan 45° + tan 30°) / (1 − tan 45° tan 30°)
        = (1 + 1/√3) / (1 − 1/√3)
        = (√3 + 1) / (√3 − 1)
        = 2 + √3
Python Exact values with SymPy, checked against numbers

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Using the formulas "in reverse"

Often you meet the right-hand side and need to collapse it.

Example. Simplify sin 40° cos 20° + cos 40° sin 20°. This is sin A cos B + cos A sin B with A = 40°, B = 20°, so it equals sin 60° = √3/2.

Example. Simplify cos 50° cos 10° − sin 50° sin 10°. This is cos(50° + 10°) = cos 60° = 1/2.

Mixed values

You can combine the formulas with the Pythagorean identity. Suppose sin A = 3/5 with A in quadrant I, and cos B = −5/13 with B in quadrant II.

  1. Quadrant I: cos A = 4/5.
  2. Quadrant II: sin B = 12/13.
  3. sin(A + B) = (3/5)(−5/13) + (4/5)(12/13) = (−15 + 48)/65 = 33/65.
  4. cos(A + B) = (4/5)(−5/13) − (3/5)(12/13) = (−20 − 36)/65 = −56/65.

Check: (33/65)² + (−56/65)² = (1089 + 3136)/4225 = 4225/4225 = 1.

Python Sum formulas for two given angles

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Using Fraction keeps the arithmetic exact, so the check really prints 1.

Two special cases

Set B = 90° in the sine formula: sin(A + 90°) = sin A · 0 + cos A · 1 = cos A. Set B = 180°: sin(A + 180°) = −sin A. These "shift" identities show that a cosine graph is a sine graph moved 90° to the left.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which expression equals cos(A + B)?

    In the cosine sum formula the sign between the products is opposite to the sign inside the bracket: a plus inside gives a minus.
  2. 2. What is sin 20° cos 25° + cos 20° sin 25° equal to?

    It matches sin A cos B + cos A sin B with A = 20° and B = 25°, which is sin 45° (also equal to cos 45°).
  3. 3. Which is the exact value of tan 75°?

    tan 75° = (tan 45° + tan 30°)/(1 − tan 45° tan 30°) simplifies to 2 + √3, about 3.73.
  4. 4. Is sin(A + B) = sin A + sin B an identity?

    At A = B = 90° the left side is sin 180° = 0 and the right side is 2.

Summary

  • sin(A ± B) = sin A cos B ± cos A sin B (signs match).
  • cos(A ± B) = cos A cos B ∓ sin A sin B (signs are opposite).
  • tan(A ± B) = (tan A ± tan B) / (1 ∓ tan A tan B).
  • Build exact values like sin 75° from 30°, 45° and 60°.
  • Use the formulas backwards to collapse long expressions.
  • Never distribute a trig function over a sum.

Next: Double-Angle and Half-Angle Formulas