Last verified · v1.0
Calculator · math
Sum And Difference Identities Calculator
Compute sin(A±B), cos(A±B), and tan(A±B) instantly using sum and difference identities. Enter two angles in degrees or radians for exact trigonometric results.
Inputs
Identity Value
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Are Sum and Difference Identities?
Sum and difference identities — also called angle addition and subtraction formulas — are a foundational set of trigonometric equations that express the sine, cosine, and tangent of the sum or difference of two angles in terms of the trigonometric functions of each individual angle. These identities enable exact computation of trigonometric values for non-standard angles and appear throughout calculus, physics, electrical engineering, and computer graphics.
The Six Core Formulas
According to Trigonometric Identities and Equations (ScholarWorks@GVSU) and Texas A&M ODP Math 150, Chapter 8.2, the identities are stated as follows:
- Sine Sum: sin(A + B) = sin A cos B + cos A sin B
- Sine Difference: sin(A − B) = sin A cos B − cos A sin B
- Cosine Sum: cos(A + B) = cos A cos B − sin A sin B
- Cosine Difference: cos(A − B) = cos A cos B + sin A sin B
- Tangent Sum: tan(A + B) = (tan A + tan B) / (1 − tan A tan B)
- Tangent Difference: tan(A − B) = (tan A − tan B) / (1 + tan A tan B)
Variable Definitions
A (Angle A) and B (Angle B) are the two input angles, each expressible in degrees or radians. The calculator converts inputs automatically before applying any formula. In the compact ± notation, the upper sign applies to the sum identity and the lower sign to the difference identity. The ∓ symbol in the cosine formula indicates the opposite sign from the selected ±.
Derivation of the Formulas
The sine sum formula has several proofs. The algebraic proof uses Euler's formula: ei(A+B) = eiA × eiB. Expanding each factor as (cos + i·sin) and multiplying out, then separating real and imaginary parts, simultaneously yields cos(A + B) = cos A cos B − sin A sin B and sin(A + B) = sin A cos B + cos A sin B. The tangent identities follow by dividing sin(A+B) by cos(A+B) and simplifying, as demonstrated in OER Math 1060 – Trigonometry (Salt Lake Community College). A geometric proof using two right triangles inscribed within a rectangle produces the same result without complex numbers.
Worked Example 1 — sin(75°) Using the Sine Sum Identity
Express 75° = 45° + 30°. From the standard unit circle: sin(45°) = cos(45°) = √2/2, sin(30°) = 1/2, and cos(30°) = √3/2. Substituting into the sine sum formula:
- sin(75°) = sin(45°)cos(30°) + cos(45°)sin(30°)
- = (√2/2)(√3/2) + (√2/2)(1/2)
- = √6/4 + √2/4 = (√6 + √2)/4 ≈ 0.9659
This exact radical form is the standard expected answer in mathematics courses and cannot be obtained by pressing a decimal approximation button alone.
Worked Example 2 — cos(15°) Using the Cosine Difference Identity
Express 15° = 45° − 30°. Apply cos(A − B) = cos A cos B + sin A sin B:
- cos(15°) = cos(45°)cos(30°) + sin(45°)sin(30°)
- = (√2/2)(√3/2) + (√2/2)(1/2) = (√6 + √2)/4 ≈ 0.9659
The result matches sin(75°), confirming the co-function identity sin θ = cos(90° − θ) as a built-in consistency check.
Worked Example 3 — tan(15°) in Radians
Set A = π/3 radians (60°) and B = π/4 radians (45°). Apply the tangent difference formula: tan(π/3 − π/4) = (tan(π/3) − tan(π/4)) / (1 + tan(π/3)·tan(π/4)) = (√3 − 1)/(1 + √3) ≈ 0.2679, which equals the exact closed form 2 − √3, verifiable by rationalization.
Practical Applications
- Calculus: The first-principles proof that d/dx[sin x] = cos x expands sin(x + h) using the sum identity, isolating cos(x) as h → 0.
- AC Electrical Engineering: Phase-shifted voltages are combined using the cosine sum identity to determine resultant amplitude and phase angle.
- Computer Graphics: 2D and 3D rotation matrices apply cos(A + B) and sin(A + B) to rotate vectors through compound angles without recomputing from scratch.
- Signal Processing: Product-to-sum conversions — derived from the sum and difference identities — decompose amplitude-modulated signals into frequency components.
- Navigation and GPS: Spherical trigonometry formulas used in great-circle routing build directly on planar sum and difference identities extended to spherical geometry.
How to Use This Calculator
Select the identity type (sine, cosine, or tangent), enter Angle A and Angle B, choose degrees or radians, and click Calculate. The tool applies the appropriate formula and returns the result as a decimal. Cross-check results by computing the equivalent combined angle directly on a unit circle or by verifying with a co-function relation. See Trigonometric Identities — Kennesaw State University for a concise reference sheet of all standard identities.
Reference