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
- Top: + becomes −tan B flips sign.
- 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.
- evaluate
- verify
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.
| Angle | Left side | Right side | Agree |
|---|---|---|---|
| 0° | -0.158384 | -0.158384 | yes |
| 7.5° | -0.091887 | -0.091887 | yes |
| 15° | -0.026186 | -0.026186 | yes |
| 18° | 0 | 0 | yes |
| 22.5° | 0.03929 | 0.03929 | yes |
| 30° | 0.105104 | 0.105104 | yes |
Neighbouring derivations
- tan(A + B) = (tan A + tan B) / (1 − tan A tan B) — Tangent of a sum
- tan 2x = 2 tan x / (1 − tan²x) — Double-angle identity for tangent
- tan(−θ) = −tan θ — Tangent is odd
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.