Educerie

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

  1. Find indefinite integrals by inspection or by a given substitution, including when an x is left over
  2. Find f(x) from f′(x) and a point on its graph
  3. Find integrals of functions of ax + b, such as cos(2x + 3) or 1 ÷ 3 − 4x
  4. Rewrite roots, reciprocals, brackets and fractions as powers before integrating term by term
  5. Find an integral using a derivative found in an earlier part of the question
  6. 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)f(x), given f′(x)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 x y −3 −2 −1 1 2 3 −1 1 2 3 4 5 (0, 3) y = ln(x² + 1) + 3 C = −1 C = 0 C = 1 C = 2 C = 3 Every curve y = ln(x² + 1) + C has gradient 2x/(x² + 1): at x = 1 all the tangents are parallel. The condition y = 3 when x = 0 picks out one of them: C = 3.
Figure 1 · One derivative, a whole family of curves
Because ddx\dfrac{d}{dx} of … is …… the integral is
xn+1n+1→xn\dfrac{x^{n+1}}{n+1} \to x^{n}∫xn dx=xn+1n+1+C\int x^{n}\,dx = \dfrac{x^{n+1}}{n+1} + C, for n∈Qn \in \mathbb{Q}, n≠−1n \ne -1
ln⁡x→1x\ln x \to \dfrac{1}{x}∫1x dx=ln⁡x+C\int \dfrac{1}{x}\,dx = \ln x + C (x>0x > 0); ln⁡∣x∣+C\ln\lvert x\rvert + C in general
−cos⁡x→sin⁡x-\cos x \to \sin x∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C
sin⁡x→cos⁡x\sin x \to \cos x∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C
ex→exe^{x} \to e^{x}∫ex dx=ex+C\int e^{x}\,dx = e^{x} + C
  • A constant multiple comes along unchanged, and a sum integrates term by term: ∫(5cos⁡x−2ex) dx=5sin⁡x−2ex+C\int (5\cos x - 2e^{x})\,dx = 5\sin x - 2e^{x} + C.
  • A lone constant is the n=0n = 0 case: ∫7 dx=7x+C\int 7\,dx = 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⁡\sin \to \cos \to -\sin \to -\cos \to \sin. Integrating goes the other way. So ∫sin⁡x dx\int \sin x\,dx lands on −cos⁡x-\cos x, and ∫cos⁡x dx\int \cos x\,dx on sin⁡x\sin x. All in radians.

Figure 2 · Differentiate one way round, integrate the other sin x cos x −sin x −cos x d/dx: clockwise ∫: anticlockwise Clockwise (teal) is d/dx. Anticlockwise (amber) is ∫ … dx. The signs take care of themselves.
Figure 2 · Differentiate one way round, integrate the other

Rewrite before you integrate. The power rule works only on terms of the form axnax^{n}. 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.
∫(10x3/2−6x4+7ex)dx=∫(10x3/2−6x−4+7ex)dx=10×x5/252−6×x−3−3+7ex+C=4x5/2+2x−3+7ex+C\begin{aligned} &\int \left(10x^{3/2} - \frac{6}{x^{4}} + 7e^{x}\right)dx \\[6pt] &= \int \left(10x^{3/2} - 6x^{-4} + 7e^{x}\right)dx \\[6pt] &= 10 \times \frac{x^{5/2}}{\tfrac{5}{2}} - 6 \times \frac{x^{-3}}{-3} + 7e^{x} + C \\[6pt] &= 4x^{5/2} + 2x^{-3} + 7e^{x} + C\end{aligned}

Two places lose marks:

  • Dividing by a fraction. x5/252=25x5/2\dfrac{x^{5/2}}{\tfrac{5}{2}} = \tfrac{2}{5}x^{5/2}, so 10×25=410 \times \tfrac{2}{5} = 4.
  • A negative divisor. It flips a sign: −6×x−3−3=+2x−3-6 \times \dfrac{x^{-3}}{-3} = +2x^{-3}.
∫x3+2x2 dx=∫(x+2x−2)dxdivide each term by x2=x22−2x−1+C\begin{aligned} &\int \frac{x^{3} + 2}{x^{2}}\,dx \\[6pt] &= \int \left(x + 2x^{-2}\right)dx && \textcolor{#838c91}{\text{divide each term by }x^{2}} \\[6pt] &= \frac{x^{2}}{2} - 2x^{-1} + C\end{aligned}
∫6x2−5x+4x dx=∫(6x−5+4x)dx=3x2−5x+4ln⁡∣x∣+Cthe 1x term is the ln⁡ case\begin{aligned} &\int \frac{6x^{2} - 5x + 4}{x}\,dx \\[6pt] &= \int \left(6x - 5 + \frac{4}{x}\right)dx \\[6pt] &= 3x^{2} - 5x + 4\ln\lvert x\rvert + C && \textcolor{#838c91}{\text{the }\tfrac{1}{x}\text{ term is the }\ln\text{ case}}\end{aligned}
  • There is no product rule and no quotient rule for integration. ∫(x+4)(3x−2) dx\int (x+4)(3x-2)\,dx is not a product of two integrals. Expand it to ∫(3x2+10x−8) dx=x3+5x2−8x+C\int (3x^{2} + 10x - 8)\,dx = x^{3} + 5x^{2} - 8x + C.
  • A squared sine or cosine has no standard integral. Rewrite it with the double-angle identity from 3.6, cos⁡2x=2cos⁡2x−1=1−2sin⁡2x\cos 2x = 2\cos^{2}x - 1 = 1 - 2\sin^{2}x. It gives cos⁡2x=12(1+cos⁡2x)\cos^{2}x = \tfrac{1}{2}(1 + \cos 2x) and sin⁡2x=12(1−cos⁡2x)\sin^{2}x = \tfrac{1}{2}(1 - \cos 2x).
    • The same move works with any angle. Expand a squared sum of sine and cosine first: (sin⁡x+cos⁡x)2=sin⁡2x+cos⁡2x+2sin⁡xcos⁡x=1+sin⁡2x(\sin x + \cos x)^{2} = \sin^{2}x + \cos^{2}x + 2\sin x\cos x = 1 + \sin 2x.
∫sin⁡23x dx=∫12(1−cos⁡6x) dx=12x−112sin⁡6x+C\int \sin^{2}3x\,dx = \int \tfrac{1}{2}(1 - \cos 6x)\,dx = \tfrac{1}{2}x - \tfrac{1}{12}\sin 6x + C

The 112\tfrac{1}{12} is 12×16\tfrac{1}{2} \times \tfrac{1}{6}: the identity gives the 12\tfrac{1}{2}, and the angle 6x6x the divide-by-aa rule of section 4.

2Why ∫1x dx\int \tfrac{1}{x}\,dx is a logarithm

  • The power rule breaks at n=−1n = -1, because it would give x00\tfrac{x^{0}}{0}. Yet 1x\tfrac{1}{x} has an antiderivative, since ln⁡x\ln x differentiates to 1x\tfrac{1}{x}. So ∫1x dx=ln⁡x+C\int \tfrac{1}{x}\,dx = \ln x + C, for x>0x > 0.
  • For negative xx, ln⁡x\ln x does not exist, but ln⁡(−x)\ln(-x) does. By the chain rule its derivative is (−1)×1−x=1x(-1) \times \tfrac{1}{-x} = \tfrac{1}{x} as well. Together: ln⁡∣x∣\ln\lvert x\rvert.
    • Figure 3 shows the two curves side by side. At x=2x = 2 the gradient of ln⁡∣x∣\ln\lvert x\rvert is 12\tfrac{1}{2}. At x=−2x = -2 it is −12-\tfrac{1}{2}. Those are the heights of 1x\tfrac{1}{x} there.
Figure 3 · Why ∫ 1/x dx = ln |x| + C (a) y = 1/x x y −2 2 −2 2 (2, ½) (−2, −½) (b) y = ln |x| x y −2 2 −2 2 gradient ½ gradient −½ Left: y = 1/x. Right: y = ln|x|, a mirror pair of logarithm curves. Its gradient at x is 1/x on both sides: at x = 2 the gradient is ½, and at x = −2 it is −½, matching the heights of 1/x at those points.
Figure 3 · Why ∫ 1 ÷ x dx = ln |x| + C

∫1x dx=ln⁡∣x∣+C\int \dfrac{1}{x}\,dx = \ln\lvert x\rvert + C. When x>0x > 0, which is most questions, this is ln⁡x+C\ln x + C.

Write ln⁡∣x∣+C\ln\lvert x\rvert + C unless the question says x>0x > 0. The modulus is never wrong.

3A linear inside: divide by aa

Differentiate sin⁡(2x+3)\sin(2x+3) and the chain rule multiplies by 2. The derivative is 2cos⁡(2x+3)2\cos(2x+3). To integrate cos⁡(2x+3)\cos(2x+3), you need something whose derivative has no 2 in front. That is 12sin⁡(2x+3)\tfrac{1}{2}\sin(2x+3).

This is the guide's own example:

f′(x)=cos⁡(2x+3)  ⇒  f(x)=12sin⁡(2x+3)+Cf'(x) = \cos(2x+3) \;\Rightarrow\; f(x) = \tfrac{1}{2}\sin(2x+3) + Ccheck: ddx[12sin⁡(2x+3)]=12×2cos⁡(2x+3)=cos⁡(2x+3) ✓\text{check: } \frac{d}{dx}\left[\tfrac{1}{2}\sin(2x+3)\right] = \tfrac{1}{2} \times 2\cos(2x+3) = \cos(2x+3) \ \checkmark

The rule is general. If ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C, then

∫f(ax+b) dx=1aF(ax+b)+C\int f(ax+b)\,dx = \dfrac{1}{a}F(ax+b) + C. Integrate as if the bracket were xx, then divide by aa.

IntegralAnswerThe aa you divide by
∫(2x+7)4 dx\int (2x+7)^{4}\,dx(2x+7)510+C\dfrac{(2x+7)^{5}}{10} + C22, and the 55 from the power rule: 2×5=102 \times 5 = 10
∫cos⁡(5x−1) dx\int \cos(5x-1)\,dx15sin⁡(5x−1)+C\tfrac{1}{5}\sin(5x-1) + C55
∫e−x/2 dx\int e^{-x/2}\,dx−2e−x/2+C-2e^{-x/2} + C−12-\tfrac{1}{2}, and dividing by it multiplies by −2-2
∫13−4x dx\int \dfrac{1}{3-4x}\,dx−14ln⁡∣3−4x∣+C-\tfrac{1}{4}\ln\lvert 3-4x\rvert + C−4-4
∫65x+2 dx\int \dfrac{6}{\sqrt{5x+2}}\,dx1255x+2+C\tfrac{12}{5}\sqrt{5x+2} + C55, and the 12\tfrac{1}{2}: 5×12=525 \times \tfrac{1}{2} = \tfrac{5}{2}, so 6÷52=1256 \div \tfrac{5}{2} = \tfrac{12}{5}
∫1(2x−3)2 dx\int \dfrac{1}{(2x-3)^{2}}\,dx−12(2x−3)+C-\dfrac{1}{2(2x-3)} + C22, with the power rule on (2x−3)−2(2x-3)^{-2}
  • This works only because the derivative of ax+bax+b is the constant aa. Any other inside fails. ∫cos⁡(x2) dx\int \cos(x^{2})\,dx is not sin⁡(x2)2x\dfrac{\sin(x^{2})}{2x}, 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(x^{2}+1)^{4}, has to be expanded.

4The reverse chain rule: integration by inspection

The chain rule says ddx[f(g(x))]=g′(x) f′(g(x))\dfrac{d}{dx}\left[f(g(x))\right] = 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

∫k g′(x) f(g(x)) dx=k F(g(x))+C\int k\,g'(x)\,f(g(x))\,dx = k\,F(g(x)) + C, where FF is an antiderivative of ff and kk is a constant.

The skill is seeing it: find an inside function g(x)g(x), then its derivative g′(x)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 ∫ 2x(x² + 1)⁴ dx = ⅕(x² + 1)⁵ + C outside: 2x = g′(x) inside: g(x) = x² + 1 ∫ 4x sin(x²) dx = −2 cos(x²) + C outside: 4x = 2 × g′(x) inside: g(x) = x² ∫ sin x ÷ cos x dx = −ln |cos x| + C outside: sin x = −g′(x) inside: g(x) = cos x If the derivative of the inside is sitting outside, up to a constant, integrate the outside and keep the inside.
Figure 4 · Spot the inside function and its derivative

Example 1. ∫2x(x2+1)4 dx\int 2x(x^{2}+1)^{4}\,dx. The inside is x2+1x^{2}+1, and its derivative 2x2x is right there. So the answer is "the integral of u4u^{4} with u=x2+1u = x^{2}+1":

∫2x(x2+1)4 dx=(x2+1)55+C\int 2x(x^{2}+1)^{4}\,dx = \frac{(x^{2}+1)^{5}}{5} + Ccheck: ddx[(x2+1)55]=5(x2+1)4×2x5=2x(x2+1)4 ✓\text{check: } \frac{d}{dx}\left[\frac{(x^{2}+1)^{5}}{5}\right] = \frac{5(x^{2}+1)^{4} \times 2x}{5} = 2x(x^{2}+1)^{4} \ \checkmark

Example 2. ∫4xsin⁡(x2) dx\int 4x\sin(x^{2})\,dx. The inside is x2x^{2}, whose derivative is 2x2x. The integrand has 4x4x, which is 2×2x2 \times 2x, so k=2k = 2.

∫4xsin⁡(x2) dx=2∫2xsin⁡(x2) dx=2×(−cos⁡(x2))+C=−2cos⁡(x2)+C\int 4x\sin(x^{2})\,dx = 2\int 2x\sin(x^{2})\,dx = 2 \times \left(-\cos(x^{2})\right) + C = -2\cos(x^{2}) + C

Example 3. ∫sin⁡xcos⁡x dx\int \dfrac{\sin x}{\cos x}\,dx. The inside is cos⁡x\cos x, and its derivative is −sin⁡x-\sin x. The integrand has sin⁡x\sin x, which is −1-1 times that, so k=−1k = -1. The outer function is 1u\tfrac{1}{u}, whose integral is ln⁡∣u∣\ln\lvert u\rvert.

∫sin⁡xcos⁡x dx=−∫−sin⁡xcos⁡x dx=−ln⁡∣cos⁡x∣+C\int \frac{\sin x}{\cos x}\,dx = -\int \frac{-\sin x}{\cos x}\,dx = -\ln\lvert\cos x\rvert + C

Example 3 is ∫tan⁡x dx\int \tan x\,dx in disguise, since sin⁡xcos⁡x=tan⁡x\tfrac{\sin x}{\cos x} = \tan x. 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\int \dfrac{g'(x)}{g(x)}\,dx = \ln\lvert g(x)\rvert + C.

  • So ∫4x3x4−5 dx=ln⁡∣x4−5∣+C\int \dfrac{4x^{3}}{x^{4}-5}\,dx = \ln\lvert x^{4}-5\rvert + C.
  • And ∫x3x4−5 dx=14ln⁡∣x4−5∣+C\int \dfrac{x^{3}}{x^{4}-5}\,dx = \tfrac{1}{4}\ln\lvert x^{4}-5\rvert + C, because x3x^{3} is 14\tfrac{1}{4} of the derivative 4x34x^{3}.

More patterns to spot. Read each integrand for what is inside what:

IntegrandInside ggg′g' in the integrand?Answer
5x2(x3−4)65x^{2}(x^{3}-4)^{6}x3−4x^{3}-43x23x^{2}; have 5x25x^{2}, so k=53k = \tfrac{5}{3}5(x3−4)721+C\dfrac{5(x^{3}-4)^{7}}{21} + C
x9−x2\dfrac{x}{\sqrt{9-x^{2}}}9−x29-x^{2}−2x-2x; have xx, so k=−12k = -\tfrac{1}{2}−9−x2+C-\sqrt{9-x^{2}} + C
cos⁡x sin⁡4x\cos x\,\sin^{4}xsin⁡x\sin xcos⁡x\cos x, so k=1k = 115sin⁡5x+C\tfrac{1}{5}\sin^{5}x + C
(ln⁡x)3x\dfrac{(\ln x)^{3}}{x}ln⁡x\ln x1x\tfrac{1}{x}, so k=1k = 114(ln⁡x)4+C\tfrac{1}{4}(\ln x)^{4} + C

The inspection method in three moves:

  1. Guess the answer by integrating the outside and keeping the inside.
  2. Differentiate your guess.
  3. Adjust the constant so the derivative matches.

Inspection fixes only a constant factor. If the first row had x3x^{3} instead of x2x^{2}, 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=…u = \dots".

  1. Let u=g(x)u = g(x), the inside function.
  2. Differentiate: dudx=g′(x)\dfrac{du}{dx} = g'(x), so write du=g′(x) dxdu = g'(x)\,dx.
  3. Replace every xx and the dxdx, so the integral is in uu alone.
  4. Integrate with respect to uu.
  5. Substitute back u=g(x)u = g(x).

Example 4. ∫x24x3+5 dx\int x^{2}\sqrt{4x^{3}+5}\,dx.

u=4x3+5,dudx=12x2,so x2 dx=112 duu = 4x^{3}+5, \quad \frac{du}{dx} = 12x^{2}, \quad \text{so } x^{2}\,dx = \tfrac{1}{12}\,du∫x24x3+5 dx=∫u×112 du=112×u3/232+C=118u3/2+C=118(4x3+5)3/2+C\begin{aligned}\int x^{2}\sqrt{4x^{3}+5}\,dx &= \int \sqrt{u} \times \tfrac{1}{12}\,du \\[6pt] &= \tfrac{1}{12} \times \frac{u^{3/2}}{\tfrac{3}{2}} + C \\[6pt] &= \tfrac{1}{18}u^{3/2} + C \\[6pt] &= \tfrac{1}{18}(4x^{3}+5)^{3/2} + C\end{aligned}

Example 5. ∫sin⁡x(1+cos⁡x)2 dx\int \dfrac{\sin x}{(1+\cos x)^{2}}\,dx. Let u=1+cos⁡xu = 1+\cos x, so du=−sin⁡x dxdu = -\sin x\,dx and sin⁡x dx=−du\sin x\,dx = -du. The integral becomes ∫−u−2 du=u−1+C=\int -u^{-2}\,du = u^{-1} + C = 11+cos⁡x+C\dfrac{1}{1+\cos x} + C.

When an xx is left over. If the given uu has a derivative missing from the integrand, rearrange the substitution. Write the leftover xx in terms of uu.

Example 6. Use u=2x+1u = 2x+1 to show that ∫x2x+1 dx=(2x+1)3/2(3x−1)15+C\int x\sqrt{2x+1}\,dx = \dfrac{(2x+1)^{3/2}(3x-1)}{15} + C.

u=2x+1  ⇒  x=u−12,dx=12 duu = 2x+1 \;\Rightarrow\; x = \frac{u-1}{2}, \quad dx = \tfrac{1}{2}\,du∫x2x+1 dx=∫u−12×u1/2×12 du=14∫(u3/2−u1/2)du=14(25u5/2−23u3/2)+C=u3/2(3u−5)30+C\begin{aligned}\int x\sqrt{2x+1}\,dx &= \int \frac{u-1}{2} \times u^{1/2} \times \tfrac{1}{2}\,du = \tfrac{1}{4}\int \left(u^{3/2} - u^{1/2}\right)du \\[6pt] &= \tfrac{1}{4}\left(\tfrac{2}{5}u^{5/2} - \tfrac{2}{3}u^{3/2}\right) + C = \frac{u^{3/2}(3u-5)}{30} + C\end{aligned}u=2x+1:(2x+1)3/2(6x−2)30+C=(2x+1)3/2(3x−1)15+Cu = 2x+1: \quad \frac{(2x+1)^{3/2}(6x-2)}{30} + C = \frac{(2x+1)^{3/2}(3x-1)}{15} + C
  • In a "show that", every line must be visible. The last line must be the target.
  • If an xx is left that you cannot write in terms of uu, stop. Either the substitution is wrong or the integral is not of this form.
    • ∫ex2 dx\int e^{x^{2}}\,dx is the standard example. With no 2x2x outside, u=x2u = x^{2} leaves an xx 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? 1. Can it be rewritten as a sum of standard forms? expand brackets, split fractions, write roots as powers yes: integrate term by term no 2. Is it a standard form with ax + b inside? (3x − 1)⁵, e⁴⁻²ˣ, cos(2x + 3), 1/(2x + 5) yes: integrate, then divide by a no 3. Is the derivative of the inside present, up to a constant? 2x(x² + 1)⁴, cos x · eˢⁱⁿ ˣ, f′(x)/f(x) yes: reverse chain rule or substitute u = g(x) no 4. None of these? eˣ², x sin x, x eˣ unless a “hence” part gives a derivative (Example 10) then: not an SL indefinite integral: use the GDC for a definite value Ask the questions in order. Most Paper 1 integrals stop at the first or second box.
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 CC, exactly as in 5.5. Integrate, then substitute, then write the final function in full.

Example 7. f′(x)=4e2x−6xf'(x) = 4e^{2x} - 6x and f(0)=3f(0) = 3.

f(x)=4×e2x2−3x2+C=2e2x−3x2+Cf(x) = 4 \times \frac{e^{2x}}{2} - 3x^{2} + C = 2e^{2x} - 3x^{2} + Cf(0)=2e0−0+C=2+C=3  ⇒  C=1f(0) = 2e^{0} - 0 + C = 2 + C = 3 \;\Rightarrow\; C = 1f(x)=2e2x−3x2+1f(x) = 2e^{2x} - 3x^{2} + 1

Take care at the boundary point: e0=1e^{0} = 1 (not 00), ln⁡1=0\ln 1 = 0, sin⁡0=0\sin 0 = 0, cos⁡0=1\cos 0 = 1, and eln⁡a=ae^{\ln a} = a. So e2ln⁡4=(eln⁡4)2=16e^{2\ln 4} = (e^{\ln 4})^{2} = 16.

Example 8. A curve has gradient dydx=2xx2+1\dfrac{dy}{dx} = \dfrac{2x}{x^{2}+1} and passes through (0,3)(0, 3).

y=ln⁡(x2+1)+Ctop is the derivative of the bottom; x2+1>0, so no modulusy = \ln(x^{2}+1) + C \qquad \textcolor{#838c91}{\text{top is the derivative of the bottom; }x^{2}+1 > 0\text{, so no modulus}}3=ln⁡1+C=0+C  ⇒  C=33 = \ln 1 + C = 0 + C \;\Rightarrow\; C = 3y=ln⁡(x2+1)+3y = \ln(x^{2}+1) + 3

This is the teal curve in Figure 1. Of the whole family, it is the one through (0,3)(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−10f''(x) = 12x - 10, f′(2)=7f'(2) = 7 and f(1)=4f(1) = 4.

f′(x)=6x2−10x+Cuse f′(2)=7 now, before integrating againf'(x) = 6x^{2} - 10x + C \qquad \textcolor{#838c91}{\text{use }f'(2) = 7\text{ now, before integrating again}}f′(2)=24−20+C=7  ⇒  C=3,f′(x)=6x2−10x+3f'(2) = 24 - 20 + C = 7 \;\Rightarrow\; C = 3, \quad f'(x) = 6x^{2} - 10x + 3f(x)=2x3−5x2+3x+Df(x) = 2x^{3} - 5x^{2} + 3x + Df(1)=2−5+3+D=4  ⇒  D=4  ⇒  f(x)=2x3−5x2+3x+4f(1) = 2 - 5 + 3 + D = 4 \;\Rightarrow\; D = 4 \;\Rightarrow\; f(x) = 2x^{3} - 5x^{2} + 3x + 4

Fix the first constant before you integrate again. A condition on f′f' cannot be used on ff.

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 xe5xx e^{5x}. (b) Hence find ∫xe5x dx\int x e^{5x}\,dx.

(a) ddx(xe5x)=e5x+5xe5x\text{(a) } \frac{d}{dx}\left(x e^{5x}\right) = e^{5x} + 5x e^{5x}(b) integrate both sides: xe5x=15e5x+5∫xe5x dx\text{(b) integrate both sides: } x e^{5x} = \tfrac{1}{5}e^{5x} + 5\int x e^{5x}\,dx∫xe5x dx=15xe5x−125e5x+C\int x e^{5x}\,dx = \tfrac{1}{5}x e^{5x} - \tfrac{1}{25}e^{5x} + 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.