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 sum — proved by rotation, horizontal coordinate. 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

The rotation of (cos A, sin A) by B gives both sum formulas at once.

  1. x' = x cos B − y sin B
    Rotation formula for the horizontal coordinate.
  2. x = cos A, y = sin A
    Unit-circle point at angle A.
  3. x' = cos A cos B − sin A sin B
    Substitute.
  4. cos(A + B) = cos A cos B − sin A sin B
    x' is the cosine of the rotated angle.

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.9381910.938191yes
15°0.852640.85264yes
18°0.8090170.809017yes
22.5°0.7343230.734323yes
30°0.5877850.587785yes

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