trigidentity.com

Sum-to-product identities · trigonometric identity

cos A − cos B = −2 sin((A + B)/2) sin((A − B)/2) — Sum to product: cos A − cos B

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

When to use it

Differences of cosines — and the only sum-to-product formula with a leading minus sign. Forgetting that minus is the single most common error in this group.

Why it is true

Set u = (A + B)/2, v = (A − B)/2 and subtract: cos(u + v) − cos(u − v) = (cos u cos v − sin u sin v) − (cos u cos v + sin u sin v) = −2 sin u sin v. The cosine products cancel, the sine products add with a minus.

The full line-by-line version is on the proof page for sum to product: cos a − cos b; the “how would I find this myself” version is in the derivation.

Where it comes from

Sanity-check with A = B. When A = B the left side is 0 and the right side is 0 because sin 0 = 0 — consistent. Then one numeric test fixes the overall sign.

  1. A = B: both sides 0
    Necessary condition ✓.
  2. A = 0, B = π: left = 1 − (−1) = 2
    Concrete test.
  3. right = −2 sin(π/2) sin(−π/2) = +2
    Matches only with the leading minus.

Worked examples

No worked example is written for this identity yet —the examples index lists what is covered, and the pattern below shows the identity working at real angles.

Checked at these angles

Two sides of the identity evaluated with the same engine that runs the verifier. A single line disagreeing would break the build.

Both sides evaluated at the same angles — left side cos(A) - cos(B), right side -2 sin((A+B)/2) sin((A-B)/2).
AngleLeft sideRight sideAgree
0°0.0123120.012312yes
7.5°0.0161030.016103yes
15°0.0071060.007106yes
18°00yes
22.5°-0.014312-0.014312yes
30°-0.04752-0.04752yes
37°-0.088375-0.088375yes
45°-0.145533-0.145533yes
53°-0.2123-0.2123yes
60°-0.277146-0.277146yes
67.5°-0.351639-0.351639yes
75°-0.429536-0.429536yes
90°-0.587785-0.587785yes
120°-0.858368-0.858368yes
135°-0.940552-0.940552yes
150°-0.970554-0.970554yes
180°-0.843566-0.843566yes
210°-0.459289-0.459289yes
240°0.129320.12932yes
270°0.8090170.809017yes
300°1.433581.43358yes
330°1.8605471.860547yes
360°1.9876881.987688yes

The mistake students make

Dropping the minus. Quick check: take A = 0, B = 60°. Left side is 1 − 0.5 = 0.5 which is positive while sin(A/2)sin(B/2) is positive too — so the sign only works out once you test it; test it.

Try it

Category hub: Sum-to-product identities · all identities: /identities

sampled at 800 random anglesSource: OpenStax Precalculus, Ch. 7.2–7.3 · Paul's Online Math Notes · revised 2026-09-26 ·how we check ·accuracy policy ·report an error