6D

Integrating trigonometric functions

Standard integrals of sin, cos and sec squared, definite integrals, finding a primitive from an initial condition, the integral of tan x, and the reverse chain rule with trigonometric functions.

Integration is differentiation run backwards, so every derivative from 6B gives you an integral for free. The only traps are a minus sign and a division you must remember to do.

Standard integrals

Read 6B backwards. Since $\dfrac{d}{dx}\sin x = \cos x$, a primitive of $\cos x$ is $\sin x$. Since $\dfrac{d}{dx}\cos x = -\sin x$, a primitive of $\sin x$ is $-\cos x$.

Standard trigonometric integrals
$$\int \cos(ax + b)\,dx = \frac1a\sin(ax + b) + C$$ $$\int \sin(ax + b)\,dx = -\frac1a\cos(ax + b) + C$$ $$\int \sec^2(ax + b)\,dx = \frac1a\tan(ax + b) + C$$
Example 1●

Find (a) $\displaystyle\int (4\cos x + 2\sin x)\,dx$ (b) $\displaystyle\int \sin(3x + 1)\,dx$ (c) $\displaystyle\int \sec^2\frac{x}{2}\,dx$.

(a) $4\sin x - 2\cos x + C$
Integrate term by term. The integral of 2 sin x is 2 × (−cos x).
(b) $-\tfrac13\cos(3x + 1) + C$
Here a = 3: divide by 3, and the sine integral brings a minus sign.
(c) $2\tan\dfrac{x}{2} + C$
Here a = ½, and dividing by ½ is multiplying by 2.

Definite integrals

Evaluate exactly as before: find a primitive, substitute the top limit, subtract the bottom. The limits are in radians, so you'll need your exact values.

Example 2●●

Evaluate (a) $\displaystyle\int_0^{\frac{\pi}{6}} \cos 3x\,dx$ and (b) $\displaystyle\int_0^{\frac{\pi}{8}} \sec^2 2x\,dx$.

(a) $\Big[\tfrac13\sin 3x\Big]_0^{\frac{\pi}{6}} = \tfrac13\sin\dfrac{\pi}{2} - \tfrac13\sin 0 = \tfrac13$
Primitive of cos 3x is ⅓ sin 3x. At the top limit, 3 × π/6 = π/2.
(b) $\Big[\tfrac12\tan 2x\Big]_0^{\frac{\pi}{8}} = \tfrac12 \times 1 - 0 = \tfrac12$
Primitive of sec² 2x is ½ tan 2x. At the top, 2 × π/8 = π/4, and tan(π/4) = 1.

Finding a function from its derivative

Integrating gives a whole family of functions, one for each value of $C$. One known point picks out the right one.

Example 3●●

A curve has $f'(x) = 6\cos 2x$, and passes through $\left(\tfrac{\pi}{4}, 1\right)$. Find $f(x)$.

$f(x) = 3\sin 2x + C$
Integrate, dividing by 2.
$1 = 3\sin\dfrac{\pi}{2} + C = 3 + C$, so $C = -2$.
Substitute the known point to find C.
$f(x) = 3\sin 2x - 2$

tan x and the reverse chain rule

The chain rule forms from 6B also run backwards. If you can see a function and its derivative sitting in the integral, you can integrate it.

Reverse chain rule forms
$$\int f'(x)\cos f(x)\,dx = \sin f(x) + C \qquad \int f'(x)\sin f(x)\,dx = -\cos f(x) + C$$ $$\int f'(x)\sec^2 f(x)\,dx = \tan f(x) + C \qquad \int f'(x)\,[f(x)]^n\,dx = \frac{[f(x)]^{n+1}}{n+1} + C$$

There is no simple antiderivative of $\tan x$ to memorise from 6B, but writing it as a fraction shows a function over its derivative, which integrates to a log:

Example 4●●

Find $\displaystyle\int \tan x\,dx$.

$\displaystyle\int \frac{\sin x}{\cos x}\,dx$
Write tan as sin over cos.
$= -\displaystyle\int \frac{-\sin x}{\cos x}\,dx$
The derivative of cos x is −sin x. Put in two minus signs so the top is exactly the derivative of the bottom.
$= -\ln|\cos x| + C$
∫ f′(x)/f(x) dx = ln|f(x)| + C.
Example 5●●●

Find (a) $\displaystyle\int 3x^2\cos(x^3)\,dx$ and (b) $\displaystyle\int \cos x\sin^4 x\,dx$.

(a) $\sin(x^3) + C$
The inside is x³ and its derivative 3x² is right there. So this is the reverse of differentiating sin(x³).
(b) $\dfrac{\sin^5 x}{5} + C$
sin⁴x is (sin x)⁴, and cos x is the derivative of sin x. Use the power form with f(x) = sin x and n = 4.

Your turn

Evaluate $\displaystyle\int_0^{\frac{\pi}{2}} \sin\left(x + \tfrac{\pi}{2}\right)dx$.

Show the working

A primitive is $-\cos\left(x + \tfrac{\pi}{2}\right)$. At $\tfrac{\pi}{2}$: $-\cos\pi = 1$. At $0$: $-\cos\tfrac{\pi}{2} = 0$. So the answer is $1 - 0 = 1$.

Flashcards
$displaystyleint sin ax,dx$
$-\dfrac1a\cos ax + C$
$displaystyleint cos ax,dx$
$\dfrac1a\sin ax + C$
$displaystyleint sec^2 ax,dx$
$\dfrac1a\tan ax + C$
$displaystyleint an x,dx$
$-\ln|\cos x| + C$
Practice
  1. $\displaystyle\int \sin 3x\,dx =$

  2. Evaluate $\displaystyle\int_0^{\frac{\pi}{2}} \cos x\,dx$.

  3. Evaluate $\displaystyle\int_0^{\frac{\pi}{4}} \sec^2 x\,dx$.

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

  5. $\displaystyle\int \cos(2x + 1)\,dx =$

  6. $f'(x) = \cos x$ and $f\left(\tfrac{\pi}{2}\right) = 5$. Find $f(\pi)$.

  7. Evaluate $\displaystyle\int_0^{\frac{\pi}{4}} \tan x\,dx$ correct to two decimal places.

  8. $\displaystyle\int x\sin(x^2)\,dx =$

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

  10. Exam style: differentiate $x\sin x$, and hence evaluate $\displaystyle\int_0^{\frac{\pi}{2}} x\cos x\,dx$ correct to two decimal places.

Formula sheet