Sum and Difference Identities
sin(A±B)=sinAcosB±cosAsinB, cos(A±B)=cosAcosB∓sinAsinB, tan(A±B)=(tanA±tanB)/(1∓tanAtanB). The foundation for double angle and product-to-sum.
Did our AI summary help? Let us know.
Double angle: set A=B to get sin(2A)=2sinAcosA, cos(2A)=cos²A-sin²A. sin(A-B)=sinAcosB-cosAsinB — the minus sign applies to the cosAsinB term. tan(A+B) undefined when tanAtanB=1 — i.e., when A+B=90°+n·180°.
Ready to run the numbers?
Why: Sum and difference formulas expand sin(A+B), cos(A-B), etc. — essential for simplifying expressions, solving equations, and deriving other identities.
How: sin(A+B)=sinAcosB+cosAsinB (note the + in the middle). cos(A+B)=cosAcosB-sinAsinB (note the -). For difference, flip the sign of the second term.
Run the calculator when you are ready.
Examples — Click to Load
Value Breakdown
Original vs Combined
Component Contributions
Calculation Breakdown
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
sin(A+B)=sinAcosB+cosAsinB — the sum formula. Difference: sin(A-B)=sinAcosB-cosAsinB.
— Wolfram MathWorld
Double angle formulas are the special case A=B of the sum formulas.
— Khan Academy
Key Takeaways
- • sin(A±B) = sinAcosB ± cosAsinB — sine uses the same sign as the operation (sum → +, difference → −)
- • cos(A±B) = cosAcosB ∓ sinAsinB — cosine flips: sum has minus, difference has plus between product terms
- • tan(A±B) = (tanA ± tanB)/(1 ∓ tanAtanB) — denominator sign flips: sum uses 1−tanAtanB, difference uses 1+tanAtanB
- • These identities derive from Euler's formula: e^(iA)·e^(iB) = e^(i(A+B)); expand and equate real/imaginary parts
- • Used in wave superposition, rotation matrices, trigonometric substitution, and deriving double-angle and half-angle formulas
Did You Know?
How Sum and Difference Formulas Work
Sum and difference identities express trig functions of A±B in terms of trig functions of A and B. They are foundational—double-angle, half-angle, and product-to-sum all derive from them.
Euler Derivation
e^(i(A+B)) = e^(iA)·e^(iB) = (cosA+i·sinA)(cosB+i·sinB). Expanding: cos(A+B) + i·sin(A+B) = (cosAcosB−sinAsinB) + i(sinAcosB+cosAsinB). Equate real and imaginary parts to get both formulas at once.
Cosine Sign Rule
For cosine: sum has minus (cos(A+B)=cosAcosB−sinAsinB), difference has plus (cos(A−B)=cosAcosB+sinAsinB). Replace B with −B in the sum formula: cos(−B)=cosB, sin(−B)=−sinB, so the sin·sin term flips sign.
Tangent Formula
tan(A±B) = sin(A±B)/cos(A±B). Substitute the sine and cosine formulas, then divide numerator and denominator by cosAcosB to get (tanA±tanB)/(1∓tanAtanB). Undefined when denominator is zero.
Expert Tips
Cosine: Sum Minus, Diff Plus
Memorize: cos(A+B) has a minus between the product terms; cos(A−B) has a plus. The Double Angle Calculator uses A=B.
Sine: Same Structure
sin(A±B) = sinAcosB ± cosAsinB — the ± matches the operation. Sum → plus, difference → minus. See Product to Sum for the reverse.
Tangent Denominator Flips
tan(A+B) uses 1−tanAtanB; tan(A−B) uses 1+tanAtanB. When tanAtanB=1, tan(A+B) is undefined (A+B=90°+n·180°).
Exact Values
Use sum formulas to find exact values: sin(75°)=sin(45°+30°)=sin45°cos30°+cos45°sin30°=√2/2·√3/2+√2/2·1/2. Try the Sine Calculator.
Sum/Difference vs Other Methods
| Feature | This Calculator | Direct Compute | Manual Formula |
|---|---|---|---|
| sin, cos, tan all supported | ✅ | ✅ | ✅ |
| Two angle inputs A, B | ✅ | ✅ | ✅ |
| Identity verification | ✅ | ❌ | ⚠️ Manual |
| Component breakdown | ✅ | ❌ | ✅ |
| Charts & visualization | ✅ | ❌ | ❌ |
| Step-by-step explanation | ✅ | ❌ | ✅ |
| Degrees and radians | ✅ | ✅ | ✅ |
| 7 preset examples | ✅ | ❌ | ❌ |
Frequently Asked Questions
How do sum formulas relate to double-angle?
Set A = B. Then sin(A+B) = sin(2A) = sinAcosA + cosAsinA = 2sinAcosA. Similarly, cos(2A) = cos²A − sin²A. Double-angle is the special case of sum formulas.
Why does cosine have opposite signs for sum vs difference?
cos(A−B) = cos(A+(−B)) = cosAcos(−B) − sinAsin(−B) = cosAcosB + sinAsinB. The minus in the formula becomes plus because sin(−B) = −sinB.
Where are these used in practice?
Wave superposition (physics), rotation matrices (graphics, robotics), trigonometric substitution (calculus), signal processing (frequency mixing), and deriving other identities.
When is tan(A+B) undefined?
When 1 − tanAtanB = 0, i.e. tanAtanB = 1. This occurs when A+B = 90° + n·180° (e.g. A=30°, B=60° gives tan(90°) undefined).
How do I derive these from Euler's formula?
e^(i(A+B)) = e^(iA)e^(iB). Expand both sides using e^(ix)=cos(x)+i·sin(x). Equate real parts for cosine formula, imaginary for sine formula.
What is sin(15°) exactly?
sin(15°) = sin(45°−30°) = sin45°cos30° − cos45°sin30° = (√2/2)(√3/2) − (√2/2)(1/2) = √2(√3−1)/4.
Can I use these for any angles?
Yes. The formulas work for all real A and B. For tan(A±B), avoid angles where the denominator 1∓tanAtanB is zero.
How do product-to-sum formulas relate?
Product-to-sum is the reverse: they convert sinAsinB, cosAcosB, sinAcosB into sums. Add/subtract the sum and difference formulas to derive them.
Sum/Difference by the Numbers
Official & Educational Sources
Disclaimer: This calculator provides results based on standard IEEE 754 floating-point arithmetic. Results are accurate to approximately 15 significant digits. For mission-critical applications (aerospace, medical devices), always verify with certified computational tools. Not a substitute for professional engineering analysis.
Related Calculators
Product To Sum Calculator
Convert products of trig functions (sin·cos, sin·sin, cos·cos) to sums. Step-by-step.
MathematicsDouble Angle Calculator
Compute sin(2θ), cos(2θ), tan(2θ) using double angle formulas. Step-by-step for any angle in degrees or radians.
MathematicsHalf Angle Calculator
Compute sin(θ/2), cos(θ/2), tan(θ/2) using half angle formulas. Step-by-step for any angle.
MathematicsSum to Product Calculator
Convert sums and differences of sine and cosine to products. sin(A)+sin(B), sin(A)-sin(B), cos(A)+cos(B), cos(A)-cos(B). Step-by-step solutions, charts.
MathematicsCofunction Calculator
Verify cofunction identities: sin(θ)=cos(90°-θ), tan(θ)=cot(90°-θ), sec(θ)=csc(90°-θ). Step-by-step.
MathematicsTrigonometry Calculator
Compute all six trig functions (sin, cos, tan, csc, sec, cot) for any angle. Quadrant, step-by-step.
Mathematics