5G

Integrating sin² x and cos² x

Using the double angle formulas to integrate sin²x and cos²x, integrals such as sin²(ax), the area of a circle by the substitution x = sin θ, and a summary of the standard integrals.

There is no chain-rule pattern for $\sin^2 x$: the derivative of $\sin x$ is missing. The trick is to rewrite the square using a trig identity so that no squares are left, and then it integrates in one line.

Squares of sine and cosine

From Year 11, $\cos2x = 1 - 2\sin^2 x = 2\cos^2 x - 1$. Rearrange each version:

Power-reducing identities
$$\sin^2 x = \tfrac12(1 - \cos2x) \qquad \cos^2 x = \tfrac12(1 + \cos2x)$$

Now each right side is a constant plus a plain cosine, which you can integrate:

$$\int \sin^2 x\,dx = \frac{x}{2} - \frac{\sin2x}{4} + C \qquad \int \cos^2 x\,dx = \frac{x}{2} + \frac{\sin2x}{4} + C$$

Example 1●

Evaluate $\displaystyle\int_0^{\pi/2} \sin^2 x\,dx$.

$= \dfrac12\displaystyle\int_0^{\pi/2} (1 - \cos2x)\,dx = \dfrac12\left[x - \frac{\sin2x}{2}\right]_0^{\pi/2}$
Replace the square using the identity.
$= \dfrac12\left(\dfrac{\pi}{2} - 0\right) = \dfrac{\pi}{4}$
sin π = 0 and sin 0 = 0.
Example 2●●

Find $\displaystyle\int \cos^2 3x\,dx$.

$\cos^2 3x = \tfrac12(1 + \cos6x)$
The identity works for any angle: replace x by 3x, so 2x becomes 6x.
$\displaystyle\int \cos^2 3x\,dx = \frac{x}{2} + \frac{\sin6x}{12} + C$
Integrating cos 6x gives sin 6x divided by 6.

Other powers

$\tan^2 x$: use $\tan^2 x = \sec^2 x - 1$, so $\displaystyle\int \tan^2 x\,dx = \tan x - x + C$.

Odd powers: keep one factor aside and convert the rest with $\sin^2 x + \cos^2 x = 1$. Then the reverse chain rule finishes it.

Example 3●●●

Evaluate $\displaystyle\int_0^{\pi/2} \sin^3 x\,dx$.

$\sin^3 x = \sin x(1 - \cos^2 x) = \sin x - \sin x\cos^2 x$
Split off one sin x and turn sin² x into 1 − cos² x.
Primitive: $-\cos x + \dfrac{\cos^3 x}{3}$
The second term is (−derivative of cos x) × cos² x, so its primitive is −(−cos³x / 3).
$= \left(0 + 0\right) - \left(-1 + \tfrac13\right) = \tfrac23$

A trigonometric substitution

The area under the semicircle $y = \sqrt{r^2 - x^2}$ should be $\tfrac12\pi r^2$. Calculus can now prove it.

Example 4●●●

Use $x = 2\sin\theta$ to evaluate $\displaystyle\int_0^2 \sqrt{4 - x^2}\,dx$.

$\sqrt{4 - 4\sin^2\theta} = 2\cos\theta$, since $\cos\theta \ge 0$ for $0 \le \theta \le \tfrac{\pi}{2}$.
dx = 2cos θ dθ. Limits: x = 0 gives θ = 0, x = 2 gives θ = π/2.
$= \displaystyle\int_0^{\pi/2} 2\cos\theta \times 2\cos\theta\,d\theta = 4\int_0^{\pi/2} \cos^2\theta\,d\theta$
$= 4 \times \dfrac{\pi}{4} = \pi$
From the think box, the integral of cos² over 0 to π/2 is π/4.
This is a quarter of the circle $x^2 + y^2 = 4$, as expected.
Check: a quarter of a circle of radius 2 has area ¼ × π × 4.

Summary of the standard integrals

IntegrandPrimitive (plus $C$)
$\sin^2 ax$$\dfrac{x}{2} - \dfrac{\sin2ax}{4a}$
$\cos^2 ax$$\dfrac{x}{2} + \dfrac{\sin2ax}{4a}$
$\tan^2 x$$\tan x - x$
$\dfrac{1}{\sqrt{a^2 - x^2}}$$\sin^{-1}\dfrac{x}{a}$
$\dfrac{1}{a^2 + x^2}$$\dfrac1a\tan^{-1}\dfrac{x}{a}$

Your turn

Evaluate $\displaystyle\int_0^{\pi/4} \tan^2 x\,dx$ exactly.

Show the working

$\displaystyle\int_0^{\pi/4} (\sec^2 x - 1)\,dx = \Big[\tan x - x\Big]_0^{\pi/4} = 1 - \dfrac{\pi}{4}$.

Flashcards
$sin^2 x$ in terms of $cos2x$
$\tfrac12(1 - \cos2x)$
$cos^2 x$ in terms of $cos2x$
$\tfrac12(1 + \cos2x)$
$displaystyleint an^2 x,dx$
$\tan x - x + C$
Practice
  1. Which identity is correct?

  2. Evaluate $\displaystyle\int_0^{\pi} \sin^2 x\,dx$, correct to $2$ decimal places.

  3. Evaluate $\displaystyle\int_0^{\pi/4} \cos^2 x\,dx$, correct to $2$ decimal places.

  4. $\displaystyle\int \cos^2 3x\,dx =$

  5. Evaluate $\displaystyle\int_0^{\pi/6} \sin^2 2x\,dx$, correct to $2$ decimal places.

  6. Evaluate $\displaystyle\int_0^{\pi/2} \sin^3 x\,dx$, correct to $2$ decimal places.

  7. Evaluate $\displaystyle\int_0^{\pi/3} \tan^2 x\,dx$, correct to $2$ decimal places.

  8. Which of these is not a primitive of $\sin x\cos x$?

  9. Exam style: use $x = 3\sin\theta$ to evaluate $\displaystyle\int_0^3 \sqrt{9 - x^2}\,dx$, correct to $2$ decimal places.

  10. Exam style: the region under $y = \sin x$ from $x = 0$ to $x = \pi$ is rotated about the $x$-axis. The volume is $\pi\displaystyle\int_0^{\pi} \sin^2 x\,dx$. Find it correct to $2$ decimal places.

Formula sheet