trigidentity.com

Sum and difference identities · derivation ·proof

Where cos(A − B) = cos A cos B + sin A sin B comes from

Distance between two points on the circle. Put two unit-circle points at angles A and B and compute the squared distance between them twice — once with the distance formula, once with the angle difference.

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

Building it step by step

  1. P = (cos A, sin A), Q = (cos B, sin B)
    Two points on the unit circle.
  2. PQ² = (cos A − cos B)² + (sin A − sin B)² = 2 − 2(cos A cos B + sin A sin B)
    Expand; sin² + cos² = 1 twice. · Pythagorean identity
  3. PQ² = 2 − 2 cos(A − B)
    Central angle A − B, chord length.
  4. cos(A − B) = cos A cos B + sin A sin B
    Equate the two expressions.

What this derivation depends on

Every line above is one of these — nothing else is assumed:

That list is the argument for learning fewer formulas: most of this catalogue is a short chain away from the unit circle and the sum formulas.

Where this route is used

The minus-inside case for cosine — and the origin of the law of cosines when you expand c² = |A − B|² with this formula.

Checked at these angles

Deriving a formula and testing it are different things; this table is the test. The numbers come from the same engine as the verifier, computed when the site was built.

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

Neighbouring derivations

How to recall it under pressure

Re-derive it from the first line rather than searching memory: start from sin²θ + cos²θ = 1 and do the one algebraic move the derivation above makes. If you need the statement itself, it is on the cosine of a difference page.

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