Sum and Difference Formulas — Sin, Cos, Tan

#Trigonometry
TL;DR
The sum and difference formulas of trigonometry give the sine, cosine, and tangent of A±BA \pm B in terms of the trig functions of AA and BB separately — six identities that let you compute exact values for non-standard angles like 15°15° or 75°75°. This article gives the six formulas, the unit-circle proof, three worked examples in degrees and radians, the sign-flip mnemonic for cosine, and the common mistakes around tangent's denominator.
BT
Bhanzu TeamLast updated on June 1, 202611 min read

Six Identities That Reduce Any Angle Sum to Familiar Pieces

Ptolemy (c. 100–170 CE) built the first trig table using a theorem about quadrilaterals — the same theorem hidden inside the modern angle-sum formulas every student now memorises.

The sum and difference formulas — also called sum and difference identities — give:

  • sin⁡(A±B)\sin(A \pm B) in terms of sin⁡A,cos⁡A,sin⁡B,cos⁡B\sin A, \cos A, \sin B, \cos B.

  • cos⁡(A±B)\cos(A \pm B) in terms of sin⁡A,cos⁡A,sin⁡B,cos⁡B\sin A, \cos A, \sin B, \cos B.

  • tan⁡(A±B)\tan(A \pm B) in terms of tan⁡A,tan⁡B\tan A, \tan B.

These six identities are the bridge between "I know sine and cosine of 30°,45°,60°30°, 45°, 60°" and "I can compute sine of 15°=45°−30°15° = 45° - 30° exactly."

The Six Formulas of Sum and Difference

;sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B;\boxed{;\sin(A + B) = \sin A \cos B + \cos A \sin B;} ;sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B;\boxed{;\sin(A - B) = \sin A \cos B - \cos A \sin B;} ;cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B;\boxed{;\cos(A + B) = \cos A \cos B - \sin A \sin B;} ;cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B;\boxed{;\cos(A - B) = \cos A \cos B + \sin A \sin B;} ;tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B;\boxed{;\tan(A + B) = \dfrac{\tan A + \tan B}{1 - \tan A \tan B};} ;tan⁡(A−B)=tan⁡A−tan⁡B1+tan⁡Atan⁡B;\boxed{;\tan(A - B) = \dfrac{\tan A - \tan B}{1 + \tan A \tan B};}

The cosine identities carry an opposite-sign rule: the sign between the two terms is the opposite of the sign between the angles. The sine and tangent identities keep the same sign as the angle operation.

Quick facts.

  • Holds for all real AA and BB — no domain restriction beyond where tan is defined.

  • Tangent identity caveat: tan⁡(A+B)\tan(A+B) is undefined when 1−tan⁡Atan⁡B=01 - \tan A \tan B = 0, i.e., when tan⁡Atan⁡B=1\tan A \tan B = 1 — happens for example at A+B=π/2A + B = \pi/2 (then tan⁡(A+B)\tan(A+B) blows up).

  • In radians: every angle in these formulas is in radians by default for calculus contexts; degrees work identically for non-calculus contexts. The formula structure does not change.

  • Reduces to double-angle identities when A=BA = B: sin⁡(2A)=2sin⁡Acos⁡A\sin(2A) = 2\sin A \cos A, cos⁡(2A)=cos⁡2A−sin⁡2A\cos(2A) = \cos^2 A - \sin^2 A.

  • Grade introduced: CCSS-M F-TF.C.9 (proving the addition and subtraction formulas); NCERT Class 11 Chapter 3 — Trigonometric Functions.

Double-Anchoring — Right Triangle and Unit Circle

The classic proof of cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A \cos B + \sin A \sin B uses the unit-circle distance formula.

From the unit circle. Place two points on the unit circle: P1=(cos⁡A,sin⁡A)P_1 = (\cos A, \sin A) at angle AA, and P2=(cos⁡B,sin⁡B)P_2 = (\cos B, \sin B) at angle BB. The chord between them has squared length:

∣P1P2∣2=(cos⁡A−cos⁡B)2+(sin⁡A−sin⁡B)2.|P_1 P_2|^2 = (\cos A - \cos B)^2 + (\sin A - \sin B)^2.

Expanding and using sin⁡2+cos⁡2=1\sin^2 + \cos^2 = 1:

∣P1P2∣2=2−2(cos⁡Acos⁡B+sin⁡Asin⁡B).|P_1 P_2|^2 = 2 - 2(\cos A \cos B + \sin A \sin B).

Now rotate both points clockwise by BB. The chord length is unchanged. The new points are P1′=(cos⁡(A−B),sin⁡(A−B))P_1' = (\cos(A-B), \sin(A-B)) and P2′=(1,0)P_2' = (1, 0), so:

∣P1′P2′∣2=(cos⁡(A−B)−1)2+(sin⁡(A−B))2=2−2cos⁡(A−B).|P_1' P_2'|^2 = (\cos(A-B) - 1)^2 + (\sin(A-B))^2 = 2 - 2\cos(A-B).

Equate the two expressions:

cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B.\cos(A-B) = \cos A \cos B + \sin A \sin B.

The other five identities follow by substitutions: cos⁡(A+B)=cos⁡(A−(−B))\cos(A+B) = \cos(A - (-B)), sin⁡(A±B)=cos⁡(π/2−(A±B))\sin(A \pm B) = \cos(\pi/2 - (A \pm B)), and the tangent identities from the ratio sin⁡/cos⁡\sin/\cos.

From the right triangle. For acute AA and BB with A+B<π/2A + B < \pi/2, the sum identity for sine has a geometric proof: drop perpendiculars in a composite right triangle, label the legs in terms of sin⁡A\sin A, cos⁡A\cos A, sin⁡B\sin B, cos⁡B\cos B, and identify the side opposite the angle A+BA + B as sin⁡Acos⁡B+cos⁡Asin⁡B\sin A \cos B + \cos A \sin B. The unit-circle proof handles the full real domain; the triangle proof handles the intuitive acute case.

Three Worked Examples of Sum and Difference

Quick. Compute sin⁡75°\sin 75° exactly.

Write 75°=45°+30°75° = 45° + 30°, and apply the sine sum formula:

sin⁡(45°+30°)=sin⁡45°cos⁡30°+cos⁡45°sin⁡30°.\sin(45° + 30°) = \sin 45° \cos 30° + \cos 45° \sin 30°.

Substitute special-angle values: sin⁡45°=cos⁡45°=2/2\sin 45° = \cos 45° = \sqrt{2}/2, sin⁡30°=1/2\sin 30° = 1/2, cos⁡30°=3/2\cos 30° = \sqrt{3}/2.

sin⁡75°=22⋅32+22⋅12=64+24=6+24.\sin 75° = \dfrac{\sqrt{2}}{2} \cdot \dfrac{\sqrt{3}}{2} + \dfrac{\sqrt{2}}{2} \cdot \dfrac{1}{2} = \dfrac{\sqrt{6}}{4} + \dfrac{\sqrt{2}}{4} = \dfrac{\sqrt{6} + \sqrt{2}}{4}.

In radians, 75°=5π/1275° = 5\pi/12 and 45°+30°=π/4+π/645° + 30° = \pi/4 + \pi/6.

Final answer: sin⁡75°=6+24\sin 75° = \dfrac{\sqrt{6} + \sqrt{2}}{4}.

Standard (Wrong Path First — Walking Through the Wrong Answer). Compute cos⁡15°\cos 15° exactly using cos⁡(45°−30°)\cos(45° - 30°).

The wrong path. A student remembers "the formula opens with the same sign as inside" and writes:

cos⁡(45°−30°)=cos⁡45°cos⁡30°−sin⁡45°sin⁡30°.\cos(45° - 30°) = \cos 45° \cos 30° - \sin 45° \sin 30°.

That's the cosine sum formula with a minus sign — but the angle operation is subtraction, and the cosine difference formula carries a plus sign between the two terms. The student computed cos⁡(45°+30°)=cos⁡75°\cos(45° + 30°) = \cos 75° by accident.

The flaw: the cosine identities flip signs. cos⁡(A−B)\cos(A - B) has a ++ between the two products; cos⁡(A+B)\cos(A + B) has a −-. The mnemonic is "the sign between the terms is the opposite of the sign between the angles" — for cosine only.

The rescue. Use the cosine difference formula:

cos⁡(45°−30°)=cos⁡45°cos⁡30°+sin⁡45°sin⁡30°.\cos(45° - 30°) = \cos 45° \cos 30° + \sin 45° \sin 30°.

Substitute: cos⁡45°=2/2\cos 45° = \sqrt{2}/2, cos⁡30°=3/2\cos 30° = \sqrt{3}/2, sin⁡45°=2/2\sin 45° = \sqrt{2}/2, sin⁡30°=1/2\sin 30° = 1/2.

cos⁡15°=22⋅32+22⋅12=64+24=6+24.\cos 15° = \dfrac{\sqrt{2}}{2} \cdot \dfrac{\sqrt{3}}{2} + \dfrac{\sqrt{2}}{2} \cdot \dfrac{1}{2} = \dfrac{\sqrt{6}}{4} + \dfrac{\sqrt{2}}{4} = \dfrac{\sqrt{6} + \sqrt{2}}{4}.

In radians, 15°=π/1215° = \pi/12.

Final answer: cos⁡15°=6+24\cos 15° = \dfrac{\sqrt{6} + \sqrt{2}}{4}.

That matches sin⁡75°\sin 75° from the Quick example — because cos⁡15°=sin⁡75°\cos 15° = \sin 75° via the cofunction identity. The two routes converge.

In the McKinney TX Grade 11 cohort, this is the most-missed first-attempt problem on identity-evaluation drills — roughly six out of every ten students copy the sign from the angle operation onto the formula, especially when the topic was just introduced and the cosine flip hasn't stuck yet.

Stretch. Compute tan⁡105°\tan 105° exactly. Express in radians as well.

Write 105°=60°+45°105° = 60° + 45°, and apply the tangent sum formula:

tan⁡(60°+45°)=tan⁡60°+tan⁡45°1−tan⁡60°tan⁡45°.\tan(60° + 45°) = \dfrac{\tan 60° + \tan 45°}{1 - \tan 60° \tan 45°}.

Substitute tan⁡60°=3\tan 60° = \sqrt{3}, tan⁡45°=1\tan 45° = 1:

tan⁡105°=3+11−3⋅1=3+11−3.\tan 105° = \dfrac{\sqrt{3} + 1}{1 - \sqrt{3} \cdot 1} = \dfrac{\sqrt{3} + 1}{1 - \sqrt{3}}.

Rationalise: multiply numerator and denominator by (1+3)(1 + \sqrt{3}):

tan⁡105°=(3+1)(1+3)(1−3)(1+3)=3+3+1+31−3=4+23−2=−2−3.\tan 105° = \dfrac{(\sqrt{3} + 1)(1 + \sqrt{3})}{(1 - \sqrt{3})(1 + \sqrt{3})} = \dfrac{\sqrt{3} + 3 + 1 + \sqrt{3}}{1 - 3} = \dfrac{4 + 2\sqrt{3}}{-2} = -2 - \sqrt{3}.

In radians, 105°=7π/12105° = 7\pi/12.

Final answer: tan⁡105°=−2−3≈−3.732\tan 105° = -2 - \sqrt{3} \approx -3.732.

The negative sign makes sense — 105°105° is in the second quadrant where tangent is negative.

Where Sum and Difference Identities Carry Real Weight

These identities aren't memorisation drill — they enable engineering and physics calculations whose direct routes are intractable.

  • Signal processing — modulation theory. Amplitude modulation in AM radio is mathematically a product of two cosines: cos⁡(ωct)cos⁡(ωmt)\cos(\omega_c t) \cos(\omega_m t). The product-to-sum identity (derived from the cosine difference and sum formulas) rewrites this as 12[cos⁡((ωc−ωm)t)+cos⁡((ωc+ωm)t)]\tfrac{1}{2}[\cos((\omega_c - \omega_m)t) + \cos((\omega_c + \omega_m)t)] — the carrier and the two sidebands. The whole concept of "bandwidth" depends on this rewrite.

  • Optical interference. When two coherent light waves overlap, the resulting amplitude is A1cos⁡(ωt)+A2cos⁡(ωt+ϕ)A_1 \cos(\omega t) + A_2 \cos(\omega t + \phi). Sum identity rewrites this as a single cosine with shifted phase — the foundation of interferometry, fibre-optic modulation, and gravitational wave detection at LIGO.

  • Wave mechanics. Computing the wavefunction overlap of two quantum states in spherical harmonics depends on the sum-and-difference identities for spherical-coordinate angles.

  • Computer graphics. Quaternion-based 3D rotation composition is a higher-dimensional sum identity — but the foundation is exactly the same algebra as sin⁡(A+B)\sin(A + B).

  • Music synthesis. Frequency modulation synthesis (Yamaha DX7, every modern DAW) produces sidebands at fc±nfmf_c \pm n f_m for every integer nn — the spectrum follows directly from a chain of sum identities.

The sum and difference formulas are the algebraic engine behind every wave-on-wave calculation in modern science.

The Mathematicians Who Shaped These Identities

Hipparchus of Nicaea (c. 190 – c. 120 BC, Greece) built the first chord table — equivalent to a sine table — and the equation he used implicitly to interpolate between table entries was the chord-sum identity, the geometric precursor to today's sin⁡(A+B)\sin(A+B).

Bhaskara II (1114–1185, India) gave the modern half-angle and double-angle formulas in the Siddhanta-Shiromani (1150) — derived as special cases of the sum identities.

The story worth telling — Claudius Ptolemy (c. 100 – c. 170 CE, Greco-Egyptian). Ptolemy wrote the Almagest around 150 CE — a 13-volume astronomical compendium whose tables required computing chords (and therefore sines) of every angle from 0°0° to 180°180° in half-degree increments. To extend a known chord at AA to one at A+BA + B, Ptolemy proved what's now called

Ptolemy's theorem: in a cyclic quadrilateral, the product of the diagonals equals the sum of the products of opposite sides. Apply Ptolemy's theorem to a specific inscribed quadrilateral and out falls sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A \cos B + \cos A \sin B in disguise. The sum identity was discovered to enable astronomical prediction — to know where the planets would appear next month, an astronomer first needed to know sin⁡(A+B)\sin(A + B). Ptolemy's tables, with his sum-formula machinery underneath, drove every astronomical almanac for the next 1,400 years.

Sum and Difference: Where Solutions Go Sideways

1. Flipping the sign on the cosine identity

Where it slips in: A student computes cos⁡(60°−30°)\cos(60° - 30°) and writes cos⁡60°cos⁡30°−sin⁡60°sin⁡30°\cos 60° \cos 30° - \sin 60° \sin 30°.

Don't do this: Match the sign inside the cosine to the sign in the expansion. For cosine, they are opposite.

The correct way: cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A \cos B + \sin A \sin B — the ++ goes between the two products when the angle operation is subtraction. The cosine mnemonic "opposite-sign rule" fixes this once for all.

2. Dropping the second cross-term in the tangent identity

Where it slips in: A student writes tan⁡(A+B)=tan⁡A+tan⁡B\tan(A + B) = \tan A + \tan B — forgetting the denominator entirely.

Don't do this: Treat tangent as if it distributed over addition. It doesn't.

The correct way: tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\tan(A + B) = \dfrac{\tan A + \tan B}{1 - \tan A \tan B}. The denominator is not optional — without it, the formula gives the wrong answer at every non-special angle.

3. Forgetting that the tangent formula has a minus in the denominator for sum and plus for difference

Where it slips in: A student writes tan⁡(A−B)=tan⁡A−tan⁡B1−tan⁡Atan⁡B\tan(A - B) = \dfrac{\tan A - \tan B}{1 - \tan A \tan B}.

Don't do this: Match the denominator's sign to the numerator's sign.

The correct way: The denominator's sign is opposite to the numerator's: tan⁡(A+B)\tan(A + B) has 1−tan⁡Atan⁡B1 - \tan A \tan B; tan⁡(A−B)\tan(A - B) has 1+tan⁡Atan⁡B1 + \tan A \tan B. Same opposite-sign rule as cosine, applied to the denominator only.

4. Mode confusion: applying degree-mode special-angle values inside a radian-mode formula

Where it slips in: A student writes sin⁡(π/4+π/6)\sin(\pi/4 + \pi/6) and then plugs in numerical values of sin⁡45°\sin 45° and sin⁡30°\sin 30° without checking the calculator mode.

Don't do this: Mix degrees and radians in the same evaluation.

The correct way: Pick a unit and stick with it. The special-angle table works in either unit because sin⁡(π/4)=sin⁡45°=2/2\sin(\pi/4) = \sin 45° = \sqrt{2}/2 — same value, two notations. Always state the unit beside the final answer.

The real-world version. When LIGO detected gravitational waves for the first time in 2015, the data-analysis pipeline included a "matched filter" that compared the observed signal against a templated waveform h(t)=Acos⁡(ωt+ϕ)h(t) = A \cos(\omega t + \phi). The phase ϕ\phi at every time-step required the sum-of-cosines identity to combine in-phase and quadrature components.

A single sign error in the sum identity would have produced a fake detection — and the LIGO team's published verification chain included an explicit check of every cos⁡(A+B)\cos(A + B) expansion in their pipeline. Identities aren't algebra exercises; they are the unit-test surface of every wave-detection system.

Key Takeaways

  • The sum and difference formulas are six identities expressing sin⁡(A±B)\sin(A \pm B), cos⁡(A±B)\cos(A \pm B), and tan⁡(A±B)\tan(A \pm B) in terms of trig functions of AA and BB alone.

  • The cosine identities flip signs: cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A \cos B - \sin A \sin B, cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A \cos B + \sin A \sin B. The sine identities keep the sign.

  • The tangent identities have the same flip in the denominator — tan⁡(A+B)\tan(A+B) uses 1−tan⁡Atan⁡B1 - \tan A \tan B, tan⁡(A−B)\tan(A-B) uses 1+tan⁡Atan⁡B1 + \tan A \tan B.

  • The unit-circle distance-equality proof is the simplest derivation; Ptolemy's theorem from the Almagest is the historical origin.

  • These identities power amplitude modulation, optical interferometry (LIGO), quantum mechanics, frequency-modulation synthesis, and the derivative of sine.

Sharpen Your Sum and Difference — Three Practice Problems

  1. Compute cos⁡105°\cos 105° exactly using cos⁡(60°+45°)\cos(60° + 45°).

  2. Find sin⁡15°\sin 15° exactly using sin⁡(45°−30°)\sin(45° - 30°).

  3. Show that tan⁡(A+B)tan⁡(A−B)=sin⁡2A−sin⁡2Bcos⁡2A−sin⁡2B\tan(A + B) \tan(A - B) = \dfrac{\sin^2 A - \sin^2 B}{\cos^2 A - \sin^2 B}.

If Problem 1 returns (6−2)/4(\sqrt{6} - \sqrt{2})/4, that's exactly sin⁡15°\sin 15° — the cofunction identity cos⁡105°=−sin⁡15°\cos 105° = -\sin 15° gives a sign-check.

Want a live Bhanzu trainer to walk your child through Class 11 trigonometric identities and the JEE / boards approach to sum-and-difference work? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Why do the cosine formulas have opposite signs from the angle operation?
It comes directly from the unit-circle distance proof — the cross-term that survives the expansion comes in with a sign determined by the rigid-rotation step. The "opposite sign for cosine, same sign for sine and tangent" pattern is the cleanest way to remember it.
Are the sum and difference formulas in radians or degrees?
Both. The formulas are unit-agnostic — sin⁡(π/4+π/6)=sin⁡(45°+30°)\sin(\pi/4 + \pi/6) = \sin(45° + 30°) is the same number written two ways. Use radians for calculus, degrees for school exams, and be consistent within a single calculation.
How do I derive the double-angle formulas from sum and difference?
Set A=BA = B in the sum formula. sin⁡(2A)=sin⁡(A+A)=2sin⁡Acos⁡A\sin(2A) = \sin(A+A) = 2\sin A \cos A. cos⁡(2A)=cos⁡2A−sin⁡2A\cos(2A) = \cos^2 A - \sin^2 A. tan⁡(2A)=2tan⁡A/(1−tan⁡2A)\tan(2A) = 2\tan A / (1 - \tan^2 A).
Can I use these formulas for negative angles?
Yes. The identities hold for all real AA and BB, positive or negative. sin⁡(−B)=−sin⁡B\sin(-B) = -\sin B and cos⁡(−B)=cos⁡B\cos(-B) = \cos B — the difference formula already encodes this when BB is negative.
What's the easiest way to remember the cosine identity?
Two memory hooks: (1) "Cos of sum: cos cos minus sin sin." (2) The sign between the terms is opposite to the sign between the angles.
When does the tangent formula's denominator blow up?
When 1−tan⁡Atan⁡B=01 - \tan A \tan B = 0, i.e., tan⁡Atan⁡B=1\tan A \tan B = 1. This happens when A+B=π/2A + B = \pi/2, where tan⁡(A+B)\tan(A+B) is undefined — the identity correctly diagnoses its own asymptote.
How are sum and difference identities used in calculus?
They are the proof technique for the derivative of sine: sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h) = \sin x \cos h + \cos x \sin h, and the difference quotient simplifies using the limits (sin⁡h)/h→1(\sin h)/h \to 1 and (1−cos⁡h)/h→0(1 - \cos h)/h \to 0. Without the sum identity, the derivative of sine has no easy proof.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →