Mathematics/Lessons/Integration/Integrating Standard Functions
Pure · Integration · Year 2

Integrating Standard Functions

Every differentiation rule for $e^x$, $\ln x$ and the trig functions reverses into an integration rule — learn the results, and combine them term by term.

8 min read 4 worked examples

The standard results

So far, integration has meant reversing the power rule on polynomials. Year 2 introduces derivatives of $e^x$, $\ln x$ and the trig functions — and each of those differentiation results reverses directly into an integration result, with no extra technique required.

Five results worth memorising

$\displaystyle\int e^x\,dx = e^x+c$

$\displaystyle\int \dfrac1x\,dx = \ln|x|+c \quad (x\neq0)$

$\displaystyle\int \sin x\,dx = -\cos x+c$

$\displaystyle\int \cos x\,dx = \sin x+c$

$\displaystyle\int \sec^2x\,dx = \tan x+c$

The modulus in $\ln|x|$ matters: $\ln x$ is only defined for $x>0$, but $\dfrac1x$ is a perfectly good function for $x<0$ too, and $\ln|x|$ is the antiderivative that works on both sides of the origin. Also easy to lose a sign: differentiating $-\cos x$ gives $+\sin x$, so it's $-\cos x$ (not $\cos x$) that integrates $\sin x$.

Combining terms

Just as with $x^n$, a sum or difference of standard functions is integrated term by term, and constant multiples carry straight through. There's no new machinery here — only more functions in the toolkit alongside $x^n$.

Worked example 1

Combining $e^x$ and $1/x$
Find $\displaystyle\int \left(3e^x - \dfrac2x\right)dx$.
MethodIntegrate each term using the standard results
1
$\displaystyle\int 3e^x\,dx = 3e^x$.
Constant multiples carry through unchanged.
2
$\displaystyle\int \dfrac2x\,dx = 2\ln|x|$.
Apply the standard 1/x result.
3
$\displaystyle\int \left(3e^x - \dfrac2x\right)dx = 3e^x - 2\ln|x| + c$.
Combine both terms, adding a single constant of integration.
▪ solved

Worked example 2

A definite integral with two trig terms
Find the exact value of $\displaystyle\int_0^{\pi/3} \left(2\sin x + \sec^2x\right)dx$.
MethodFind the antiderivative, then evaluate between the limits
1
$\displaystyle\int \left(2\sin x + \sec^2x\right)dx = -2\cos x + \tan x$.
Apply the standard sin and sec² results.
2
At $x=\dfrac\pi3$: $-2\cos\dfrac\pi3+\tan\dfrac\pi3 = -2\left(\dfrac12\right)+\sqrt3 = -1+\sqrt3$.
Substitute the upper limit, using exact trig values.
3
At $x=0$: $-2\cos0+\tan0 = -2(1)+0=-2$.
Substitute the lower limit.
4
$\displaystyle\int_0^{\pi/3}\left(2\sin x+\sec^2x\right)dx = (-1+\sqrt3)-(-2) = 1+\sqrt3$.
Subtract: value at upper limit minus value at lower limit.
▪ solved

Worked example 3

Rewriting an algebraic fraction first
Find $\displaystyle\int \dfrac{x^2+2}{x}\,dx$.
MethodSplit the fraction into two integrable terms before integrating
1
$\dfrac{x^2+2}{x} = \dfrac{x^2}{x}+\dfrac2x = x+\dfrac2x$.
Divide each term of the numerator by x separately — this integral isn't in a standard form until it's split.
2
$\displaystyle\int \left(x+\dfrac2x\right)dx = \dfrac{x^2}2+2\ln|x|+c$.
Integrate the polynomial term with the power rule, and the 1/x term with the standard result.
▪ solved
Look for this pattern

Whenever an integrand is a fraction with a polynomial numerator and a monomial denominator, dividing through term by term is usually the fastest route to a standard-form integral.

Worked example 4

Exact value with a negative result · Challenge
Find the exact value of $\displaystyle\int_{\pi/6}^{\pi/2} \left(3\cos x - 4\sin x\right)dx$.
MethodIntegrate, then evaluate carefully — the answer needn't be positive
1
$\displaystyle\int \left(3\cos x - 4\sin x\right)dx = 3\sin x + 4\cos x$.
Apply the standard sin and cos results; note the sign on the cos term flips because ∫sin x dx = −cos x.
2
At $x=\dfrac\pi2$: $3\sin\dfrac\pi2+4\cos\dfrac\pi2 = 3(1)+4(0)=3$.
Substitute the upper limit.
3
At $x=\dfrac\pi6$: $3\sin\dfrac\pi6+4\cos\dfrac\pi6 = 3\left(\dfrac12\right)+4\left(\dfrac{\sqrt3}2\right) = \dfrac32+2\sqrt3$.
Substitute the lower limit, using exact trig values.
4
$\displaystyle\int_{\pi/6}^{\pi/2}\left(3\cos x-4\sin x\right)dx = 3-\left(\dfrac32+2\sqrt3\right) = \dfrac32-2\sqrt3$.
Subtract; since 2√3 ≈ 3.46 > 1.5, the exact value is negative.
▪ solved
A negative definite integral is not an error

A definite integral gives the signed area between the curve and the x-axis. Where the curve dips below the axis more than it rises above it over the interval, the exact value comes out negative — that's a correct result, not a mistake.

Common mistake

Dropping the modulus signs from $\ln|x|$, or forgetting the minus sign that comes from integrating $\sin x$. Both errors are easy to make under time pressure — it's worth differentiating your answer back mentally as a quick check, since that should always return the original integrand.

Check yourself

Find $\displaystyle\int \left(\dfrac5x - 3\sin x\right)dx$.

Method
1
$\displaystyle\int \dfrac5x\,dx = 5\ln|x|$.
Apply the standard 1/x result.
2
$\displaystyle\int (-3\sin x)\,dx = -3(-\cos x) = 3\cos x$.
Apply the standard sin result; the two minus signs cancel.
3
$\displaystyle\int \left(\dfrac5x - 3\sin x\right)dx = 5\ln|x| + 3\cos x + c$.
Combine both terms.
▪ solved