trigidentity.com

Sum and difference identities · derivation ·proof

Where tan(A − B) = (tan A − tan B) / (1 + tan A tan B) comes from

Sign bookkeeping. Learn the sum version; get the difference version by flipping B's sign in one place.

tan(A − B) = (tan A − tan B) / (1 + tan A tan B)

Building it step by step

  1. Top: + becomes −
    tan B flips sign.
  2. Bottom: − tan A tan B becomes +
    Product with the flipped sign.

Where this route is used

Angle between two lines with slopes m₁ and m₁: set tan A = m₁, tan B = m₂ and this formula gives the tangent of the angle between them.

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 tan(A - B), right side (tan(A) - tan(B)) / (1 + tan(A)tan(B)).
AngleLeft sideRight sideAgree
0°-0.158384-0.158384yes
7.5°-0.091887-0.091887yes
15°-0.026186-0.026186yes
18°00yes
22.5°0.039290.03929yes
30°0.1051040.105104yes

Neighbouring derivations

How to recall it under pressure

Re-derive it from the first line rather than searching memory: start from tan(a - b) and do the one algebraic move the derivation above makes. If you need the statement itself, it is on the tangent of a difference page.

sampled at 800 random angles · worst relative difference 1.2e-12Source: OpenStax Precalculus, Ch. 7.2–7.3 · Paul's Online Math Notes · revised 2026-09-26 ·how we check ·accuracy policy ·report an error