Lemma
← All topics
Pure mathematics

Trigonometric identities and equations

Rewriting trig expressions into the form you need.

Introduction

An identity is an equation that is true for every value of the variable, such as sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1. Identities let you rewrite a trig expression into whatever form the problem needs: one that can be solved, integrated, or maximised. This topic covers the Pythagorean identities, the reciprocal functions sec⁡\sec, csc⁡\csc and cot⁡\cot, the compound and double angle formulae, and writing acos⁡θ+bsin⁡θa\cos\theta + b\sin\theta as a single wave Rcos⁡(θ−α)R\cos(\theta - \alpha).

Why it matters

You cannot integrate sin⁡2x\sin^2 x as it stands, but sin⁡2x=12(1−cos⁡2x)\sin^2 x = \frac12(1 - \cos2x) integrates at once. You cannot easily find the maximum of 3sin⁡x+4cos⁡x3\sin x + 4\cos x, but written as 5sin⁡(x+0.927)5\sin(x + 0.927) the answer is obviously 55. Identities turn hard problems into easy ones, and they are examined on every A level paper.

Intuitive explanation

IntuitionTwo waves make one wave

Add a sine wave and a cosine wave of the same frequency and you get another wave of that frequency, just shifted and taller. That is what acos⁡θ+bsin⁡θ=Rcos⁡(θ−α)a\cos\theta + b\sin\theta = R\cos(\theta - \alpha) says: RR is the new height and α\alpha the shift. Musicians hear this when two notes of the same pitch combine.

IntuitionWhere the Pythagorean identities come from

On the unit circle (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta) is distance 11 from the origin, so cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1. Divide by cos⁡2θ\cos^2\theta and you get 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta; divide by sin⁡2θ\sin^2\theta and you get cot⁡2θ+1=csc⁡2θ\cot^2\theta + 1 = \csc^2\theta.

Everything lives on the unit circle

Define cos⁡θ\cos\theta and sin⁡θ\sin\theta as the coordinates of the point you reach by walking an angle θ\theta anticlockwise round the circle of radius 11, starting from (1,0)(1, 0). Right-angled triangles then become a special case, and every identity has a picture:

  • Pythagoras: the point is at distance 11 from the centre, so cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1.
  • Symmetry: reflecting in the xx-axis takes θ\theta to −θ-\theta. So cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta and sin⁡(−θ)=−sin⁡θ\sin(-\theta) = -\sin\theta.
  • Quarter turns: rotating by 90°90° sends (x,y)(x, y) to (−y,x)(-y, x). So cos⁡(θ+90°)=−sin⁡θ\cos(\theta + 90°) = -\sin\theta and sin⁡(θ+90°)=cos⁡θ\sin(\theta + 90°) = \cos\theta.
  • tan⁡θ\tan\theta is the gradient of the radius, which is also the height at which the radius line meets the tangent line x=1x = 1. That is where the name comes from.

Formal definitions

DefinitionReciprocal functions
sec⁡θ=1cos⁡θ,csc⁡θ=1sin⁡θ,cot⁡θ=1tan⁡θ=cos⁡θsin⁡θ\sec\theta = \frac{1}{\cos\theta}, \qquad \csc\theta = \frac{1}{\sin\theta}, \qquad \cot\theta = \frac{1}{\tan\theta} = \frac{\cos\theta}{\sin\theta}

Each is undefined where its denominator is zero.

DefinitionIdentity

A statement f(θ)≡g(θ)f(\theta) \equiv g(\theta) that holds for every θ\theta for which both sides are defined.

Notation

  • csc⁡\csc and cosec⁡\operatorname{cosec} are the same function.
  • ≡\equiv marks an identity; == marks an equation to be solved.
  • In Rcos⁡(θ−α)R\cos(\theta - \alpha), take R>0R > 0 and α\alpha acute unless told otherwise.

The formulae

IdentitiesPythagorean
sin⁡2θ+cos⁡2θ≡1,1+tan⁡2θ≡sec⁡2θ,1+cot⁡2θ≡csc⁡2θ\sin^2\theta + \cos^2\theta \equiv 1, \qquad 1 + \tan^2\theta \equiv \sec^2\theta, \qquad 1 + \cot^2\theta \equiv \csc^2\theta
IdentitiesCompound angles
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) &\equiv \sin A\cos B \pm \cos A\sin B \\ \cos(A \pm B) &\equiv \cos A\cos B \mp \sin A\sin B \\ \tan(A \pm B) &\equiv \frac{\tan A \pm \tan B}{1 \mp \tan A\tan B}\end{aligned}
IdentitiesDouble angles
sin⁡2A≡2sin⁡Acos⁡A,cos⁡2A≡cos⁡2A−sin⁡2A≡2cos⁡2A−1≡1−2sin⁡2A,tan⁡2A≡2tan⁡A1−tan⁡2A\sin2A \equiv 2\sin A\cos A, \qquad \cos2A \equiv \cos^2A - \sin^2A \equiv 2\cos^2A - 1 \equiv 1 - 2\sin^2A, \qquad \tan2A \equiv \frac{2\tan A}{1 - \tan^2 A}
IdentitiesHarmonic form

acos⁡θ+bsin⁡θ≡Rcos⁡(θ−α)a\cos\theta + b\sin\theta \equiv R\cos(\theta - \alpha) where R=a2+b2R = \sqrt{a^2 + b^2}, tan⁡α=ba\tan\alpha = \frac ba.

Key results

TheoremMaximum and minimum of acos⁡θ+bsin⁡θa\cos\theta + b\sin\theta

The maximum is a2+b2\sqrt{a^2 + b^2} and the minimum is −a2+b2-\sqrt{a^2 + b^2}.

PropositionPower reduction
sin⁡2A≡12(1−cos⁡2A),cos⁡2A≡12(1+cos⁡2A)\sin^2 A \equiv \tfrac12(1 - \cos2A), \qquad \cos^2A \equiv \tfrac12(1 + \cos 2A)

These are essential for integration.

Proofs

ProofDouble angles from compound angles

Put B=AB = A in sin⁡(A+B)\sin(A + B): sin⁡2A=2sin⁡Acos⁡A\sin2A = 2\sin A\cos A. In cos⁡(A+B)\cos(A + B): cos⁡2A=cos⁡2A−sin⁡2A\cos 2A = \cos^2A - \sin^2A, and replacing sin⁡2A=1−cos⁡2A\sin^2A = 1 - \cos^2A (or the other way) gives the other two forms.

∎
ProofThe harmonic form

Rcos⁡(θ−α)=Rcos⁡αcos⁡θ+Rsin⁡αsin⁡θR\cos(\theta - \alpha) = R\cos\alpha\cos\theta + R\sin\alpha\sin\theta. Matching with acos⁡θ+bsin⁡θa\cos\theta + b\sin\theta: Rcos⁡α=aR\cos\alpha = a and Rsin⁡α=bR\sin\alpha = b. Squaring and adding: R2=a2+b2R^2 = a^2 + b^2. Dividing: tan⁡α=ba\tan\alpha = \frac ba.

∎
Further depthA geometric proof of sin⁡(A+B)\sin(A + B)

Stack a right triangle with angle BB on top of one with angle AA, so the hypotenuse of the lower is the base of the upper, with length cos⁡B\cos B. Reading off heights gives sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B. Many textbooks draw this as a rectangle with the two triangles inside.

Methods

MethodProving an identity

Start from the more complicated side. Convert everything to sin⁡\sin and cos⁡\cos, combine fractions, and use the Pythagorean identity. Never treat the identity as an equation by doing the same thing to both sides.

MethodSolving equations with identities

Aim for an equation in one trig function of one angle:

  • mixed sin⁡2\sin^2 and cos⁡\cos: use sin⁡2=1−cos⁡2\sin^2 = 1 - \cos^2;
  • sec⁡2\sec^2 and tan⁡\tan: use sec⁡2=1+tan⁡2\sec^2 = 1 + \tan^2;
  • cos⁡2x\cos 2x and sin⁡x\sin x: use cos⁡2x=1−2sin⁡2x\cos2x = 1 - 2\sin^2x;
  • sin⁡2x\sin 2x and cos⁡x\cos x: use sin⁡2x=2sin⁡xcos⁡x\sin2x = 2\sin x\cos x and factorise (do not divide by cos⁡x\cos x).
MethodFinding RR and α\alpha

Expand, compare coefficients, then R=a2+b2R = \sqrt{a^2 + b^2} and α\alpha from tan⁡α\tan\alpha. Check signs by thinking about which quadrant α\alpha lies in.

Proving the compound angle formula with distances

Put P=(cos⁡A,sin⁡A)P = (\cos A, \sin A) and Q=(cos⁡B,sin⁡B)Q = (\cos B, \sin B) on the unit circle. The angle between them is A−BA - B.

Method 1 (coordinates):

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).

Method 2 (cosine rule in triangle OPQOPQ, with OP=OQ=1OP = OQ = 1):

PQ2=1+1−2cos⁡(A−B).PQ^2 = 1 + 1 - 2\cos(A - B).

Comparing the two:

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

Every other formula follows from this one:

  • B→−BB \to -B gives cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A\cos B - \sin A\sin B.
  • sin⁡(A+B)=cos⁡(90°−A−B)=cos⁡((90°−A)−B)\sin(A + B) = \cos\left(90° - A - B\right) = \cos\left((90° - A) - B\right), which expands to sin⁡Acos⁡B+cos⁡Asin⁡B\sin A\cos B + \cos A\sin B.
  • tan⁡(A+B)=sin⁡(A+B)cos⁡(A+B)\tan(A + B) = \frac{\sin(A+B)}{\cos(A+B)}. Divide top and bottom by cos⁡Acos⁡B\cos A\cos B.

Half-angle and power-reduction formulas

From cos⁡2θ=2cos⁡2θ−1=1−2sin⁡2θ\cos 2\theta = 2\cos^2\theta - 1 = 1 - 2\sin^2\theta:

cos⁡2θ=1+cos⁡2θ2,sin⁡2θ=1−cos⁡2θ2.\cos^2\theta = \frac{1 + \cos2\theta}{2}, \qquad \sin^2\theta = \frac{1 - \cos 2\theta}{2}.

These lower the power and are essential for integration. They also explain why sin⁡2\sin^2 and cos⁡2\cos^2 both average 12\frac12.

The tt-formulas

With t=tan⁡θ2t = \tan\frac\theta2:

sin⁡θ=2t1+t2,cos⁡θ=1−t21+t2,tan⁡θ=2t1−t2.\sin\theta = \frac{2t}{1 + t^2}, \qquad \cos\theta = \frac{1 - t^2}{1 + t^2}, \qquad \tan\theta = \frac{2t}{1 - t^2}.

For example, sin⁡θ=2sin⁡θ2cos⁡θ2=2tan⁡θ2sec⁡2θ2=2t1+t2\sin\theta = 2\sin\frac\theta2\cos\frac\theta2 = \frac{2\tan\frac\theta2}{\sec^2\frac\theta2} = \frac{2t}{1 + t^2}. Every trig function becomes a rational function of tt, so any rational trig integral becomes a rational integral, which partial fractions can always handle.

Geometrically, the tt-formulas parametrise the unit circle by rational points. Taking t=pqt = \frac pq gives every Pythagorean triple: (q2−p2q2+p2)2+(2pqq2+p2)2=1\left(\frac{q^2 - p^2}{q^2 + p^2}\right)^2 + \left(\frac{2pq}{q^2 + p^2}\right)^2 = 1, so (q2−p2, 2pq, q2+p2)(q^2 - p^2,\ 2pq,\ q^2 + p^2) is a triple. With p=1p = 1 and q=2q = 2 this is (3,4,5)(3, 4, 5).

Product to sum, and sum to product

Adding and subtracting the compound angle formulas:

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

Putting P=A+BP = A + B and Q=A−BQ = A - B reverses them:

sin⁡P+sin⁡Q=2sin⁡P+Q2cos⁡P−Q2,cos⁡P+cos⁡Q=2cos⁡P+Q2cos⁡P−Q2.\sin P + \sin Q = 2\sin\frac{P + Q}{2}\cos\frac{P - Q}{2}, \qquad \cos P + \cos Q = 2\cos\frac{P+Q}2\cos\frac{P - Q}{2}.

In music, two notes of nearly equal frequency sound together as a single note whose loudness throbs. That is sin⁡P+sin⁡Q\sin P + \sin Q becoming a product with a slowly varying factor cos⁡P−Q2\cos\frac{P - Q}{2}, the beats used to tune instruments.

Where harmonic form comes from

asin⁡x+bcos⁡xa\sin x + b\cos x is the dot product (a,b)⋅(sin⁡x,cos⁡x)(a, b)\cdot(\sin x, \cos x). A dot product is ∣u∣∣v∣cos⁡(angle between)|u||v|\cos(\text{angle between}), and ∣(sin⁡x,cos⁡x)∣=1|(\sin x, \cos x)| = 1. So

asin⁡x+bcos⁡x=a2+b2 cos⁡(angle between the vectors),a\sin x + b\cos x = \sqrt{a^2 + b^2}\,\cos(\text{angle between the vectors}),

a single wave of amplitude R=a2+b2R = \sqrt{a^2 + b^2}. This is why any combination of a sine and a cosine of the same frequency is just one shifted sine wave.

Examples

ExampleExact value from a compound angle

sin⁡75°=sin⁡(45°+30°)=22⋅32+22⋅12=6+24\sin 75° = \sin(45° + 30°) = \frac{\sqrt2}{2}\cdot\frac{\sqrt3}{2} + \frac{\sqrt2}{2}\cdot\frac12 = \frac{\sqrt6 + \sqrt2}{4}.

More fully worked examples are in the Worked examples tab.

Common mistakes

Common mistakesin⁡(A+B)≠sin⁡A+sin⁡B\sin(A + B) \neq \sin A + \sin B

Trig functions are not linear. Use the compound angle formula.

Common mistakeChoosing the wrong form of cos⁡2A\cos 2A

Pick the version that leaves only one function: with sin⁡x\sin x in the equation, use 1−2sin⁡2x1 - 2\sin^2x.

Common mistakeDividing by a trig function

sin⁡2x=cos⁡x⇒2sin⁡xcos⁡x−cos⁡x=0⇒cos⁡x(2sin⁡x−1)=0\sin 2x = \cos x \Rightarrow 2\sin x\cos x - \cos x = 0 \Rightarrow \cos x(2\sin x - 1) = 0. Dividing by cos⁡x\cos x loses cos⁡x=0\cos x = 0.

Common mistakeUndefined values

sec⁡x=0\sec x = 0 has no solutions; csc⁡x=12\csc x = \frac12 has none either, since ∣csc⁡x∣≥1|\csc x| \ge 1.

Applications

  • Alternating current: combining voltages of the same frequency uses Rcos⁡(ωt−α)R\cos(\omega t - \alpha).
  • Integration: ∫cos⁡2x dx\int\cos^2x\,dx needs a double angle identity.
  • Optics and sound: interference of waves is described by sum formulae.

Connections

Summary

  • sin⁡2+cos⁡2=1\sin^2 + \cos^2 = 1, 1+tan⁡2=sec⁡21 + \tan^2 = \sec^2, 1+cot⁡2=csc⁡21 + \cot^2 = \csc^2.
  • Compound: sin⁡(A±B)\sin(A \pm B), cos⁡(A±B)\cos(A \pm B), tan⁡(A±B)\tan(A \pm B); double angles follow with B=AB = A.
  • acos⁡θ+bsin⁡θ=Rcos⁡(θ−α)a\cos\theta + b\sin\theta = R\cos(\theta - \alpha), R=a2+b2R = \sqrt{a^2 + b^2}, tan⁡α=ba\tan\alpha = \frac ba; max RR, min −R-R.
  • Prove identities from one side to the other; solve equations by reducing to one function of one angle and factorising.

Worked examples

Try each one yourself first, then open the solution.

Example 1An equation in sec and tan

Solve 2sec⁡2x=3tan⁡x+32\sec^2 x = 3\tan x + 3 for 0°≤x<360°0° \le x < 360°, to 1 decimal place.

Show the solution
  1. 1Use sec⁡2=1+tan⁡2\sec^2 = 1 + \tan^2

    2+2tan⁡2x=3tan⁡x+3⇒2tan⁡2x−3tan⁡x−1=02 + 2\tan^2x = 3\tan x + 3 \Rightarrow 2\tan^2x - 3\tan x - 1 = 0.

  2. 2Quadratic formula

    tan⁡x=3±174=1.7808\tan x = \dfrac{3 \pm \sqrt{17}}{4} = 1.7808 or −0.2808-0.2808.

  3. 3tan⁡x=1.7808\tan x = 1.7808

    x=60.7°x = 60.7° or 240.7°240.7°.

  4. 4tan⁡x=−0.2808\tan x = -0.2808

    x=−15.7°+180°=164.3°x = -15.7° + 180° = 164.3° or 344.3°344.3°.

Answer

x=60.7°,164.3°,240.7°,344.3°x = 60.7°, 164.3°, 240.7°, 344.3°

Example 2Exact value of tan 15°

Find the exact value of tan⁡15°\tan 15°.

Show the solution
  1. 1Write as a difference

    tan⁡15°=tan⁡(45°−30°)\tan15° = \tan(45° - 30°).

  2. 2Formula

    1−131+13=3−13+1\dfrac{1 - \frac{1}{\sqrt3}}{1 + \frac{1}{\sqrt3}} = \dfrac{\sqrt3 - 1}{\sqrt3 + 1}.

  3. 3Rationalise

    (3−1)23−1=4−232=2−3\dfrac{(\sqrt3 - 1)^2}{3 - 1} = \dfrac{4 - 2\sqrt3}{2} = 2 - \sqrt3.

Answer

2−32 - \sqrt3

Example 3Using given ratios

sin⁡A=35\sin A = \frac35 with AA acute, and cos⁡B=−513\cos B = -\frac{5}{13} with BB obtuse. Find sin⁡(A+B)\sin(A + B).

Show the solution
  1. 1Missing ratios

    cos⁡A=45\cos A = \frac45 (acute). sin⁡B=1213\sin B = \frac{12}{13} (obtuse, so positive).

  2. 2Formula

    sin⁡(A+B)=35(−513)+45⋅1213\sin(A + B) = \frac35\left(-\frac5{13}\right) + \frac45\cdot\frac{12}{13}.

  3. 3Evaluate

    =−15+4865=3365= \dfrac{-15 + 48}{65} = \dfrac{33}{65}.

Answer

3365\dfrac{33}{65}

Example 4Double angle equation

Solve cos⁡2x=sin⁡x\cos 2x = \sin x for 0≤x<2π0 \le x < 2\pi.

Show the solution
  1. 1Choose the right form

    1−2sin⁡2x=sin⁡x⇒2sin⁡2x+sin⁡x−1=01 - 2\sin^2 x = \sin x \Rightarrow 2\sin^2x + \sin x - 1 = 0.

  2. 2Factorise

    (2sin⁡x−1)(sin⁡x+1)=0(2\sin x - 1)(\sin x + 1) = 0.

  3. 3Solve

    sin⁡x=12\sin x = \frac12: x=π6,5π6x = \frac\pi6, \frac{5\pi}6. sin⁡x=−1\sin x = -1: x=3π2x = \frac{3\pi}2.

Answer

x=π6,5π6,3π2x = \frac\pi6, \frac{5\pi}6, \frac{3\pi}2

Example 5Harmonic form and its maximum

Write 3cos⁡θ+4sin⁡θ3\cos\theta + 4\sin\theta in the form Rcos⁡(θ−α)R\cos(\theta - \alpha), and find the maximum value and where it first occurs for θ>0\theta > 0.

Show the solution
  1. 1Compare coefficients

    Rcos⁡α=3R\cos\alpha = 3, Rsin⁡α=4R\sin\alpha = 4.

  2. 2Find RR and α\alpha

    R=5R = 5, tan⁡α=43⇒α=0.927\tan\alpha = \frac43 \Rightarrow \alpha = 0.927 rad.

  3. 3Maximum

    Maximum 55 when θ−α=0\theta - \alpha = 0, i.e. θ=0.927\theta = 0.927.

Answer

5cos⁡(θ−0.927)5\cos(\theta - 0.927); maximum 55 at θ=0.927\theta = 0.927

Example 6Solving with the harmonic form

Solve 3sin⁡x−cos⁡x=1\sqrt3\sin x - \cos x = 1 for 0≤x<2π0 \le x < 2\pi.

Show the solution
  1. 1Write as Rsin⁡(x−α)R\sin(x - \alpha)

    Rcos⁡α=3R\cos\alpha = \sqrt3, Rsin⁡α=1R\sin\alpha = 1: R=2R = 2, α=π6\alpha = \frac\pi6. So 2sin⁡(x−π6)=12\sin\left(x - \frac\pi6\right) = 1.

  2. 2Adjust the interval

    −π6≤x−π6<11π6-\frac\pi6 \le x - \frac\pi6 < \frac{11\pi}6;  sin⁡u=12⇒u=π6,5π6\ \sin u = \frac12 \Rightarrow u = \frac\pi6, \frac{5\pi}6.

  3. 3Back to xx

    x=π3x = \frac\pi3 or x=πx = \pi.

Answer

x=π3,πx = \frac\pi3, \pi

Example 7Proving an identity

Prove that 1−cos⁡2θsin⁡2θ≡tan⁡θ\dfrac{1 - \cos2\theta}{\sin2\theta} \equiv \tan\theta.

Show the solution
  1. 1Start with the left side

    Use cos⁡2θ=1−2sin⁡2θ\cos2\theta = 1 - 2\sin^2\theta and sin⁡2θ=2sin⁡θcos⁡θ\sin2\theta = 2\sin\theta\cos\theta.

  2. 2Substitute

    1−(1−2sin⁡2θ)2sin⁡θcos⁡θ=2sin⁡2θ2sin⁡θcos⁡θ\dfrac{1 - (1 - 2\sin^2\theta)}{2\sin\theta\cos\theta} = \dfrac{2\sin^2\theta}{2\sin\theta\cos\theta}.

  3. 3Simplify

    =sin⁡θcos⁡θ=tan⁡θ= \dfrac{\sin\theta}{\cos\theta} = \tan\theta. ■\blacksquare

Answer

LHS =tan⁡θ= \tan\theta

Example 8An identity with reciprocal functions

Prove that cos⁡θ1−sin⁡θ+cos⁡θ1+sin⁡θ≡2sec⁡θ\dfrac{\cos\theta}{1 - \sin\theta} + \dfrac{\cos\theta}{1 + \sin\theta} \equiv 2\sec\theta.

Show the solution
  1. 1Common denominator

    cos⁡θ(1+sin⁡θ)+cos⁡θ(1−sin⁡θ)1−sin⁡2θ\dfrac{\cos\theta(1 + \sin\theta) + \cos\theta(1 - \sin\theta)}{1 - \sin^2\theta}.

  2. 2Simplify

    Numerator 2cos⁡θ2\cos\theta; denominator cos⁡2θ\cos^2\theta.

  3. 3Finish

    2cos⁡θcos⁡2θ=2cos⁡θ=2sec⁡θ\dfrac{2\cos\theta}{\cos^2\theta} = \dfrac{2}{\cos\theta} = 2\sec\theta. ■\blacksquare

Answer

LHS =2sec⁡θ= 2\sec\theta

Beyond the specification

University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.

Trigonometry through complex exponentials (university)

TheoremEuler's formula
eiθ=cos⁡θ+isin⁡θ.e^{i\theta} = \cos\theta + i\sin\theta.

With exp⁡\exp defined by its power series (see Differentiation), separating the even and odd powers of iθi\theta gives exactly the series for cos⁡θ\cos\theta and isin⁡θi\sin\theta. Inverting:

cos⁡θ=eiθ+e−iθ2,sin⁡θ=eiθ−e−iθ2i.\cos\theta = \frac{e^{i\theta} + e^{-i\theta}}{2}, \qquad \sin\theta = \frac{e^{i\theta} - e^{-i\theta}}{2i}.

Every identity is now algebra

  • Compound angles: ei(A+B)=eiAeiBe^{i(A + B)} = e^{iA}e^{iB}. Expanding the right side and comparing real and imaginary parts gives both cos⁡(A+B)\cos(A + B) and sin⁡(A+B)\sin(A+B) at once.
  • De Moivre: (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta, so multiple-angle formulas come straight from the binomial theorem. For example cos⁡4θ=Re⁡(c+is)4=c4−6c2s2+s4\cos 4\theta = \operatorname{Re}(c + is)^4 = c^4 - 6c^2s^2 + s^4.
  • Powers to multiple angles: cos⁡3θ=(eiθ+e−iθ2)3=18(e3iθ+3eiθ+3e−iθ+e−3iθ)=cos⁡3θ+3cos⁡θ4\cos^3\theta = \left(\frac{e^{i\theta} + e^{-i\theta}}{2}\right)^3 = \frac{1}{8}\left(e^{3i\theta} + 3e^{i\theta} + 3e^{-i\theta} + e^{-3i\theta}\right) = \frac{\cos 3\theta + 3\cos\theta}{4}.
  • Sums: ∑k=0n−1cos⁡kθ=Re⁡∑k=0n−1eikθ\sum_{k=0}^{n-1}\cos k\theta = \operatorname{Re}\sum_{k=0}^{n-1}e^{ik\theta}, a geometric series (compare question Q52).
ExampleA sum that looks impossible
cos⁡2π5+cos⁡4π5=−12.\cos\frac{2\pi}{5} + \cos\frac{4\pi}{5} = -\frac12.

Why: the fifth roots of unity 1,ω,ω2,ω3,ω41, \omega, \omega^2, \omega^3, \omega^4 (with ω=e2πi/5\omega = e^{2\pi i/5}) sum to 00, since 1+ω+⋯+ω4=ω5−1ω−1=01 + \omega + \cdots + \omega^4 = \frac{\omega^5 - 1}{\omega - 1} = 0. Taking real parts, and using cos⁡6π5=cos⁡4π5\cos\frac{6\pi}5 = \cos\frac{4\pi}{5} and cos⁡8π5=cos⁡2π5\cos\frac{8\pi}{5} = \cos\frac{2\pi}5:

1+2cos⁡2π5+2cos⁡4π5=0.1 + 2\cos\frac{2\pi}5 + 2\cos\frac{4\pi}5 = 0.

Hyperbolic functions are trig functions in disguise

cos⁡(ix)=e−x+ex2=cosh⁡x\cos(ix) = \frac{e^{-x} + e^{x}}{2} = \cosh x and sin⁡(ix)=isinh⁡x\sin(ix) = i\sinh x. So every trig identity becomes a hyperbolic identity on replacing θ\theta by ixix. This is Osborn's rule: change each sin⁡2\sin^2 to −sinh⁡2-\sinh^2. For example cos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1 becomes cosh⁡2x−sinh⁡2x=1\cosh^2x - \sinh^2x = 1.

What sine and cosine really are (university)

School defines sin⁡\sin and cos⁡\cos through triangles and angles, but "angle" is itself defined via arc length, which needs integration. To avoid circularity, analysis defines them in one of three equivalent ways.

1. Power series:

sin⁡x=∑n=0∞(−1)nx2n+1(2n+1)!,cos⁡x=∑n=0∞(−1)nx2n(2n)!.\sin x = \sum_{n=0}^\infty\frac{(-1)^nx^{2n+1}}{(2n+1)!}, \qquad \cos x = \sum_{n=0}^\infty\frac{(-1)^nx^{2n}}{(2n)!}.

2. A differential equation: sin⁡\sin is the unique solution of y′′=−yy'' = -y with y(0)=0y(0) = 0 and y′(0)=1y'(0) = 1; cos⁡\cos is the solution with y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0.

3. Inverting an integral: arcsin⁡x=∫0xdt1−t2\arcsin x = \int_0^x\frac{dt}{\sqrt{1 - t^2}}, which is the arc length along the unit circle. sin⁡\sin is then its inverse.

TheoremPythagoras, from calculus alone

If s′=cs' = c and c′=−sc' = -s, with s(0)=0s(0) = 0 and c(0)=1c(0) = 1, then s2+c2=1s^2 + c^2 = 1 for all xx.

Proof

ddx(s2+c2)=2ss′+2cc′=2sc−2cs=0\frac{d}{dx}(s^2 + c^2) = 2ss' + 2cc' = 2sc - 2cs = 0, so s2+c2s^2 + c^2 is constant, equal to its value 0+1=10 + 1 = 1 at x=0x = 0.

∎
TheoremThe addition formula, from calculus alone

For fixed aa, let g(x)=(sin⁡(x+a)−sin⁡xcos⁡a−cos⁡xsin⁡a)2+(cos⁡(x+a)−cos⁡xcos⁡a+sin⁡xsin⁡a)2g(x) = \big(\sin(x + a) - \sin x\cos a - \cos x\sin a\big)^2 + \big(\cos(x + a) - \cos x\cos a + \sin x\sin a\big)^2. Differentiating, every term cancels, so g′=0g' = 0. Since g(0)=0g(0) = 0, g≡0g \equiv 0, and both brackets vanish identically.

Defining π\pi

cos⁡0=1\cos 0 = 1 and the series gives cos⁡2<0\cos 2 < 0, so by the intermediate value theorem cos⁡\cos has a first positive zero. Define π\pi to be twice it. From the addition formulas one then proves that sin⁡\sin and cos⁡\cos have period 2π2\pi, and that the circle has circumference 2π2\pi. The familiar facts become theorems rather than assumptions.

Rotations

The addition formulas say exactly that rotation matrices compose by adding angles:

(cos⁡A−sin⁡Asin⁡Acos⁡A)(cos⁡B−sin⁡Bsin⁡Bcos⁡B)=(cos⁡(A+B)−sin⁡(A+B)sin⁡(A+B)cos⁡(A+B)).\begin{pmatrix}\cos A & -\sin A\\ \sin A & \cos A\end{pmatrix}\begin{pmatrix}\cos B & -\sin B\\ \sin B & \cos B\end{pmatrix} = \begin{pmatrix}\cos(A+B) & -\sin(A+B)\\ \sin(A+B) & \cos(A+B)\end{pmatrix}.

These matrices form the group SO(2)SO(2) of rotations of the plane, which is isomorphic to the unit circle in C\mathbb{C} under multiplication. Trigonometry is the study of this group.

Fourier series: building any wave from sines (university)

Fourier (1807) claimed that almost any periodic function, even one with corners or jumps, is a sum of sines and cosines. The tool that makes this work is a trigonometric identity.

TheoremOrthogonality

For positive integers m,nm, n:

∫−ππsin⁡mxsin⁡nx dx={πm=n0m≠n,∫−ππsin⁡mxcos⁡nx dx=0.\int_{-\pi}^{\pi}\sin mx\sin nx\,dx = \begin{cases}\pi & m = n\\ 0 & m \ne n\end{cases}, \qquad \int_{-\pi}^\pi\sin mx\cos nx\,dx = 0.
Proof

Product to sum: 2sin⁡mxsin⁡nx=cos⁡(m−n)x−cos⁡(m+n)x2\sin mx\sin nx = \cos(m - n)x - \cos(m + n)x. Over a full period, ∫cos⁡kx dx=0\int\cos kx\,dx = 0 for every integer k≠0k \ne 0. If m=nm = n the first term is cos⁡0=1\cos0 = 1, which integrates to 2π2\pi. The other integral is similar.

∎

So the functions sin⁡nx\sin nx and cos⁡nx\cos nx behave like perpendicular unit vectors in an infinite-dimensional space, and the integral plays the role of the dot product. To find how much of sin⁡nx\sin nx a function contains, "dot" with it:

f(x)=a02+∑n≥1(ancos⁡nx+bnsin⁡nx),bn=1π∫−ππf(x)sin⁡nx dx,f(x) = \frac{a_0}{2} + \sum_{n\ge1}(a_n\cos nx + b_n\sin nx), \qquad b_n = \frac1\pi\int_{-\pi}^\pi f(x)\sin nx\,dx,

and similarly for ana_n.

ExampleThe sawtooth f(x)=xf(x) = x on (−π,π)(-\pi, \pi)

ff is odd, so every an=0a_n = 0. Integrating by parts,

bn=1π∫−ππxsin⁡nx dx=2(−1)n+1n,b_n = \frac1\pi\int_{-\pi}^{\pi}x\sin nx\,dx = \frac{2(-1)^{n+1}}{n},

so

x=2(sin⁡x−sin⁡2x2+sin⁡3x3−⋯ ).x = 2\left(\sin x - \frac{\sin 2x}{2} + \frac{\sin3x}{3} - \cdots\right).

At x=π2x = \frac\pi2: π2=2(1−13+15−⋯ )\frac\pi2 = 2\left(1 - \frac13 + \frac15 - \cdots\right), which is Leibniz's series π4=1−13+15−17+⋯\frac\pi4 = 1 - \frac13 + \frac15 - \frac17 + \cdots.

TheoremParseval's identity
1π∫−ππf(x)2 dx=a022+∑n≥1(an2+bn2).\frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx = \frac{a_0^2}{2} + \sum_{n\ge1}\left(a_n^2 + b_n^2\right).

This is Pythagoras' theorem in infinitely many dimensions.

ExampleThe Basel problem, solved by Fourier

For f(x)=xf(x) = x: the left side is 1π⋅2π33=2π23\frac1\pi\cdot\frac{2\pi^3}{3} = \frac{2\pi^2}{3}, and the right side is ∑4n2\sum\frac{4}{n^2}. So

∑n=1∞1n2=π26.\sum_{n=1}^\infty\frac{1}{n^2} = \frac{\pi^2}{6}.
Mathematical curiosityGibbs phenomenon

Near a jump, the partial sums of a Fourier series always overshoot by about 9%9\% of the jump, however many terms you take. The overshoot gets narrower but never shorter. You can see it in the diagram above as the "ears" next to each jump.

Euler's infinite product for sine (university)

A polynomial with roots r1,…,rnr_1, \ldots, r_n and value 11 at 00 factorises as (1−xr1)⋯(1−xrn)\left(1 - \frac{x}{r_1}\right)\cdots\left(1 - \frac{x}{r_n}\right). Euler (1735) boldly treated sin⁡xx\frac{\sin x}{x} as a "polynomial of infinite degree". Its roots are ±π,±2π,…\pm\pi, \pm2\pi, \ldots and its value at 00 is 11, so he wrote

sin⁡xx=(1−x2π2)(1−x24π2)(1−x29π2)⋯=∏n=1∞(1−x2n2π2).\frac{\sin x}{x} = \left(1 - \frac{x^2}{\pi^2}\right)\left(1 - \frac{x^2}{4\pi^2}\right)\left(1 - \frac{x^2}{9\pi^2}\right)\cdots = \prod_{n=1}^\infty\left(1 - \frac{x^2}{n^2\pi^2}\right).

The Basel problem, Euler's way

Compare the coefficients of x2x^2. On the left, from sin⁡xx=1−x26+⋯\frac{\sin x}{x} = 1 - \frac{x^2}{6} + \cdots, it is −16-\frac16. On the right, expanding the product, it is −∑1n2π2-\sum\frac{1}{n^2\pi^2}. Hence

∑n=1∞1n2=π26.\sum_{n=1}^\infty\frac{1}{n^2} = \frac{\pi^2}{6}.

This solved a problem that had defeated the Bernoullis for decades, and made Euler famous at 28.

Wallis's product, as a special case

At x=π2x = \frac\pi2: 2π=∏(1−14n2)=∏(2n−1)(2n+1)(2n)2\frac{2}{\pi} = \prod\left(1 - \frac{1}{4n^2}\right) = \prod\frac{(2n-1)(2n+1)}{(2n)^2}. Inverting:

π2=2⋅21⋅3⋅4⋅43⋅5⋅6⋅65⋅7⋯\frac\pi2 = \frac{2\cdot2}{1\cdot3}\cdot\frac{4\cdot4}{3\cdot5}\cdot\frac{6\cdot 6}{5\cdot7}\cdots

Making it rigorous

Euler's leap is not automatically valid. exsin⁡xxe^x\frac{\sin x}{x} has the same roots and the same value at 00, but a different product. The justification is the Weierstrass factorisation theorem of complex analysis, which says how an entire function is determined by its zeros up to a factor eg(x)e^{g(x)}. For sin⁡xx\frac{\sin x}{x}, symmetry and growth estimates force g=0g = 0. A self-contained real proof uses the identity sin⁡x=2nsin⁡x2n∏cos⁡x2k\sin x = 2^n\sin\frac{x}{2^n}\prod\cos\frac{x}{2^k} (question Q59) and factorises it carefully.

Mathematical curiosityMore from the same product

Comparing the x4x^4 coefficients gives ∑1n4=π490\sum\frac{1}{n^4} = \frac{\pi^4}{90}. In general, ζ(2k)\zeta(2k) is a rational multiple of π2k\pi^{2k}. But nobody knows a closed form for ζ(3)=∑1n3\zeta(3) = \sum\frac{1}{n^3}. Apéry proved it irrational only in 1978.

Trigonometry on a sphere (university)

On the Earth, "straight lines" are great circles, the shortest paths, which is why flights from London to Los Angeles pass over Greenland. Triangles made of great-circle arcs obey a different trigonometry.

TheoremThe spherical cosine rule

On a sphere of radius 11, a triangle with sides a,b,ca, b, c (measured as angles at the centre) and angle CC opposite cc satisfies

cos⁡c=cos⁡acos⁡b+sin⁡asin⁡bcos⁡C.\cos c = \cos a\cos b + \sin a\sin b\cos C.
Proof

Put the vertex CC at the north pole, with the other vertices at unit vectors u\mathbf u and v\mathbf v. In coordinates, u=(sin⁡a,0,cos⁡a)\mathbf u = (\sin a, 0, \cos a) and v=(sin⁡bcos⁡C,sin⁡bsin⁡C,cos⁡b)\mathbf v = (\sin b\cos C, \sin b\sin C, \cos b). Then

cos⁡c=u⋅v=sin⁡asin⁡bcos⁡C+cos⁡acos⁡b.\cos c = \mathbf u\cdot\mathbf v = \sin a\sin b\cos C + \cos a\cos b.
∎

For small triangles, cos⁡x≈1−x22\cos x \approx 1 - \frac{x^2}{2} and sin⁡x≈x\sin x \approx x, and the formula reduces to the ordinary cosine rule c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C. Flat geometry is the small-scale limit of spherical geometry.

TheoremGirard's theorem

The angles of a spherical triangle add up to more than π\pi, and the excess equals the area (on a unit sphere):

A+B+C−π=Area.A + B + C - \pi = \text{Area}.

Example: a triangle with vertices at the north pole and two points on the equator a quarter-turn apart has three right angles. The angle sum is 3π2\frac{3\pi}2, the excess is π2\frac\pi2, and the area is indeed 18\frac18 of the sphere's 4π4\pi.

Beyond the syllabusNon-Euclidean geometry

On a surface of constant negative curvature (the hyperbolic plane) the angles of a triangle add to less than π\pi, and the cosine rule becomes cosh⁡c=cosh⁡acosh⁡b−sinh⁡asinh⁡bcos⁡C\cosh c = \cosh a\cosh b - \sinh a\sinh b\cos C. Gauss, Bolyai and Lobachevsky discovered this geometry in the 1820s. It showed that Euclid's parallel postulate cannot be proved from his other axioms. Einstein's general relativity uses exactly this kind of curved geometry to describe gravity.

Why does this work?

Why does this work?Why does cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A - B) = \cos A\cos B + \sin A\sin B?

Take unit vectors at angles AA and BB: u=(cos⁡A,sin⁡A)\mathbf u = (\cos A, \sin A), v=(cos⁡B,sin⁡B)\mathbf v = (\cos B, \sin B). The angle between them is A−BA - B, so their scalar product is cos⁡(A−B)\cos(A - B). Computing it in components gives cos⁡Acos⁡B+sin⁡Asin⁡B\cos A\cos B + \sin A\sin B. Every other compound angle formula follows by substitutions such as B→−BB \to -B and A→π2−AA \to \frac\pi2 - A.

Beyond the syllabus

Beyond the syllabusChebyshev polynomials

cos⁡nθ\cos n\theta is a polynomial in cos⁡θ\cos\theta: cos⁡2θ=2c2−1\cos2\theta = 2c^2 - 1, cos⁡3θ=4c3−3c\cos3\theta = 4c^3 - 3c, and in general Tn+1(c)=2cTn(c)−Tn−1(c)T_{n+1}(c) = 2cT_n(c) - T_{n-1}(c). These Chebyshev polynomials oscillate between −1-1 and 11 on [−1,1][-1, 1] as evenly as possible, which makes them the best choice of interpolation points and the basis of modern numerical approximation.

Beyond the syllabusTrigonometry from complex exponentials

With eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta, all identities become algebra: cos⁡θ=eiθ+e−iθ2\cos\theta = \frac{e^{i\theta} + e^{-i\theta}}2, and ei(A+B)=eiAeiBe^{i(A + B)} = e^{iA}e^{iB} gives both compound angle formulae at once (real and imaginary parts).

Mathematical curiosities

Mathematical curiosityMorrie's law

cos⁡20°cos⁡40°cos⁡80°=18\cos20°\cos40°\cos80° = \frac18. Multiply by sin⁡20°\sin 20° and apply 2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin2x three times.

Further exploration

Further explorationInvestigations
  • Show sin⁡x+sin⁡2x+⋯+sin⁡nx=sin⁡nx2sin⁡(n+1)x2sin⁡x2\sin x + \sin 2x + \dots + \sin nx = \dfrac{\sin\frac{nx}2\sin\frac{(n + 1)x}{2}}{\sin\frac x2}.
  • Express tan⁡3θ\tan 3\theta in terms of tan⁡θ\tan\theta, and deduce that tan⁡π9\tan\frac\pi9 is a root of a cubic.
Now practise60 questions from Very easy to Extreme →