Math Core

Lesson 5.2 · Analytic Trigonometry

Sum, difference and double-angle formulas

You know cos⁡π6\cos\dfrac{\pi}{6} and cos⁡π4\cos\dfrac{\pi}{4} exactly, but what about cos⁡π12\cos\dfrac{\pi}{12}? Trig functions don't distribute: cos⁡(A−B)\cos(A - B) is not cos⁡A−cos⁡B\cos A - \cos B. The sum and difference formulas tell you what cos⁡(A±B)\cos(A \pm B) really equals, and setting A=BA = B produces the double-angle formulas, which show up constantly in calculus and physics.

Where the formulas come from

Put angles AA and BB in standard position. Their terminal sides meet the unit circle at P=(cos⁡A,sin⁡A)P = (\cos A, \sin A) and Q=(cos⁡B,sin⁡B)Q = (\cos B, \sin B), and the angle between the two rays is A−BA - B. Now compute the squared distance PQ2PQ^2 two ways.

With the distance formula:

PQ2=(cos⁡A−cos⁡B)2+(sin⁡A−sin⁡B)2=2−2(cos⁡Acos⁡B+sin⁡Asin⁡B),PQ^2 = (\cos A - \cos B)^2 + (\sin A - \sin B)^2 = 2 - 2(\cos A\cos B + \sin A\sin B),

using cos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1 twice. Now rotate the whole picture so that QQ lands on (1,0)(1, 0). Then PP lands on (cos⁡(A−B),sin⁡(A−B))(\cos(A - B), \sin(A - B)), and the same computation gives PQ2=2−2cos⁡(A−B)PQ^2 = 2 - 2\cos(A - B). Rotation doesn't change distance, so the two expressions are equal:

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

Everything else follows. Replace BB with −B-B and use even/odd symmetry to get cos⁡(A+B)\cos(A + B). Use cofunctions, sin⁡(A+B)=cos⁡(π2−A−B)\sin(A + B) = \cos\left(\tfrac{\pi}{2} - A - B\right), to get the sine formulas. Divide sine by cosine to get tangent.

Sum and difference formulas

sin⁡(A±B)=sin⁡Acos⁡B±cos⁡Asin⁡Bcos⁡(A±B)=cos⁡Acos⁡B∓sin⁡Asin⁡Btan⁡(A±B)=tan⁡A±tan⁡B1∓tan⁡Atan⁡B\begin{aligned} \sin(A \pm B) &= \sin A\cos B \pm \cos A\sin B \\ \cos(A \pm B) &= \cos A\cos B \mp \sin A\sin B \\ \tan(A \pm B) &= \frac{\tan A \pm \tan B}{1 \mp \tan A\tan B} \end{aligned}

Notice the signs. Sine keeps the sign (++ goes with ++) and mixes the functions (sin⁡cos⁡\sin\cos, cos⁡sin⁡\cos\sin). Cosine flips the sign and keeps the functions paired (cos⁡cos⁡\cos\cos, sin⁡sin⁡\sin\sin).

Common mistake

The most common mistake is the sign in the cosine formula. cos⁡(A+B)\cos(A + B) has a minus in the middle: cos⁡Acos⁡B−sin⁡Asin⁡B\cos A\cos B - \sin A\sin B. Check yourself with A=B=π2A = B = \dfrac{\pi}{2}: cos⁡π=−1\cos\pi = -1, and 0⋅0−1⋅1=−10\cdot 0 - 1\cdot 1 = -1. It works.

Exact values of new angles

Any angle you can write as a sum or difference of π6\dfrac{\pi}{6}, π4\dfrac{\pi}{4}, π3\dfrac{\pi}{3} and their relatives now has an exact value. For example, π12=π3−π4\dfrac{\pi}{12} = \dfrac{\pi}{3} - \dfrac{\pi}{4} and 5π12=π6+π4\dfrac{5\pi}{12} = \dfrac{\pi}{6} + \dfrac{\pi}{4}.

Worked example: An exact value

Find the exact value of cos⁡15∘\cos 15^\circ.

Solution. Write 15∘=45∘−30∘15^\circ = 45^\circ - 30^\circ:

cos⁡15∘=cos⁡45∘cos⁡30∘+sin⁡45∘sin⁡30∘=22⋅32+22⋅12=6+24.\begin{aligned} \cos 15^\circ &= \cos 45^\circ\cos 30^\circ + \sin 45^\circ\sin 30^\circ \\ &= \frac{\sqrt2}{2}\cdot\frac{\sqrt3}{2} + \frac{\sqrt2}{2}\cdot\frac{1}{2} = \frac{\sqrt6 + \sqrt2}{4}. \end{aligned}

As a check, 6+24≈0.966\dfrac{\sqrt6 + \sqrt2}{4} \approx 0.966, just under 11, which is right for a small angle.

The formulas also work with angles you can't name, as long as you know their trig values. Draw or reason out the quadrant for each angle first.

Worked example: Combining two unknown angles

Suppose sin⁡α=35\sin\alpha = \dfrac{3}{5} with α\alpha in Quadrant I, and cos⁡β=−1213\cos\beta = -\dfrac{12}{13} with β\beta in Quadrant II. Find cos⁡(α−β)\cos(\alpha - \beta) and tan⁡(α+β)\tan(\alpha + \beta).

Solution. First fill in the missing values. cos⁡α=45\cos\alpha = \dfrac{4}{5} (positive in QI) and sin⁡β=513\sin\beta = \dfrac{5}{13} (positive in QII). Then

cos⁡(α−β)=45⋅(−1213)+35⋅513=−48+1565=−3365.\cos(\alpha - \beta) = \frac{4}{5}\cdot\left(-\frac{12}{13}\right) + \frac{3}{5}\cdot\frac{5}{13} = \frac{-48 + 15}{65} = -\frac{33}{65}.

For the tangent, tan⁡α=34\tan\alpha = \dfrac{3}{4} and tan⁡β=−512\tan\beta = -\dfrac{5}{12}:

tan⁡(α+β)=34−5121−34⋅(−512)=4121+1548=136348=1663.\tan(\alpha + \beta) = \frac{\frac{3}{4} - \frac{5}{12}}{1 - \frac{3}{4}\cdot\left(-\frac{5}{12}\right)} = \frac{\frac{4}{12}}{1 + \frac{15}{48}} = \frac{\frac{1}{3}}{\frac{63}{48}} = \frac{16}{63}.

Read backward, the formulas also compress expressions. For example, sin⁡50∘cos⁡20∘−cos⁡50∘sin⁡20∘\sin 50^\circ\cos 20^\circ - \cos 50^\circ\sin 20^\circ matches sin⁡(A−B)\sin(A - B), so it equals sin⁡30∘=12\sin 30^\circ = \dfrac{1}{2}.

Double-angle formulas

Set B=AB = A in the sum formulas:

Double-angle formulas

sin⁡2A=2sin⁡Acos⁡A,tan⁡2A=2tan⁡A1−tan⁡2A\sin 2A = 2\sin A\cos A, \qquad \tan 2A = \frac{2\tan A}{1 - \tan^2 A}cos⁡2A=cos⁡2A−sin⁡2A=2cos⁡2A−1=1−2sin⁡2A\cos 2A = \cos^2 A - \sin^2 A = 2\cos^2 A - 1 = 1 - 2\sin^2 A

The three versions of cos⁡2A\cos 2A are all the same thing, rewritten with sin⁡2A+cos⁡2A=1\sin^2 A + \cos^2 A = 1. Pick the one that matches what you know: if you're given only sin⁡A\sin A, use 1−2sin⁡2A1 - 2\sin^2 A and you won't need cosine at all.

Worked example: Double angles from one value

If tan⁡θ=−34\tan\theta = -\dfrac{3}{4} and θ\theta is in Quadrant II, find sin⁡2θ\sin 2\theta, cos⁡2θ\cos 2\theta and the quadrant of 2θ2\theta.

Solution. A reference triangle with legs 33 and 44 has hypotenuse 55. In Quadrant II, sin⁡θ=35\sin\theta = \dfrac{3}{5} and cos⁡θ=−45\cos\theta = -\dfrac{4}{5}.

sin⁡2θ=2⋅35⋅(−45)=−2425,cos⁡2θ=1625−925=725.\sin 2\theta = 2\cdot\frac{3}{5}\cdot\left(-\frac{4}{5}\right) = -\frac{24}{25}, \qquad \cos 2\theta = \frac{16}{25} - \frac{9}{25} = \frac{7}{25}.

Sine negative and cosine positive puts 2θ2\theta in Quadrant IV. That's consistent: θ\theta is between π2\dfrac{\pi}{2} and π\pi, and since tan⁡θ=−34\tan\theta = -\dfrac{3}{4} is closer to 00 than −1-1, θ\theta is actually past 3π4\dfrac{3\pi}{4}, so 2θ2\theta is between 3π2\dfrac{3\pi}{2} and 2π2\pi.

The double-angle formulas are also the key to many identity proofs. To verify 1−cos⁡2xsin⁡2x=tan⁡x\dfrac{1 - \cos 2x}{\sin 2x} = \tan x, start on the left and choose the form of cos⁡2x\cos 2x that cancels the 11:

1−(1−2sin⁡2x)2sin⁡xcos⁡x=2sin⁡2x2sin⁡xcos⁡x=sin⁡xcos⁡x=tan⁡x.\frac{1 - (1 - 2\sin^2 x)}{2\sin x\cos x} = \frac{2\sin^2 x}{2\sin x\cos x} = \frac{\sin x}{\cos x} = \tan x.

Had you picked cos⁡2x−sin⁡2x\cos^2 x - \sin^2 x instead, the proof would still work but would take an extra step. Choosing the right version of cos⁡2A\cos 2A is a skill worth practicing: use 1−2sin⁡2A1 - 2\sin^2 A next to a 1−1 -, use 2cos⁡2A−12\cos^2 A - 1 next to a 1+1 +, and use cos⁡2A−sin⁡2A\cos^2 A - \sin^2 A when you want to factor a difference of squares. You can also apply the sum formula twice to reach higher multiples. For instance, sin⁡3x=sin⁡(2x+x)=sin⁡2xcos⁡x+cos⁡2xsin⁡x\sin 3x = \sin(2x + x) = \sin 2x\cos x + \cos 2x\sin x, which becomes 3sin⁡x−4sin⁡3x3\sin x - 4\sin^3 x after you expand and replace cos⁡2x\cos^2 x with 1−sin⁡2x1 - \sin^2 x.

Power reducing and half angles

Solve the last two forms of cos⁡2A\cos 2A for the squares and you get formulas that trade a square for a double angle. Calculus uses these to integrate sin⁡2x\sin^2 x and cos⁡2x\cos^2 x.

sin⁡2A=1−cos⁡2A2,cos⁡2A=1+cos⁡2A2.\sin^2 A = \frac{1 - \cos 2A}{2}, \qquad \cos^2 A = \frac{1 + \cos 2A}{2}.

Replace AA by θ2\dfrac{\theta}{2} and take square roots to get the half-angle formulas:

sin⁡θ2=±1−cos⁡θ2,cos⁡θ2=±1+cos⁡θ2,\sin\frac{\theta}{2} = \pm\sqrt{\frac{1 - \cos\theta}{2}}, \qquad \cos\frac{\theta}{2} = \pm\sqrt{\frac{1 + \cos\theta}{2}},

where the sign is decided by the quadrant of θ2\dfrac{\theta}{2}, not of θ\theta. For example, π8\dfrac{\pi}{8} is half of π4\dfrac{\pi}{4} and lies in Quadrant I, so

cos⁡π8=1+222=2+22.\cos\frac{\pi}{8} = \sqrt{\frac{1 + \frac{\sqrt2}{2}}{2}} = \frac{\sqrt{2 + \sqrt2}}{2}.

Tip

When a problem mixes sin⁡2x\sin 2x with sin⁡x\sin x or cos⁡x\cos x, rewrite everything in terms of the single angle xx first. Mixed angles are the main thing that makes identities and equations look harder than they are.

Practice

Practice 1

Find the exact value of sin⁡75∘\sin 75^\circ.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the exact value of cos⁡7π12\cos\dfrac{7\pi}{12}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find the exact value of tan⁡15∘\tan 15^\circ.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Let sin⁡α=45\sin\alpha = \dfrac{4}{5} with α\alpha in Quadrant I and cos⁡β=−513\cos\beta = -\dfrac{5}{13} with β\beta in Quadrant II. Find sin⁡(α+β)\sin(\alpha + \beta).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find the exact value of sin⁡50∘cos⁡20∘−cos⁡50∘sin⁡20∘\sin 50^\circ\cos 20^\circ - \cos 50^\circ\sin 20^\circ.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

If cos⁡θ=−35\cos\theta = -\dfrac{3}{5} and θ\theta is in Quadrant III, find tan⁡2θ\tan 2\theta.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Simplify sin⁡3xcos⁡x−cos⁡3xsin⁡x\sin 3x\cos x - \cos 3x\sin x.

Practice 8

Use a half-angle formula to find the exact value of sin⁡π8\sin\dfrac{\pi}{8}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.