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.
- x' = x cos B − y sin BRotation formula for the horizontal coordinate.
- x = cos A, y = sin AUnit-circle point at angle A.
- x' = cos A cos B − sin A sin BSubstitute.
- cos(A + B) = cos A cos B − sin A sin Bx' 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).
| Angle | Left side | Right side | Agree |
|---|---|---|---|
| 0° | 0.987688 | 0.987688 | yes |
| 7.5° | 0.938191 | 0.938191 | yes |
| 15° | 0.85264 | 0.85264 | yes |
| 18° | 0.809017 | 0.809017 | yes |
| 22.5° | 0.734323 | 0.734323 | yes |
| 30° | 0.587785 | 0.587785 | yes |
Related
- How would I find cos(A + B) = cos A cos B − sin A sin B myself? — the derivation, which is a different question from the proof.
- Cosine of a sum: when to use it — the practical side.
- All sum and difference identities · proof index