On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Sum and Difference Identities

Sum and difference identities expand a trig function of A±B into products of the two angles' sines and cosines.

sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B
cos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡B
tan⁡(A±B)=tan⁡A±tan⁡B1∓tan⁡Atan⁡B

Quick Answer

Sum and difference identities expand a trig function of A±B into products of the two angles' sines and cosines. Use them to find exact values at angles built from standard ones, such as 75°=45°+30° or 15°=45°−30°, to simplify expressions like sin⁡(x+π), and to combine two waves into one. The key formulas are sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B and cos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡B; in the cosine formula the sign flips.

Why This Matters

Trig functions do not distribute: sin⁡(30°+60°)=sin⁡90°=1, while sin⁡30°+sin⁡60°≈1.37. These identities give the correct way to break an angle apart. They produce exact values for angles like 75°, show why sin⁡(x+π)=−sin⁡x, generate the double-angle formulas, and let engineers combine two signals of the same frequency into a single wave.

Intuitive Explanation

Start with what goes wrong. Is cos⁡(60°+30°) equal to cos⁡60°+cos⁡30°? The left side is cos⁡90°=0; the right side is 12+32≈1.37. Trig functions are not linear, so you cannot split the angle by adding. The correct rule mixes the two angles: cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B. Check it: 12⋅32−32⋅12=0.

Picture rotating a point on the unit circle by A and then by B. It ends at angle A+B, at (cos⁡(A+B),sin⁡(A+B)). Working out where the second rotation sends (cos⁡A,sin⁡A) produces exactly the products in the formulas, so each identity records two rotations combined. Watch the sign pattern: sine keeps the sign, sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B, and cosine reverses it, cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B.

When the two angles are equal, A=B=θ, the sum identities collapse into the double-angle identities, such as sin⁡2θ=2sin⁡θcos⁡θ. When only one angle appears, squared, as in sin⁡2θ+cos⁡2θ, there is no second angle to split and the Pythagorean identity is the tool. A sum or difference identity needs two angles combined inside one trig function.

Think of it like this. Turning a dial by A and then by B leaves it pointing at A+B, but the pointer tip's sideways and upward positions do not simply add: each depends on both turns. The sum identities are the exact bookkeeping for combining them. The picture covers sine and cosine; the tangent formula follows by dividing one by the other.

Core idea. sin⁡(A±B) and cos⁡(A±B) expand into cross products of the separate angles' sines and cosines.


When to Use

Use these identities when a trig function's argument is a sum or difference, such as sin⁡(x+π) or cos⁡(θ−45°); when you need an exact value at an angle like 75°, 105° or 15° that splits into standard angles; or when an expression shows the product pattern sin⁡Acos⁡B+cos⁡Asin⁡B waiting to be condensed. If the two angles are equal, use the double-angle forms; if the expression has squares of a single angle, use the Pythagorean identity.

Tip. Ask: Is the argument of the trig function a sum or difference of two angles I want to break apart?

How to Recognize It

Before expanding with a sum or difference formula, check whether the angle inside can be split into two angles whose sines and cosines you actually know.

  1. Can the angle be written as two standard angles added or subtracted, such as 105∘=60∘+45∘?

    If yes, expanding gives an exact value: cos⁡105∘=cos⁡60∘cos⁡45∘−sin⁡60∘sin⁡45∘=2−64. If it splits only into non-standard pieces, expect a calculator decimal.

  2. Are the two angles in the argument equal, as in sin⁡(x+x)?

    If yes, the double-angle identities are this same formula already simplified, so use them directly. The full sum or difference formula earns its keep only when the two angles differ.

  3. Is one of the two angles a quarter turn or a half turn, as in x+π or 90∘−θ?

    If yes, the expansion collapses to one term, because the sines and cosines of those angles are 0 or ±1: sin⁡(x+π)=−sin⁡x and cos⁡(90∘−θ)=sin⁡θ. The cofunction rules come from exactly this.

  4. Does the expression already have the two-product form sin⁡Acos⁡B+cos⁡Asin⁡B?

    If yes, run the formula backward to condense it: sin⁡50∘cos⁡10∘+cos⁡50∘sin⁡10∘=sin⁡60∘=32. Squares of one angle, such as sin⁡2x+cos⁡2x, belong to the Pythagorean identity instead.

Sum and Difference Identities compared with Double-angle identities, Pythagorean identities, and Distributing the function (wrong)

Each row rewrites a trig function of some angle, and the formulas look alike on the page. Ask how many different angles are involved and how they combine: two different angles added, one angle doubled, squares of one angle, or a function wrongly split across a sum.

Sum and Difference Identities

Meaning
Use this when the angle inside a trig function is written as a sum or difference of two angles you know.
Key test
Is the argument of the trig function a sum or difference of two angles I want to break apart?
Formula
sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B
cos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡B
tan⁡(A±B)=tan⁡A±tan⁡B1∓tan⁡Atan⁡B
Example
Find the exact value of cos⁡75°.

Double-angle identities

Meaning
The special case where both angles are equal, A=B.
Key test
Use when the angle is exactly twice another, like 2θ.
Formula
sin⁡2θ=2sin⁡θcos⁡θ
Example
sin⁡80° from 40°

Pythagorean identities

Meaning
Relate squares of one angle's trig values; no second angle involved.
Key test
Use when you have sin⁡2 and cos⁡2 of the same angle.
Formula
sin⁡2θ+cos⁡2θ=1
Example
Simplify 1−cos⁡2θ

Distributing the function (wrong)

Meaning
The illegal move of splitting sin⁡(A+B) into sin⁡A+sin⁡B.
Key test
Never use — trig functions are not linear; this is always wrong.
Example
sin⁡(30°+60°)≠sin⁡30°+sin⁡60°

Formula & Notation

sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B
cos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡B
tan⁡(A±B)=tan⁡A±tan⁡B1∓tan⁡Atan⁡B
sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡B; cos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡B; tan⁡(A±B)=tan⁡A±tan⁡B1∓tan⁡Atan⁡B

How to read it: Note the sign pattern: in the cosine formula, ± becomes ∓ (signs are opposite). In sine and tangent, signs match.

Worked Examples

Example 1 — Exact value of cos 75°

Easy

Find the exact value of cos⁡75°.
Show the steps and the answer
  1. Split the angle into standard angles: 75°=45°+30°.

    Both 45° and 30° have exact sines and cosines.

  2. Apply cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B with A=45° and B=30°.

    A sum inside cosine puts a minus sign between the products.

  3. Substitute: 22⋅32−22⋅12=64−24.

    2⋅3=6, and both terms have denominator 4.

  4. Combine and check: 6−24≈2.449−1.4144≈0.259.

    A calculator gives cos⁡75°≈0.2588, so the exact form is right.

Answer: 6−24

Takeaway: Split an unfamiliar angle into two standard angles, apply the identity with its sign, then simplify the radicals.

Example 2 — Both angles are equal

Standard

Find cos⁡2θ given θ — do you use the sum identity?
Show the steps and the answer
  1. Write 2θ as two angles: 2θ=θ+θ.

    Doubling is a sum, not a difference, and here the two angles are the same.

  2. Use the sum identity with A=B=θ: cos⁡(θ+θ)=cos⁡θcos⁡θ−sin⁡θsin⁡θ.

    The general formula still holds when the two angles are equal.

  3. Collapse the products: cos⁡2θ=cos⁡2θ−sin⁡2θ.

    Each function times itself becomes a square; this is the double-angle identity.

  4. Check at θ=30°: cos⁡60°=12 and 34−14=12.

    cos⁡230°=34 and sin⁡230°=14, so both sides give 12.

Answer: cos⁡2θ=cos⁡2θ−sin⁡2θ

Takeaway: With two equal angles the sum identity becomes the double-angle identity, so use that ready-made form directly.

Example 3 — Find the mistake: the cosine sign

Application

Find the exact value of cos⁡15°. Ben writes: "cos⁡(45°−30°)=cos⁡45°cos⁡30°−sin⁡45°sin⁡30°=6−24." Find the mistake and correct it.
Show the steps and the answer
  1. Test Ben's value: 6−24≈0.259, but cos⁡15° must be close to 1, since 15° is a small angle.

    0.259 is cos⁡75°, a sign that the formula for a sum was used.

  2. Name the error: in cosine, the sign between the products is the opposite of the sign inside.

    cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B; Ben copied the minus from 45°−30°.

  3. Recompute: 22⋅32+22⋅12=6+24.

    The products are unchanged; only the sign between them flips.

  4. Check: 2.449+1.4144≈0.966, and a calculator gives cos⁡15°≈0.966.

    The value is now close to 1, as a small angle requires.

Answer: cos⁡15°=6+24≈0.966

Takeaway: In the cosine formulas the sign flips: a difference inside gives a plus between the products.

Where You'll See It

  • Two signals that make one wave

    The sum 3sin⁡t+4cos⁡t looks like two waves, but it is one: 5sin⁡(t+ϕ) with cos⁡ϕ=35 and sin⁡ϕ=45, because 5sin⁡(t+ϕ)=5sin⁡tcos⁡ϕ+5cos⁡tsin⁡ϕ=3sin⁡t+4cos⁡t. Its amplitude is 5, not 3+4=7, which is how engineers find the strength of combined signals.

  • Rotating a point on screen

    A point 4 units from the origin at 30° is about (3.464,2). Rotating it 45° further puts it at angle 75°, and the sum identities give the new coordinates from the old: x′=xcos⁡45°−ysin⁡45°≈1.035 and y′=xsin⁡45°+ycos⁡45°≈3.864. Graphics programs rotate every point this way.

Common Mistakes

  1. The slip: Splitting cos⁡(A+B) as cos⁡A+cos⁡B

    Instead: it expands to cos⁡Acos⁡B−sin⁡Asin⁡B, a product mix.

  2. The slip: Getting the cosine sign wrong

    Instead: in cosine the inside + becomes a − between the products (∓ flips).

  3. The slip: Using matching signs for cosine

    Instead: sine and tangent keep the sign, cosine reverses it.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the exact value of sin⁡15°.

    Hint: Write 15° as a difference of two angles you know.

  2. Find the exact value of sin⁡105°.

    Hint: Split 105° into two special angles that add to it.

  3. Find the exact value of tan⁡75°.

    Hint: Use tan⁡45°=1 and tan⁡30°=13 in the tangent sum formula.

  4. If sin⁡A=35, cos⁡A=45, sin⁡B=513 and cos⁡B=1213, find cos⁡(A−B).

    Hint: In the cosine formula, the sign between the products is the opposite of the sign inside.

  5. To find sin⁡165° exactly, should you use a sum or difference identity, or a double-angle identity?

    Hint: Is 165° twice a special angle, or a sum of two special angles?

  6. A student writes: "cos⁡(60°−30°)=cos⁡60°cos⁡30°−sin⁡60°sin⁡30°=0." Correct the mistake.

    Hint: Compare with cos⁡30°, which you already know.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why does the sign flip in the cosine formula but not in the sine formula?

Test it with angles you know. Take A=B=45∘A = B = 45^\circ: cos⁡90∘\cos 90^\circ must be 0, and cos⁡45∘cos⁡45∘=12\cos 45^\circ\cos 45^\circ = \frac{1}{2}, so the second product, also 12\frac{1}{2}, has to be subtracted to reach 0. For sine, sin⁡90∘=1\sin 90^\circ = 1 needs the two products 12+12\frac{1}{2} + \frac{1}{2} added. Checking a pair of standard angles like this is the quickest way to rebuild a formula you half remember.

How did anyone find these formulas in the first place?

One clean proof uses the unit circle. The distance between the points at angles AA and BB equals the distance between the points at A−BA - B and 00, because one pair is the other pair turned. Writing both distances with the distance formula and setting them equal gives cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A\cos B + \sin A\sin B, and the other formulas follow from it. Ptolemy used an equivalent rule about chords around 150 CE to build astronomy tables.

How can sin⁡x+cos⁡x be written as a single sine wave?

Match it to Rsin⁡(x+c)=Rsin⁡xcos⁡c+Rcos⁡xsin⁡cR\sin(x + c) = R\sin x\cos c + R\cos x\sin c. You need Rcos⁡c=1R\cos c = 1 and Rsin⁡c=1R\sin c = 1, so c=45∘c = 45^\circ and R=2R = \sqrt{2}. That gives sin⁡x+cos⁡x=2sin⁡(x+45∘)\sin x + \cos x = \sqrt{2}\sin(x + 45^\circ), a wave with amplitude about 1.411.41. Engineers use the same step to merge two signals with the same period into one wave and read off its height.

Does the formula for tan⁡(A+B) ever fail?

Yes, when the denominator 1−tan⁡Atan⁡B1 - \tan A\tan B is zero, which happens exactly when A+BA + B is 90∘90^\circ plus a multiple of 180∘180^\circ, where tangent itself is undefined. For example, tan⁡30∘⋅tan⁡60∘=13⋅3=1\tan 30^\circ \cdot \tan 60^\circ = \frac{1}{\sqrt{3}} \cdot \sqrt{3} = 1, so the formula for tan⁡90∘\tan 90^\circ divides by zero, as it should. It also fails when AA or BB alone is 90∘90^\circ; then expand sine and cosine instead.

Learning Path

Sum and Difference Identities

You are here

You need the Pythagorean Trigonometric Identities and the standard values of sine and cosine from Trigonometric Functions. Sum and difference identities add the rule for combining two angles inside one function, with its sign pattern. Next, the Double-Angle Identities are the special case A=B, and from them come the half-angle and power-reducing formulas.

See Also