trigidentity.com

Sum and difference identities · proof ·what it is and when to use it

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

Cosine of a difference — proved by substitute −b. Every line below says which rule it uses, so nothing has to be taken on faith.

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

The proof

Mirror of the sine difference proof.

  1. cos(A + B) = cos A cos B − sin A sin B
    Cosine of a sum. · Cosine of a sum
  2. B → −B
    A − B = A + (−B).
  3. = cos A cos B − sin A sin(−B)
    cos(−B) = cos B. · Cosine is even
  4. = cos A cos B + sin A sin B
    sin(−B) = −sin B. · Sine is odd

Where the proof stops applying

Both sides are undefined at the same angles — where a denominator in the proof reaches zero (for instance cos x = 0 in a tangent or secant form). Elsewhere the argument above holds for every real angle.

The same claim, checked numerically

A proof is not the same thing as a check, and this page shows both: the reasoning above, and the first few angles fed to the same engine behind the verifier. If they ever disagreed, the data would be broken — the build would fail before publishing (accuracy policy).

Both sides evaluated at the same angles — left side cos(A - B), right side cos(A)cos(B) + sin(A)sin(B).
AngleLeft sideRight sideAgree
0°0.9876880.987688yes
7.5°0.9958050.995805yes
15°0.9996570.999657yes
18°11yes
22.5°0.9992290.999229yes
30°0.9945220.994522yes

Related

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