Cambridge International AS & A Level · Topic 3.5
A-Level Maths 9709 / Topic 3.5 / AS & A Level

Rewrite it, then integrate.

Papers 2 and 3. There is no rule for integrating \(\sin^2 x\), \(\cos^2 x\) or \(\tan^2 x\) directly. An identity turns each one into something you can integrate: a constant plus a cosine, or \(\sec^2 x\) minus 1.

The key idea

Squares of sine and cosine are integrated by lowering the power with the double-angle formula: \(\sin^2 x = \dfrac{1}{2}(1 - \cos 2x)\) and \(\cos^2 x = \dfrac{1}{2}(1 + \cos 2x)\). For \(\tan^2 x\) use \(\tan^2 x = \sec^2 x - 1\).

x y π/2π 10.5 y = sin²x y = 0.5 area = π/2
Fig. 1: y = sin²x = 1/2 - (1/2)cos 2x oscillates about the line y = 1/2; over 0 to π the cosine part integrates to zero, so the area is (1/2) × π = π/2
Section 01

Squares of sine and cosine: lower the power.

Rearrange \(\cos 2x = 1 - 2\sin^2 x = 2\cos^2 x - 1\) to express each square in terms of \(\cos 2x\). The square disappears, and \(\cos 2x\) is a standard integral.

Worked example Integrate sine squared
Find \(\displaystyle\int \sin^2 x\,dx\).
  1. Use \(\cos 2x = 1 - 2\sin^2 x\), so \(\sin^2 x = \dfrac{1}{2}(1 - \cos 2x)\).
  2. \(\displaystyle\int \dfrac{1}{2}\,dx = \dfrac{x}{2}\).
  3. \(\displaystyle\int \dfrac{1}{2}\cos 2x\,dx = \dfrac{1}{2}\times\dfrac{1}{2}\sin 2x = \dfrac{1}{4}\sin 2x\), and it is subtracted.
Answer: \(\dfrac{x}{2} - \dfrac{1}{4}\sin 2x + c\)
Worked example The syllabus example: cos squared 2x
Find the exact value of \(\displaystyle\int_0^{\pi/4} \cos^2 2x\,dx\).
  1. Double the angle: \(\cos^2 2x = \dfrac{1}{2}(1 + \cos 4x)\).
  2. Integrate: \(\left[\dfrac{x}{2} + \dfrac{1}{8}\sin 4x\right]_0^{\pi/4}\).
  3. Upper: \(\dfrac{\pi}{8} + \dfrac{1}{8}\sin\pi = \dfrac{\pi}{8}\). Lower: \(0\).
Answer: \(\dfrac{\pi}{8}\)
Your turn
Find the exact value of \(\displaystyle\int_0^{\pi/3} 4\sin^2\dfrac{x}{2}\,dx\).
Examiner trap

\(\displaystyle\int \sin^2 x\,dx\) is NOT \(\dfrac{\sin^3 x}{3}\). The power rule only works on \(x^{n}\); differentiating \(\dfrac{\sin^3 x}{3}\) gives \(\sin^2 x\cos x\), not \(\sin^2 x\). And when the angle is \(2x\), the identity brings in \(\cos 4x\), not \(\cos 2x\).

Section 02

Tan squared and products: find the hidden identity.

Other integrands become standard once you spot the right identity. Ask: which identity turns this into \(\sec^2\), \(\sin\) or \(\cos\) of a single angle?

You seeRewrite asIntegral
\(\tan^2 x\)\(\sec^2 x - 1\)\(\tan x - x + c\)
\(\sin x\cos x\)\(\dfrac{1}{2}\sin 2x\)\(-\dfrac{1}{4}\cos 2x + c\)
\(\dfrac{1}{1+\cos 2x}\)\(\dfrac{1}{2\cos^2 x} = \dfrac{1}{2}\sec^2 x\)\(\dfrac{1}{2}\tan x + c\)
Worked example Tan squared
Find the exact value of \(\displaystyle\int_0^{\pi/4} \tan^2 x\,dx\).
  1. From \(1 + \tan^2 x = \sec^2 x\): \(\tan^2 x = \sec^2 x - 1\).
  2. Integrate: \(\left[\tan x - x\right]_0^{\pi/4}\).
  3. \(\left(1 - \dfrac{\pi}{4}\right) - (0 - 0)\).
Answer: \(1 - \dfrac{\pi}{4}\)
Worked example A double-angle denominator
Find \(\displaystyle\int \dfrac{1}{1+\cos 2x}\,dx\).
  1. \(1 + \cos 2x = 1 + (2\cos^2 x - 1) = 2\cos^2 x\).
  2. So \(\dfrac{1}{1+\cos 2x} = \dfrac{1}{2\cos^2 x} = \dfrac{1}{2}\sec^2 x\).
  3. \(\displaystyle\int \dfrac{1}{2}\sec^2 x\,dx = \dfrac{1}{2}\tan x\).
Answer: \(\dfrac{1}{2}\tan x + c\)
Examiner trap

\(\tan^2 x = \sec^2 x - 1\), not \(\sec^2 x + 1\). Check with \(x = 0\): \(\tan^2 0 = 0\) and \(\sec^2 0 - 1 = 0\). The wrong sign turns \(1 - \dfrac{\pi}{4}\) into \(1 + \dfrac{\pi}{4}\).

Stage 1 · Learn

Check your understanding

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Which expression is equal to \(\sin^2 x\)?

Quick check+10 XP

Find \(\displaystyle\int \tan^2 x\,dx\).

Quick check+10 XP

Which expression is equal to \(\cos^2 3x\)?

Quick check+10 XP

Find \(\displaystyle\int \sin x\cos x\,dx\).

Section 03

Expand first, then use the identities.

A bracket squared often contains \(\sin^2 x + \cos^2 x\), which is 1, and a cross term \(2\sin x\cos x\), which is \(\sin 2x\). Higher even powers are reduced by applying the double-angle formula twice.

Worked example A squared bracket
Find the exact value of \(\displaystyle\int_0^{\pi/2} (\sin x + \cos x)^2\,dx\).
  1. Expand: \(\sin^2 x + 2\sin x\cos x + \cos^2 x\).
  2. Use \(\sin^2 x + \cos^2 x = 1\) and \(2\sin x\cos x = \sin 2x\): the integrand is \(1 + \sin 2x\).
  3. Integrate: \(\left[x - \dfrac{1}{2}\cos 2x\right]_0^{\pi/2}\).
  4. Upper: \(\dfrac{\pi}{2} - \dfrac{1}{2}\cos\pi = \dfrac{\pi}{2} + \dfrac{1}{2}\). Lower: \(0 - \dfrac{1}{2} = -\dfrac{1}{2}\).
  5. Subtract: \(\dfrac{\pi}{2} + \dfrac{1}{2} + \dfrac{1}{2}\).
Answer: \(\dfrac{\pi}{2} + 1\)
Worked example A fourth power (Paper 3 style)
Find the exact value of \(\displaystyle\int_0^{\pi/2} \cos^4 x\,dx\).
  1. \(\cos^4 x = \left(\dfrac{1 + \cos 2x}{2}\right)^2 = \dfrac{1}{4}\left(1 + 2\cos 2x + \cos^2 2x\right)\).
  2. Lower the power again: \(\cos^2 2x = \dfrac{1}{2}(1 + \cos 4x)\).
  3. So \(\cos^4 x = \dfrac{3}{8} + \dfrac{1}{2}\cos 2x + \dfrac{1}{8}\cos 4x\).
  4. Integrate: \(\left[\dfrac{3x}{8} + \dfrac{1}{4}\sin 2x + \dfrac{1}{32}\sin 4x\right]_0^{\pi/2}\). Both sine terms are 0 at each limit.
Answer: \(\dfrac{3\pi}{16}\)
Examiner trap

When you square \(\dfrac{1 + \cos 2x}{2}\), square the 2 in the denominator as well: the factor in front is \(\dfrac{1}{4}\), not \(\dfrac{1}{2}\).

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Paper 1 to 6 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Find the exact value of \(\displaystyle\int_0^{\pi/2} \cos^2 x\,dx\).

Exam style+20 XP

Find the exact value of \(\displaystyle\int_0^{\pi/3} \tan^2 x\,dx\).

Exam style+20 XP

Find the exact value of \(\displaystyle\int_0^{\pi/4} (\cos x - \sin x)^2\,dx\).

Exam style+20 XP

Find the exact value of \(\displaystyle\int_0^{\pi/2} \cos^4 x\,dx\).

Skill unlocked

Trigonometric integrals, sorted.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Squares of sine and cosine, tan squared, a proof with a difference of squares, a product and a volume of revolution.