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.
- cos(A + B) = cos A cos B − sin A sin BCosine of a sum. · Cosine of a sum
- B → −BA − B = A + (−B).
- = cos A cos B − sin A sin(−B)cos(−B) = cos B. · Cosine is even
- = cos A cos B + sin A sin Bsin(−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).
| Angle | Left side | Right side | Agree |
|---|---|---|---|
| 0° | 0.987688 | 0.987688 | yes |
| 7.5° | 0.995805 | 0.995805 | yes |
| 15° | 0.999657 | 0.999657 | yes |
| 18° | 1 | 1 | yes |
| 22.5° | 0.999229 | 0.999229 | yes |
| 30° | 0.994522 | 0.994522 | 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 difference: when to use it — the practical side.
- All sum and difference identities · proof index