Trigonometry & Complex Numbers

Study Sheet

Trigonometry & Complex Numbers

Identities, de Moivre, and roots of unity

Trigonometric Identities

Tip
The identities you cannot do without

Pythagorean: sin⁡2θ+cos⁡2θ=1\sin^2\theta+\cos^2\theta=1. Double angle: sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta, cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\theta. Law of cosines: c2=a2+b2−2abcos⁡Cc^2 = a^2+b^2-2ab\cos C.

In plain terms. A handful of identities convert between sines and cosines and relate a triangle's sides to its angles.

Example. If sin⁡θ=35\sin\theta = \tfrac35 (acute), then cos⁡θ=45\cos\theta = \tfrac45 and sin⁡2θ=2⋅35⋅45=2425\sin 2\theta = 2\cdot\tfrac35\cdot\tfrac45 = \tfrac{24}{25}.

Reminder — Law of Cosines:  c2=a2+b2−2abcos⁡Cc^{2}=a^{2}+b^{2}-2ab\cos C

Why they hold. The point at angle θ\theta on the unit circle is (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta), and its distance from the origin is 11: that is the Pythagorean identity. The double-angle formulas are the addition formulas with both angles equal, and cos⁡2θ=1−2sin⁡2θ=2cos⁡2θ−1\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1 follows by replacing cos⁡2\cos^2 or sin⁡2\sin^2 with the Pythagorean identity. The law of cosines is the distance formula applied to a triangle with one vertex at the origin. Knowing the source tells you which form to reach for: 1−2sin⁡2θ1 - 2\sin^2\theta when you know the sine, 2cos⁡2θ−12\cos^2\theta - 1 when you know the cosine.

Example
Worked: squaring a sum

If sin⁡x+cos⁡x=75\sin x + \cos x = \tfrac75 with 0<x<π20 < x < \tfrac\pi2, find sin⁡2x\sin 2x and ∣sin⁡x−cos⁡x∣|\sin x - \cos x|.

Spotting it. Squaring sin⁡x+cos⁡x\sin x + \cos x produces sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 plus the cross term 2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x. That is the whole trick.

Step 1. (sin⁡x+cos⁡x)2=1+sin⁡2x=4925(\sin x + \cos x)^2 = 1 + \sin 2x = \tfrac{49}{25}, so sin⁡2x=2425\sin 2x = \tfrac{24}{25}.

Step 2. (sin⁡x−cos⁡x)2=1−sin⁡2x=125(\sin x - \cos x)^2 = 1 - \sin 2x = \tfrac{1}{25}, so ∣sin⁡x−cos⁡x∣=15|\sin x - \cos x| = \tfrac15.

Step 3. Adding and subtracting, sin⁡x\sin x and cos⁡x\cos x are 45\tfrac45 and 35\tfrac35 in some order. Both orders fit the data, which is exactly why the problem asks for the absolute value.

Example
Worked: an angle and an area from three sides
60°ABC578
Sides 5 and 8 enclose the 60circ60^circ angle; the side opposite it is 7.

A triangle has sides 55, 77 and 88. Find the angle opposite the side of length 77, and the area of the triangle.

Spotting it. Three sides and an angle wanted: the law of cosines solved for the cosine.

Step 1. cos⁡θ=52+82−722⋅5⋅8=4080=12\cos\theta = \dfrac{5^2 + 8^2 - 7^2}{2 \cdot 5 \cdot 8} = \dfrac{40}{80} = \dfrac12, so θ=60∘\theta = 60^\circ.

Step 2. Area =12⋅5⋅8⋅sin⁡60∘=103= \tfrac12 \cdot 5 \cdot 8 \cdot \sin 60^\circ = 10\sqrt3.

Check with Heron: s=10s = 10, and 10⋅5⋅3⋅2=300=103\sqrt{10 \cdot 5 \cdot 3 \cdot 2} = \sqrt{300} = 10\sqrt3 ✓

Example
Worked: double angles from the tangent
θθ(1/√5, 2/√5)(−3/5, 4/5)
The angle θ\theta with tan⁡θ=2\tan\theta = 2 and its double: 2θ2\theta lands at (−3/5,4/5)(-3/5, 4/5), past 90∘90^\circ.

If tan⁡θ=2\tan\theta = 2 and θ\theta is acute, find sin⁡2θ\sin 2\theta and cos⁡2θ\cos 2\theta.

Spotting it. Only tan⁡θ\tan\theta is known. Divide the double-angle formulas by cos⁡2θ=11+tan⁡2θ\cos^2\theta = \tfrac{1}{1 + \tan^2\theta} to write them in t=tan⁡θt = \tan\theta.

Step 1. sin⁡2θ=2sin⁡θcos⁡θsin⁡2θ+cos⁡2θ=2t1+t2=45\sin 2\theta = \dfrac{2\sin\theta\cos\theta}{\sin^2\theta + \cos^2\theta} = \dfrac{2t}{1 + t^2} = \dfrac45.

Step 2. cos⁡2θ=cos⁡2θ−sin⁡2θcos⁡2θ+sin⁡2θ=1−t21+t2=−35\cos 2\theta = \dfrac{\cos^2\theta - \sin^2\theta}{\cos^2\theta + \sin^2\theta} = \dfrac{1 - t^2}{1 + t^2} = -\dfrac35.

Sense check. tan⁡θ>1\tan\theta > 1 means θ>45∘\theta > 45^\circ, so 2θ>90∘2\theta > 90^\circ and a negative cosine is expected.

Side note
Where it goes wrong

Ignoring the quadrant. If sin⁡θ=35\sin\theta = \tfrac35 and θ\theta is in the SECOND quadrant, then cos⁡θ=−45\cos\theta = -\tfrac45 and sin⁡2θ=2⋅35⋅(−45)=−2425\sin 2\theta = 2 \cdot \tfrac35 \cdot \left(-\tfrac45\right) = -\tfrac{24}{25}, not 2425\tfrac{24}{25}. The Pythagorean identity only gives cos⁡2θ\cos^2\theta; the quadrant decides the sign.

Reminder — The Pythagorean identity:  sin⁡2θ+cos⁡2θ=1\sin^2\theta+\cos^2\theta=1
Try it
Try it: double and triple

If cos⁡θ=13\cos\theta = \tfrac13, find cos⁡2θ\cos 2\theta and cos⁡3θ\cos 3\theta.

Show the answer

cos⁡2θ=2cos⁡2θ−1=29−1=−79\cos 2\theta = 2\cos^2\theta - 1 = \tfrac29 - 1 = -\tfrac79. cos⁡3θ=4cos⁡3θ−3cos⁡θ=427−1=−2327\cos 3\theta = 4\cos^3\theta - 3\cos\theta = \tfrac{4}{27} - 1 = -\tfrac{23}{27}.

Complex Numbers

Tip
Polar form and de Moivre

Write z=r(cos⁡θ+isin⁡θ)=reiθz = r(\cos\theta+i\sin\theta) = re^{i\theta}; then zn=rn(cos⁡nθ+isin⁡nθ)z^n = r^n(\cos n\theta + i\sin n\theta).

In plain terms. A complex number is a length and an angle. Raising to a power multiplies the length and just adds up the angle.

Example. (1+i)8(1+i)^8: here r=2, θ=45∘r=\sqrt2,\ \theta=45^\circ, so r8=16r^8 = 16 and 8θ=360∘8\theta = 360^\circ, giving 1616.

Why it works. Multiply r(cos⁡α+isin⁡α)r(\cos\alpha + i\sin\alpha) by s(cos⁡β+isin⁡β)s(\cos\beta + i\sin\beta). The real part is rs(cos⁡αcos⁡β−sin⁡αsin⁡β)=rscos⁡(α+β)rs(\cos\alpha\cos\beta - \sin\alpha\sin\beta) = rs\cos(\alpha + \beta) and the imaginary part is rssin⁡(α+β)rs\sin(\alpha + \beta). So lengths multiply and angles add: the addition formulas are hiding inside complex multiplication. Repeating the product nn times gives de Moivre.

Concept
Roots of unity

The solutions of zn=1z^n=1 are e2πik/ne^{2\pi ik/n}, equally spaced on the unit circle, and for n>1n>1 they sum to 00.

In plain terms. The nnth roots of 11 are nn evenly-spaced points around a circle; being symmetric, they cancel to zero.

Example. The cube roots of 11 are 1,ω,ω21, \omega, \omega^2 with 1+ω+ω2=01 + \omega + \omega^2 = 0.

Why they sum to zero. Let S=1+ω+⋯+ωn−1S = 1 + \omega + \cdots + \omega^{n-1} with ω=e2πi/n\omega = e^{2\pi i/n}. Multiplying by ω\omega shifts every term to the next one (and ωn=1\omega^n = 1 wraps the last back to the first), so ωS=S\omega S = S. Since ω≠1\omega \ne 1, S=0S = 0. Geometrically: rotating the regular nn-gon of roots by 360∘n\tfrac{360^\circ}{n} leaves it unchanged, and the only vector unchanged by a rotation is zero.

Example
Worked: a power by polar form

Compute (1+i)10(1 + i)^{10}.

Spotting it. A tenth power of a binomial with equal real and imaginary parts: go polar.

Step 1. ∣1+i∣=2|1 + i| = \sqrt2 and the argument is 45∘45^\circ.

Step 2. (1+i)10=(2)10(cos⁡450∘+isin⁡450∘)=32(cos⁡90∘+isin⁡90∘)=32i(1 + i)^{10} = (\sqrt2)^{10}\left(\cos450^\circ + i\sin450^\circ\right) = 32(\cos90^\circ + i\sin90^\circ) = 32i.

Check a shorter way: (1+i)2=2i(1 + i)^2 = 2i, so (1+i)10=(2i)5=32i5=32i(1 + i)^{10} = (2i)^5 = 32i^5 = 32i ✓

Example
Worked: a square by rotation
xyA = 2 + iB = 5 + 3iC = 3 + 6iD = 4i
Side AB=3+2iAB = 3 + 2i, turned 90∘90^\circ by multiplying by ii, gives side BC=−2+3iBC = -2 + 3i.

A=2+iA = 2 + i and B=5+3iB = 5 + 3i are consecutive vertices of square ABCDABCD, labelled counterclockwise. Find CC and DD.

Spotting it. Going counterclockwise around a square, each side is the previous one turned 90∘90^\circ left, and turning by 90∘90^\circ is multiplication by ii.

Step 1. B−A=3+2iB - A = 3 + 2i. Turned left: i(3+2i)=−2+3ii(3 + 2i) = -2 + 3i.

Step 2. C=B+(−2+3i)=3+6iC = B + (-2 + 3i) = 3 + 6i and D=A+(−2+3i)=4iD = A + (-2 + 3i) = 4i.

Check: D−C=−3−2i=−(B−A)D - C = -3 - 2i = -(B - A), so opposite sides are parallel and equal ✓

Example
Worked: from a cosine to a power

If z+1z=2cos⁡20∘z + \dfrac1z = 2\cos20^\circ, find z9+1z9z^9 + \dfrac{1}{z^9}.

Spotting it. eiθ+e−iθ=2cos⁡θe^{i\theta} + e^{-i\theta} = 2\cos\theta, so the condition says zz is on the unit circle at angle ±20∘\pm20^\circ.

Step 1. z2−2cos⁡20∘ z+1=0z^2 - 2\cos20^\circ\,z + 1 = 0 has roots z=cos⁡20∘±isin⁡20∘z = \cos20^\circ \pm i\sin20^\circ.

Step 2. By de Moivre, z9=cos⁡(±180∘)+isin⁡(±180∘)=−1z^9 = \cos(\pm180^\circ) + i\sin(\pm180^\circ) = -1 either way, and 1z9=−1\tfrac{1}{z^9} = -1 too.

Step 3. So z9+z−9=−2z^9 + z^{-9} = -2. In general zn+z−n=2cos⁡(20n)∘z^n + z^{-n} = 2\cos(20n)^\circ.

Side note
Where it goes wrong

Reading the argument off arctan⁡ba\arctan\tfrac ba without looking at the quadrant. For w=−1+i3w = -1 + i\sqrt3, arctan⁡(−3)=−60∘\arctan(-\sqrt3) = -60^\circ, but ww is in the second quadrant, so its argument is 120∘120^\circ. The difference matters: w3=8(cos⁡360∘+isin⁡360∘)=8w^3 = 8(\cos360^\circ + i\sin360^\circ) = 8, whereas the wrong angle gives 8cos⁡(−180∘)=−88\cos(-180^\circ) = -8.

Try it
Try it: a sixth power

Compute (3+i)6(\sqrt3 + i)^6.

Show the answer

∣3+i∣=2|\sqrt3 + i| = 2 and the argument is 30∘30^\circ, so (3+i)6=26(cos⁡180∘+isin⁡180∘)=−64(\sqrt3 + i)^6 = 2^6(\cos180^\circ + i\sin180^\circ) = -64.

De Moivre, Roots of Unity and Rotation

Tip
De Moivre's theorem

(cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ\left(\cos\theta + i\sin\theta\right)^n = \cos n\theta + i\sin n\theta; in polar form (reiθ)n=rneinθ\left(re^{i\theta}\right)^n = r^ne^{in\theta}.

Powers become multiplication of angles, which is why complex numbers beat trig identities for high powers: (1+i)8=(2eiπ/4)8=16e2πi=16(1+i)^{8} = \left(\sqrt2 e^{i\pi/4}\right)^8 = 16e^{2\pi i} = 16. Running it backwards gives the nn-th roots: zn=wz^n = w has exactly nn solutions, spaced 360∘n\tfrac{360^\circ}{n} apart on a circle of radius ∣w∣n\sqrt[n]{|w|}.

Tip
Roots of unity

The nn-th roots of unity are ωk=e2πik/n\omega^k = e^{2\pi i k/n}, k=0,…,n−1k = 0,\dots,n-1. They sum to 00 for n≥2n \ge 2, and 1+ω+⋯+ωn−1=01 + \omega + \cdots + \omega^{n-1} = 0.

The vanishing sum is the engine of the roots-of-unity FILTER: averaging f(ωk)f(\omega^k) over all kk keeps exactly the coefficients whose index is divisible by nn. That is how "how many subsets have size divisible by 33" becomes a three-term evaluation of (1+x)n(1+x)^n instead of a long sum. Geometrically the roots are the vertices of a regular nn-gon, which is why they cancel.

Example
Worked: a high power

Compute (1+i3)6(1 + i\sqrt3)^6.

Step 1 — polar form: ∣1+i3∣=2|1 + i\sqrt3| = 2 and the argument is 60∘60^\circ.

Step 2 — De Moivre: 26(cos⁡360∘+isin⁡360∘)=64(1+0i)2^6\left(\cos360^\circ + i\sin360^\circ\right) = 64(1 + 0i).

Step 3 — so the value is 6464. Expanding the binomial would take six terms and several sign slips; the polar route takes one line.

Try it
Try it: cube roots

What are the three cube roots of 88?

Show the answer

Modulus 22, arguments 0∘,120∘,240∘0^\circ, 120^\circ, 240^\circ: 22, −1+i3-1 + i\sqrt3, −1−i3-1 - i\sqrt3.

Example
Worked: the polygon of roots
√2 + √2 i−√2 + √2 i−√2 − √2 i√2 − √2 i
The four fourth roots of −16-16 lie on the circle of radius 2, a quarter-turn apart.

The solutions of z4=−16z^4 = -16 are the vertices of a polygon in the complex plane. Find its area.

Spotting it. The nn solutions of zn=wz^n = w are equally spaced on the circle of radius ∣w∣n\sqrt[n]{|w|}: a regular nn-gon.

Step 1. ∣−16∣=16|-16| = 16, so the radius is 164=2\sqrt[4]{16} = 2. The argument of −16-16 is 180∘180^\circ, so the roots sit at 45∘,135∘,225∘,315∘45^\circ, 135^\circ, 225^\circ, 315^\circ.

Step 2. Four equally spaced points form a square whose diagonals are diameters of length 44. Its area is 12⋅4⋅4=8\tfrac12 \cdot 4 \cdot 4 = 8.

Example
Worked: the roots-of-unity filter

How many subsets of {1,2,…,9}\{1, 2, \dots, 9\} have a number of elements divisible by 33?

Spotting it. The answer is (90)+(93)+(96)+(99)\binom90 + \binom93 + \binom96 + \binom99, every third coefficient of (1+x)9(1 + x)^9. Averaging (1+x)9(1 + x)^9 over the cube roots of unity keeps exactly those terms, because 1+ωk+ω2k1 + \omega^k + \omega^{2k} is 33 when 3∣k3 \mid k and 00 otherwise.

Step 1. 13[(1+1)9+(1+ω)9+(1+ω2)9]\tfrac13\left[(1 + 1)^9 + (1 + \omega)^9 + (1 + \omega^2)^9\right] is the count.

Step 2. 1+ω=−ω21 + \omega = -\omega^2, so (1+ω)9=−ω18=−1(1 + \omega)^9 = -\omega^{18} = -1; likewise (1+ω2)9=−ω9=−1(1 + \omega^2)^9 = -\omega^9 = -1.

Step 3. The count is 13(512−1−1)=170\tfrac13(512 - 1 - 1) = 170. Check: 1+84+84+1=1701 + 84 + 84 + 1 = 170 ✓

Side note
Where it goes wrong

Stopping at the obvious root. "The cube roots of 88" are not just 22: z3=8z^3 = 8 is a cubic and has three roots, 22 and −1±i3-1 \pm i\sqrt3. On the AMC 12 this shows up as a question about the sum, product or polygon of ALL the roots, where the answer depends on the ones you did not see.