Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.10 · SL and HL
Indefinite integrals and substitution
If differentiating is a set of rules, how do you run each rule backwards, and how do you recognise, inside a complicated expression, the chain rule waiting to be undone?
What you will learn
Know the standard integrals of powers, sine, cosine, e^x and 1 ÷ x, and why the last one is a logarithm
Understand that integrating f(ax + b) means integrating as usual and dividing by a
Understand integration by inspection and by substitution as the chain rule run backwards
Know how a point on the curve fixes the constant of integration
You must be able to
Find indefinite integrals by inspection or by a given substitution, including when an x is left over
Find f(x) from f′(x) and a point on its graph
Find integrals of functions of ax + b, such as cos(2x + 3) or 1 ÷ 3 − 4x
Rewrite roots, reciprocals, brackets and fractions as powers before integrating term by term
Find an integral using a derivative found in an earlier part of the question
Recognise when the top of a fraction is the derivative of the bottom and give the logarithm
In the exam. mostly "find" an indefinite integral (2 to 5 marks), often as the first step of a longer question on areas (5.11) or kinematics (5.9). Paper 1 wants exact working without a calculator, and "show that" and "hence" questions, which give you the substitution or an earlier derivative, are regular. "Find f(x), given f′(x) and a point on the graph" is worth 4 to 6 marks. Paper 2 uses it when a model is given as a rate of change.
1The standard integrals
Figure 1 · One derivative, a whole family of curves
Because dxd of … is …
… the integral is
n+1xn+1→xn
∫xndx=n+1xn+1+C, for n∈Q, n=−1
lnx→x1
∫x1dx=lnx+C (x>0); ln∣x∣+C in general
−cosx→sinx
∫sinxdx=−cosx+C
sinx→cosx
∫cosxdx=sinx+C
ex→ex
∫exdx=ex+C
A constant multiple comes along unchanged, and a sum integrates term by term: ∫(5cosx−2ex)dx=5sinx−2ex+C.
A lone constant is the n=0 case: ∫7dx=7x+C.
Add 1 to the power, divide by the new power. Then check every answer by differentiating it back: if you do not get the integrand, the answer is wrong.
The sine and cosine signs are the classic slip. In Figure 2, differentiating goes clockwise: sin→cos→−sin→−cos→sin. Integrating goes the other way. So ∫sinxdx lands on −cosx, and ∫cosxdx on sinx. All in radians.
Figure 2 · Differentiate one way round, integrate the other
Rewrite before you integrate. The power rule works only on terms of the form axn. Turn everything into that shape first:
Roots become fractional powers.
Reciprocals become negative powers.
Brackets get expanded.
A fraction with one term on the bottom gets split.
Dividing by a fraction.25x5/2=52x5/2, so 10×52=4.
A negative divisor. It flips a sign: −6×−3x−3=+2x−3.
∫x2x3+2dx=∫(x+2x−2)dx=2x2−2x−1+Cdivide each term by x2
∫x6x2−5x+4dx=∫(6x−5+x4)dx=3x2−5x+4ln∣x∣+Cthe x1 term is the ln case
There is no product rule and no quotient rule for integration. ∫(x+4)(3x−2)dx is not a product of two integrals. Expand it to ∫(3x2+10x−8)dx=x3+5x2−8x+C.
A squared sine or cosine has no standard integral. Rewrite it with the double-angle identity from 3.6, cos2x=2cos2x−1=1−2sin2x. It gives cos2x=21(1+cos2x) and sin2x=21(1−cos2x).
The same move works with any angle. Expand a squared sum of sine and cosine first: (sinx+cosx)2=sin2x+cos2x+2sinxcosx=1+sin2x.
∫sin23xdx=∫21(1−cos6x)dx=21x−121sin6x+C
The 121 is 21×61: the identity gives the 21, and the angle 6x the divide-by-a rule of section 4.
2Why ∫x1dx is a logarithm
The power rule breaks at n=−1, because it would give 0x0. Yet x1 has an antiderivative, since lnx differentiates to x1. So ∫x1dx=lnx+C, for x>0.
For negative x, lnx does not exist, but ln(−x) does. By the chain rule its derivative is (−1)×−x1=x1 as well. Together: ln∣x∣.
Figure 3 shows the two curves side by side. At x=2 the gradient of ln∣x∣ is 21. At x=−2 it is −21. Those are the heights of x1 there.
Figure 3 · Why ∫ 1 ÷ x dx = ln |x| + C
∫x1dx=ln∣x∣+C. When x>0, which is most questions, this is lnx+C.
Write ln∣x∣+C unless the question says x>0. The modulus is never wrong.
3A linear inside: divide by a
Differentiate sin(2x+3) and the chain rule multiplies by 2. The derivative is 2cos(2x+3). To integrate cos(2x+3), you need something whose derivative has no 2 in front. That is 21sin(2x+3).
∫f(ax+b)dx=a1F(ax+b)+C. Integrate as if the bracket were x, then divide by a.
Integral
Answer
The a you divide by
∫(2x+7)4dx
10(2x+7)5+C
2, and the 5 from the power rule: 2×5=10
∫cos(5x−1)dx
51sin(5x−1)+C
5
∫e−x/2dx
−2e−x/2+C
−21, and dividing by it multiplies by −2
∫3−4x1dx
−41ln∣3−4x∣+C
−4
∫5x+26dx
5125x+2+C
5, and the 21: 5×21=25, so 6÷25=512
∫(2x−3)21dx
−2(2x−3)1+C
2, with the power rule on (2x−3)−2
This works only because the derivative of ax+b is the constant a. Any other inside fails. ∫cos(x2)dx is not2xsin(x2), as the quotient rule shows when you differentiate that "answer".
A power of a non-linear bracket on its own, such as (x2+1)4, has to be expanded.
4The reverse chain rule: integration by inspection
The chain rule says dxd[f(g(x))]=g′(x)f′(g(x)). Read backwards: say an integrand is the derivative of an inside function, times some function of that inside. Then the integral is the outer function of the inside.
In the guide's terms, integrals of the form
∫kg′(x)f(g(x))dx=kF(g(x))+C, where F is an antiderivative of f and k is a constant.
The skill is seeing it: find an inside function g(x), then its derivative g′(x) elsewhere in the integrand, up to a constant factor. Figure 4 marks the pattern in the guide's three examples.
Figure 4 · Spot the inside function and its derivative
Example 1.∫2x(x2+1)4dx. The inside is x2+1, and its derivative 2x is right there. So the answer is "the integral of u4 with u=x2+1":
Example 3.∫cosxsinxdx. The inside is cosx, and its derivative is −sinx. The integrand has sinx, which is −1 times that, so k=−1. The outer function is u1, whose integral is ln∣u∣.
∫cosxsinxdx=−∫cosx−sinxdx=−ln∣cosx∣+C
Example 3 is ∫tanxdx in disguise, since cosxsinx=tanx. It belongs to a family worth recognising on sight. When the top is the derivative of the bottom,
∫g(x)g′(x)dx=ln∣g(x)∣+C.
So ∫x4−54x3dx=ln∣x4−5∣+C.
And ∫x4−5x3dx=41ln∣x4−5∣+C, because x3 is 41 of the derivative 4x3.
More patterns to spot. Read each integrand for what is inside what:
Integrand
Inside g
g′ in the integrand?
Answer
5x2(x3−4)6
x3−4
3x2; have 5x2, so k=35
215(x3−4)7+C
9−x2x
9−x2
−2x; have x, so k=−21
−9−x2+C
cosxsin4x
sinx
cosx, so k=1
51sin5x+C
x(lnx)3
lnx
x1, so k=1
41(lnx)4+C
The inspection method in three moves:
Guess the answer by integrating the outside and keeping the inside.
Differentiate your guess.
Adjust the constant so the derivative matches.
Inspection fixes only a constant factor. If the first row had x3 instead of x2, no constant would fix it, and the method would not apply.
5Integration by substitution
Substitution = inspection with every step written down. Use it when the pattern is not obvious, or when the question says "use the substitution u=…".
Let u=g(x), the inside function.
Differentiate: dxdu=g′(x), so write du=g′(x)dx.
Replace everyx and the dx, so the integral is in u alone.
In a "show that", every line must be visible. The last line must be the target.
If an x is left that you cannot write in terms of u, stop. Either the substitution is wrong or the integral is not of this form.
∫ex2dx is the standard example. With no 2x outside, u=x2 leaves an x behind, and no SL method finds it. Its definite values come from the GDC (5.11).
Figure 5 gives four questions to ask of any integrand.
Figure 5 · Which integration method?
6Finding the constant, and using a given derivative
A boundary condition = a point the curve passes through, or a value at a given time. It fixes C, exactly as in 5.5. Integrate, then substitute, then write the final function in full.
Take care at the boundary point: e0=1 (not 0), ln1=0, sin0=0, cos0=1, and elna=a. So e2ln4=(eln4)2=16.
Example 8. A curve has gradient dxdy=x2+12x and passes through (0,3).
y=ln(x2+1)+Ctop is the derivative of the bottom; x2+1>0, so no modulus3=ln1+C=0+C⇒C=3y=ln(x2+1)+3
This is the teal curve in Figure 1. Of the whole family, it is the one through (0,3).
Integrating twice. Given a second derivative, integrate twice. Each integration brings its own constant and needs its own condition. Kinematics (5.9) is the same chain: acceleration, velocity, displacement.
Example 9.f′′(x)=12x−10, f′(2)=7 and f(1)=4.
f′(x)=6x2−10x+Cuse f′(2)=7 now, before integrating againf′(2)=24−20+C=7⇒C=3,f′(x)=6x2−10x+3f(x)=2x3−5x2+3x+Df(1)=2−5+3+D=4⇒D=4⇒f(x)=2x3−5x2+3x+4
Fix the first constant before you integrate again. A condition on f′ cannot be used on f.
Using a derivative you were given. In "Differentiate … Hence find …", differentiate what is given. Integrate both sides. Rearrange so the target integral stands alone.
Example 10. (a) Differentiate xe5x. (b) Hence find ∫xe5xdx.
(a) dxd(xe5x)=e5x+5xe5x(b) integrate both sides: xe5x=51e5x+5∫xe5xdx∫xe5xdx=51xe5x−251e5x+C
"Hence" means the answer must be built from part (a). A product that fits no pattern, like this one, is what integration by parts does in one go (HL only, 5.16).
Practice questions
23 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 5.10 Indefinite integrals and substitution