Educerie

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.15 · HL only

Further derivatives and integrals

How do you differentiate tan⁡x\tan x, sec⁡x\sec x, cosec⁡x\operatorname{cosec} x, cot⁡x\cot x, axa^{x}, log⁡ax\log_{a} x and the inverse trigonometric functions, and how does reading those results backwards let you integrate expressions such as 1x2+6x+10\dfrac{1}{x^{2} + 6x + 10} that SL calculus could not touch?

What you will learn

  • HL Know the derivatives of tan, sec, cosec, cot, a to the x, log base a and the three inverse trigonometric functions
  • HL Understand that each of these derivatives read backwards gives a standard integral, including with ax + b inside
  • HL Understand how completing the square and partial fractions turn a quadratic denominator into an arctan, arcsin or logarithm integral
  • HL Understand an indefinite integral as a family of curves, one of which is fixed by a given point

You must be able to

  1. HL Find integrals of the form 1 ÷ a² + x² and 1 ÷ √(a² − x²), including after completing the square
  2. HL Differentiate composites and products involving tan, sec, cosec, cot, a to the x and log base a
  3. HL Show that the derivative of arcsin x, arccos x or arctan x is the standard result, by implicit differentiation
  4. HL Use partial fractions to integrate a rational function and give the answer as a single logarithm
  5. HL Integrate a standard derivative with a linear function inside, dividing by the coefficient of x
  6. HL Find the equation of a curve from its gradient function and a point on it

In the exam. mostly Paper 1 (no calculator): differentiate or integrate with the booklet's standard results, usually 2 to 4 marks a part; "show that x2−10x+26=(x−5)2+1x^{2} - 10x + 26 = (x - 5)^{2} + 1 and hence find the exact value of…", ending in known arctan⁡\arctan or arcsin⁡\arcsin values (about 4 or 5 marks); partial fractions followed by an integral with modulus signs (about 4 marks). Paper 2: the same results inside a longer problem, such as a model solved with partial fractions. Paper 3: axa^{x} and log⁡ax\log_{a} x inside an investigation, for example finding the base for which the line y=xy = x touches y=log⁡axy = \log_{a} x.

1Four more trigonometric derivatives

tan⁡x\tan x. Write it as sin⁡xcos⁡x\dfrac{\sin x}{\cos x} and apply the quotient rule.

ddx(tan⁡x)=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=sec⁡2x\begin{aligned}\frac{d}{dx}(\tan x) &= \frac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{\cos^{2}x} \\[6pt] &= \frac{\cos^{2}x + \sin^{2}x}{\cos^{2}x} \\[6pt] &= \sec^{2}x\end{aligned}

sec⁡x\sec x. Write it as (cos⁡x)−1(\cos x)^{-1} and use the chain rule.

ddx(cos⁡x)−1=−(cos⁡x)−2⋅(−sin⁡x)=sin⁡xcos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x\begin{aligned}\frac{d}{dx}(\cos x)^{-1} &= -(\cos x)^{-2}\cdot(-\sin x) = \frac{\sin x}{\cos^{2}x} \\[6pt] &= \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x\end{aligned}

cosec⁡x\operatorname{cosec} x and cot⁡x\cot x come out the same way from (sin⁡x)−1(\sin x)^{-1} and cos⁡xsin⁡x\dfrac{\cos x}{\sin x}. All four are in the formula booklet; a "show that" can ask you to derive one.

f(x)f(x)f′(x)f'(x)
tan⁡x\tan xsec⁡2x\sec^{2}x
sec⁡x\sec xsec⁡xtan⁡x\sec x\tan x
cosec⁡x\operatorname{cosec} x−cosec⁡xcot⁡x-\operatorname{cosec} x\cot x
cot⁡x\cot x−cosec⁡2x-\operatorname{cosec}^{2}x

To remember them, swap each function for its "co-" partner and add a minus sign. tan⁡→sec⁡2\tan \to \sec^{2} becomes cot⁡→−cosec⁡2\cot \to -\operatorname{cosec}^{2}, and sec⁡→sec⁡tan⁡\sec \to \sec\tan becomes cosec⁡→−cosec⁡cot⁡\operatorname{cosec} \to -\operatorname{cosec}\cot. The minus belongs to the co-functions, as it does in ddx(cos⁡x)=−sin⁡x\dfrac{d}{dx}(\cos x) = -\sin x.

Figure 1 shows the first result: sec⁡2x≥1\sec^{2}x \ge 1, so tan⁡x\tan x rises on every branch, with gentlest slope 1 at x=0x = 0 and unbounded gradient near each asymptote.

Figure 1 · y = tan x and y = sec²x x y −2 2 4 −π/2 π/2 sec²0 = 1 y = tan x y = sec²x sec²x ≥ 1 everywhere, so tan x rises on every branch, most gently at x = 0.
Figure 1 · y = tan x and its gradient function y = sec²x

For composites, differentiate the outer function, then multiply by the derivative of the inside.

ddx(sec⁡4x)=4sec⁡4xtan⁡4x\frac{d}{dx}\big(\sec 4x\big) = 4\sec 4x\tan 4xddx(tan⁡x3)=3x2sec⁡2(x3)\frac{d}{dx}\big(\tan x^{3}\big) = 3x^{2}\sec^{2}(x^{3})ddx(cot⁡(2x+1))=−2cosec⁡2(2x+1)\frac{d}{dx}\big(\cot(2x + 1)\big) = -2\operatorname{cosec}^{2}(2x + 1)ddx(x2tan⁡x)=2xtan⁡x+x2sec⁡2xproduct rule\frac{d}{dx}\big(x^{2}\tan x\big) = 2x\tan x + x^{2}\sec^{2}x \qquad \textcolor{#838c91}{\text{product rule}}ddx(tan⁡3x)=3tan⁡2x⋅sec⁡2xa power of a function: outer power, then inner derivative\frac{d}{dx}\big(\tan^{3}x\big) = 3\tan^{2}x\cdot\sec^{2}x \qquad \textcolor{#838c91}{\text{a power of a function: outer power, then inner derivative}}ddx(sec⁡2x)=2sec⁡x⋅sec⁡xtan⁡x=2sec⁡2xtan⁡x\frac{d}{dx}\big(\sec^{2}x\big) = 2\sec x\cdot\sec x\tan x = 2\sec^{2}x\tan x

Worked example 1. Paper 1. Let f(x)=tan⁡x−2xf(x) = \tan x - 2x for −π2<x<π2-\tfrac{\pi}{2} < x < \tfrac{\pi}{2}. Find the stationary points and classify them.

f′(x)=sec⁡2x−2=0⇒cos⁡2x=12⇒x=±π4f'(x) = \sec^{2}x - 2 = 0 \quad\Rightarrow\quad \cos^{2}x = \tfrac{1}{2} \quad\Rightarrow\quad x = \pm\frac{\pi}{4}f′′(x)=2sec⁡2xtan⁡xf''(x) = 2\sec^{2}x\tan xf′′(π4)=2(2)(1)=4>0,f′′(−π4)=2(2)(−1)=−4<0f''\left(\frac{\pi}{4}\right) = 2(2)(1) = 4 > 0, \qquad f''\left(-\frac{\pi}{4}\right) = 2(2)(-1) = -4 < 0f(±π4)=±(1−π2)f\left(\pm\frac{\pi}{4}\right) = \pm\left(1 - \frac{\pi}{2}\right)

The point (π4,1−π2)\left(\tfrac{\pi}{4}, 1 - \tfrac{\pi}{2}\right) is a local minimum, and (−π4,π2−1)\left(-\tfrac{\pi}{4}, \tfrac{\pi}{2} - 1\right) is a local maximum.

2axa^{x} and log⁡ax\log_{a} x

axa^{x}

  • Rewrite any positive base in base ee: a=eln⁡aa = e^{\ln a}, so ax=exln⁡aa^{x} = e^{x\ln a}.
  • The chain rule gives the result.
ax=exln⁡aa^{x} = e^{x\ln a}ddx(ax)=exln⁡a×ln⁡a=axln⁡a\frac{d}{dx}\big(a^{x}\big) = e^{x\ln a}\times\ln a = a^{x}\ln a
  • A second route, for "by taking logarithms": let y=axy = a^{x}, so ln⁡y=xln⁡a\ln y = x\ln a. Differentiate both sides with respect to xx: 1ydydx=ln⁡a\dfrac{1}{y}\dfrac{dy}{dx} = \ln a, so dydx=yln⁡a=axln⁡a\dfrac{dy}{dx} = y\ln a = a^{x}\ln a.

log⁡ax\log_{a} x

  • Change the base first: log⁡ax=ln⁡xln⁡a\log_{a} x = \dfrac{\ln x}{\ln a}. Because ln⁡a\ln a is a constant, ddx(log⁡ax)=1xln⁡a\dfrac{d}{dx}(\log_{a} x) = \dfrac{1}{x\ln a}.
  • Both are in the booklet, for a>0a > 0, a≠1a \ne 1 (and x>0x > 0 for the logarithm).

Figure 2 draws 2x2^{x}, exe^{x} and 3x3^{x} with their tangents at x=0x = 0. Each passes through (0,1)(0, 1) with gradient ln⁡a\ln a: about 0.693, exactly 1, about 1.10. That is why ee is the natural base: the factor ln⁡a\ln a vanishes.

Figure 2 · 2ˣ, eˣ and 3ˣ, with their tangents at x = 0 x y −2 −1 1 2 4 3ˣ: gradient ln 3 ≈ 1.10 eˣ: gradient ln e = 1 2ˣ: gradient ln 2 ≈ 0.693 dashed: tangent at x = 0 All three pass through (0, 1). Only for base e is the gradient there exactly 1.
Figure 2 · The gradient of aˣ at x = 0 is ln a
ddx(72x)=2ln⁡7⋅72x\frac{d}{dx}\big(7^{2x}\big) = 2\ln 7\cdot 7^{2x}ddx(3x2−x)=(2x−1)ln⁡3⋅3x2−x\frac{d}{dx}\big(3^{x^{2} - x}\big) = (2x - 1)\ln 3\cdot 3^{x^{2} - x}ddx(log⁡3(4x))=44xln⁡3=1xln⁡3the 4 cancels\frac{d}{dx}\big(\log_{3}(4x)\big) = \frac{4}{4x\ln 3} = \frac{1}{x\ln 3} \qquad \textcolor{#838c91}{\text{the 4 cancels}}ddx(log⁡5(x2+x))=2x+1(x2+x)ln⁡5\frac{d}{dx}\big(\log_{5}(x^{2} + x)\big) = \frac{2x + 1}{(x^{2} + x)\ln 5}

The 4 cancels because log⁡3(4x)=log⁡34+log⁡3x\log_{3}(4x) = \log_{3}4 + \log_{3}x and log⁡34\log_{3}4 is a constant.

Worked example 2. Paper 2. A culture of bacteria has N=250×1.3tN = 250 \times 1.3^{t} cells after tt hours. Find the rate of growth when t=4t = 4, and the equation of the tangent to y=log⁡2xy = \log_{2} x at the point where x=8x = 8.

dNdt=250×1.3tln⁡1.3\frac{dN}{dt} = 250\times 1.3^{t}\ln 1.3dNdt∣t=4=250×2.8561×0.26236…≈187 cells per hour\left.\frac{dN}{dt}\right|_{t = 4} = 250\times 2.8561\times 0.26236\ldots \approx 187 \text{ cells per hour}y=log⁡2x:dydx=1xln⁡2,so at x=8 the gradient is 18ln⁡2, and y=3y = \log_{2}x:\quad \frac{dy}{dx} = \frac{1}{x\ln 2}, \quad\text{so at } x = 8 \text{ the gradient is } \frac{1}{8\ln 2},\ \text{and } y = 3y−3=18ln⁡2(x−8)y - 3 = \frac{1}{8\ln 2}(x - 8)

3arcsin⁡x\arcsin x, arccos⁡x\arccos x and arctan⁡x\arctan x

These follow from implicit differentiation (AHL 5.14). The booklet gives them, but a "show that" can ask for the proof.

arcsin⁡x\arcsin x. Let y=arcsin⁡xy = \arcsin x, so sin⁡y=x\sin y = x, with −π2≤y≤π2-\tfrac{\pi}{2} \le y \le \tfrac{\pi}{2}.

sin⁡y=x\sin y = xcos⁡y⋅dydx=1differentiate both sides with respect to x\cos y\cdot\frac{dy}{dx} = 1 \qquad \textcolor{#838c91}{\text{differentiate both sides with respect to x}}dydx=1cos⁡y\frac{dy}{dx} = \frac{1}{\cos y}cos⁡y=1−sin⁡2y=1−x2positive root, because cos⁡y≥0 when −π2≤y≤π2\cos y = \sqrt{1 - \sin^{2}y} = \sqrt{1 - x^{2}} \qquad \textcolor{#838c91}{\text{positive root, because }\cos y \ge 0\text{ when }-\tfrac{\pi}{2} \le y \le \tfrac{\pi}{2}}ddx(arcsin⁡x)=11−x2\frac{d}{dx}(\arcsin x) = \frac{1}{\sqrt{1 - x^{2}}}

arccos⁡x\arccos x

  • Let y=arccos⁡xy = \arccos x, so cos⁡y=x\cos y = x with 0≤y≤π0 \le y \le \pi. Then −sin⁡y dydx=1-\sin y\,\dfrac{dy}{dx} = 1, and sin⁡y=+1−x2\sin y = +\sqrt{1 - x^{2}} on [0,π][0, \pi], so ddx(arccos⁡x)=−11−x2\dfrac{d}{dx}(\arccos x) = -\dfrac{1}{\sqrt{1 - x^{2}}}.
  • It is the exact negative of the arcsin⁡\arcsin result. That must be so: arcsin⁡x+arccos⁡x=π2\arcsin x + \arccos x = \tfrac{\pi}{2} is constant, so the derivatives sum to zero.

arctan⁡x\arctan x. Let y=arctan⁡xy = \arctan x, so tan⁡y=x\tan y = x.

sec⁡2y⋅dydx=1\sec^{2}y\cdot\frac{dy}{dx} = 1dydx=1sec⁡2y=11+tan⁡2y1+tan⁡2y=sec⁡2y, AHL 3.9\frac{dy}{dx} = \frac{1}{\sec^{2}y} = \frac{1}{1 + \tan^{2}y} \qquad \textcolor{#838c91}{1 + \tan^{2}y = \sec^{2}y\text{, AHL 3.9}}ddx(arctan⁡x)=11+x2\frac{d}{dx}(\arctan x) = \frac{1}{1 + x^{2}}
f(x)f(x)f′(x)f'(x)valid for
arcsin⁡x\arcsin x11−x2\dfrac{1}{\sqrt{1 - x^{2}}}−1<x<1-1 < x < 1
arccos⁡x\arccos x−11−x2-\dfrac{1}{\sqrt{1 - x^{2}}}−1<x<1-1 < x < 1
arctan⁡x\arctan x11+x2\dfrac{1}{1 + x^{2}}all xx

Figure 3 sets arcsin⁡\arcsin and arctan⁡\arctan beside their gradient functions. arcsin⁡\arcsin becomes vertical at x=±1x = \pm 1, so its derivative has asymptotes there. arctan⁡\arctan is steepest at x=0x = 0, with maximum gradient 1, and flattens towards y=±π2y = \pm\tfrac{\pi}{2}.

Figure 3 · Two inverse functions and their derivatives (a) arcsin x and 1/√(1 − x²) x y −1 2 3 −1 1 (0, 1) arcsin x gradient (b) arctan x and 1/(1 + x²) x y −4 −2 2 4 −1 2 3 (0, 1) y = π/2 y = −π/2 arctan x gradient (a) arcsin is steepest at its ends, where its derivative has asymptotes x = ±1. (b) arctan is steepest at 0, gradient 1, and flattens towards y = ±π/2 as its derivative → 0.
Figure 3 · arcsin x and arctan x, with their gradient functions
ddx(arcsin⁡3x)=31−9x2\frac{d}{dx}(\arcsin 3x) = \frac{3}{\sqrt{1 - 9x^{2}}}ddx(arctan⁡x5)=151+x225=525+x2multiply top and bottom by 25\frac{d}{dx}\left(\arctan\frac{x}{5}\right) = \frac{\tfrac{1}{5}}{1 + \tfrac{x^{2}}{25}} = \frac{5}{25 + x^{2}} \qquad \textcolor{#838c91}{\text{multiply top and bottom by 25}}ddx(arccos⁡x2)=−2x1−x4\frac{d}{dx}\big(\arccos x^{2}\big) = -\frac{2x}{\sqrt{1 - x^{4}}}ddx(x2arccos⁡x)=2xarccos⁡x−x21−x2product rule\frac{d}{dx}\big(x^{2}\arccos x\big) = 2x\arccos x - \frac{x^{2}}{\sqrt{1 - x^{2}}} \qquad \textcolor{#838c91}{\text{product rule}}

Worked example 3. Paper 1. Show that ddx(arctan⁡1x)=−11+x2\dfrac{d}{dx}\left(\arctan\dfrac{1}{x}\right) = -\dfrac{1}{1 + x^{2}} for x>0x > 0.

ddx(arctan⁡1x)=11+1x2×(−1x2)chain rule, inner derivative of x−1=x2x2+1×(−1x2)=−11+x2\begin{aligned}\frac{d}{dx}\left(\arctan\frac{1}{x}\right) &= \frac{1}{1 + \frac{1}{x^{2}}}\times\left(-\frac{1}{x^{2}}\right) && \textcolor{#838c91}{\text{chain rule, inner derivative of }x^{-1}} \\[6pt] &= \frac{x^{2}}{x^{2} + 1}\times\left(-\frac{1}{x^{2}}\right) = -\frac{1}{1 + x^{2}}\end{aligned}

Worked example 4. Paper 1. Let g(θ)=tan⁡θ+2cot⁡θg(\theta) = \tan\theta + 2\cot\theta for 0<θ<π20 < \theta < \tfrac{\pi}{2}. Show that gg has a minimum at θ=arctan⁡2\theta = \arctan\sqrt{2} and find its value.

g′(θ)=sec⁡2θ−2cosec⁡2θ=0g'(\theta) = \sec^{2}\theta - 2\operatorname{cosec}^{2}\theta = 01+tan⁡2θ=2(1+1tan⁡2θ) ⇒ tan⁡4θ−tan⁡2θ−2=0 ⇒ tan⁡2θ=21 + \tan^{2}\theta = 2\left(1 + \frac{1}{\tan^{2}\theta}\right) \ \Rightarrow\ \tan^{4}\theta - \tan^{2}\theta - 2 = 0 \ \Rightarrow\ \tan^{2}\theta = 2tan⁡θ=2 (positive on the interval),θ=arctan⁡2\tan\theta = \sqrt{2} \ (\text{positive on the interval}), \quad \theta = \arctan\sqrt{2}g(θ)=2+22=22g(\theta) = \sqrt{2} + \frac{2}{\sqrt{2}} = 2\sqrt{2}

For the second derivative, g′′(θ)=2sec⁡2θtan⁡θ+4cosec⁡2θcot⁡θg''(\theta) = 2\sec^{2}\theta\tan\theta + 4\operatorname{cosec}^{2}\theta\cot\theta. Draw a right triangle with opposite side 2\sqrt{2} and adjacent side 1, so tan⁡θ=2\tan\theta = \sqrt{2}; the hypotenuse is 3\sqrt{3}. Then sec⁡2θ=3\sec^{2}\theta = 3 and cosec⁡2θ=32\operatorname{cosec}^{2}\theta = \tfrac{3}{2}, and cot⁡θ=12\cot\theta = \tfrac{1}{\sqrt{2}}.

g′′(θ)=2(3)(2)+4(32)12=62+32=92>0g''(\theta) = 2(3)(\sqrt{2}) + 4\left(\tfrac{3}{2}\right)\frac{1}{\sqrt{2}} = 6\sqrt{2} + 3\sqrt{2} = 9\sqrt{2} > 0

So the stationary point is a minimum, with value 222\sqrt{2}. Use the triangle for any exact trigonometric value at an arctan⁡\arctan, arcsin⁡\arcsin or arccos⁡\arccos.

4Reading the derivatives backwards

Each derivative gives an integral for free. The guide asks for the indefinite integrals of all of them.

IntegralResult
∫sec⁡2x dx\int \sec^{2}x\,dxtan⁡x+C\tan x + C
∫sec⁡xtan⁡x dx\int \sec x\tan x\,dxsec⁡x+C\sec x + C
∫cosec⁡xcot⁡x dx\int \operatorname{cosec} x\cot x\,dx−cosec⁡x+C-\operatorname{cosec} x + C
∫cosec⁡2x dx\int \operatorname{cosec}^{2}x\,dx−cot⁡x+C-\cot x + C
∫ax dx\int a^{x}\,dxaxln⁡a+C\dfrac{a^{x}}{\ln a} + C
∫11−x2 dx\int \dfrac{1}{\sqrt{1 - x^{2}}}\,dxarcsin⁡x+C\arcsin x + C
∫11+x2 dx\int \dfrac{1}{1 + x^{2}}\,dxarctan⁡x+C\arctan x + C

The booklet gives the last two with a constant aa:

∫1a2+x2 dx=1aarctan⁡xa+C\displaystyle\int \frac{1}{a^{2} + x^{2}}\,dx = \frac{1}{a}\arctan\frac{x}{a} + C and ∫1a2−x2 dx=arcsin⁡xa+C\displaystyle\int \frac{1}{\sqrt{a^{2} - x^{2}}}\,dx = \arcsin\frac{x}{a} + C, for ∣x∣<a\lvert x\rvert < a.

Differentiating confirms the first: 1a×1a×11+x2a2=1a2+x2\dfrac{1}{a}\times\dfrac{1}{a}\times\dfrac{1}{1 + \frac{x^{2}}{a^{2}}} = \dfrac{1}{a^{2} + x^{2}}. The arctan⁡\arctan result carries a factor 1a\tfrac{1}{a}. The arcsin⁡\arcsin result does not. This is the commonest slip in the subtopic.

The integral of −11−x2-\dfrac{1}{\sqrt{1 - x^{2}}} can be written −arcsin⁡x+C-\arcsin x + C or arccos⁡x+C\arccos x + C. Both are right. They differ by π2\tfrac{\pi}{2}, which CC absorbs.

Definite versions give exact answers at known angles:

∫0311+x2 dx=[arctan⁡x]03=π3\int_{0}^{\sqrt{3}} \frac{1}{1 + x^{2}}\,dx = \big[\arctan x\big]_{0}^{\sqrt{3}} = \frac{\pi}{3}∫0114−x2 dx=[arcsin⁡x2]01=π6\int_{0}^{1} \frac{1}{\sqrt{4 - x^{2}}}\,dx = \left[\arcsin\frac{x}{2}\right]_{0}^{1} = \frac{\pi}{6}

Using an identity first

  • tan⁡2x\tan^{2}x is not in the table, but 1+tan⁡2x=sec⁡2x1 + \tan^{2}x = \sec^{2}x rewrites it: ∫tan⁡2x dx=∫(sec⁡2x−1) dx=tan⁡x−x+C\int \tan^{2}x\,dx = \int (\sec^{2}x - 1)\,dx = \tan x - x + C.
  • The same step turns cot⁡2x\cot^{2}x into cosec⁡2x−1\operatorname{cosec}^{2}x - 1, giving −cot⁡x−x+C-\cot x - x + C.

Splitting a fraction first. Split a fraction in sin⁡x\sin x and cos⁡x\cos x and rename each piece (1sin⁡x=cosec⁡x\dfrac{1}{\sin x} = \operatorname{cosec} x, cos⁡xsin⁡x=cot⁡x\dfrac{\cos x}{\sin x} = \cot x), after any identity that tidies the denominator.

Worked example 5. Paper 1. Find ∫3cos⁡x−21−cos⁡2x dx\displaystyle\int \dfrac{3\cos x - 2}{1 - \cos^{2}x}\,dx.

1−cos⁡2x=sin⁡2xPythagorean identity first1 - \cos^{2}x = \sin^{2}x \qquad \textcolor{#838c91}{\text{Pythagorean identity first}}3cos⁡x−2sin⁡2x=3⋅1sin⁡x⋅cos⁡xsin⁡x−2sin⁡2x=3cosec⁡xcot⁡x−2cosec⁡2x\frac{3\cos x - 2}{\sin^{2}x} = 3\cdot\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} - \frac{2}{\sin^{2}x} = 3\operatorname{cosec} x\cot x - 2\operatorname{cosec}^{2}x∫3cos⁡x−21−cos⁡2x dx=−3cosec⁡x+2cot⁡x+C\int \frac{3\cos x - 2}{1 - \cos^{2}x}\,dx = -3\operatorname{cosec} x + 2\cot x + C

5A linear function inside

The guide includes composites of all these with a linear function ax+bax + b. The rule is the chain rule reversed:

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.

The chain rule brings out a factor aa, which the 1a\tfrac{1}{a} cancels. So integrate as if the bracket were just xx, then divide by the coefficient of xx.

∫sec⁡2(4x−1) dx=14tan⁡(4x−1)+C\int \sec^{2}(4x - 1)\,dx = \frac{1}{4}\tan(4x - 1) + C∫sec⁡2xtan⁡2x dx=12sec⁡2x+C\int \sec 2x\tan 2x\,dx = \frac{1}{2}\sec 2x + C∫43x+1 dx=43x+13ln⁡4+C\int 4^{3x + 1}\,dx = \frac{4^{3x + 1}}{3\ln 4} + C∫tan⁡22x dx=∫(sec⁡22x−1) dx=12tan⁡2x−x+C\int \tan^{2}2x\,dx = \int (\sec^{2}2x - 1)\,dx = \frac{1}{2}\tan 2x - x + C∫11−9x2 dx=∫11−(3x)2 dx=13arcsin⁡3x+C\int \frac{1}{\sqrt{1 - 9x^{2}}}\,dx = \int \frac{1}{\sqrt{1 - (3x)^{2}}}\,dx = \frac{1}{3}\arcsin 3x + C

When the coefficient sits on x2x^{2}, take it out first so the booklet form appears.

Worked example 6. Paper 1. Find (a) ∫125+4x2 dx\displaystyle\int \dfrac{1}{25 + 4x^{2}}\,dx and (b) ∫19−4x2 dx\displaystyle\int \dfrac{1}{\sqrt{9 - 4x^{2}}}\,dx.

25+4x2=4(254+x2)so a=52factor out the coefficient of x225 + 4x^{2} = 4\left(\frac{25}{4} + x^{2}\right) \qquad \text{so } a = \frac{5}{2} \qquad \textcolor{#838c91}{\text{factor out the coefficient of }x^{2}}∫125+4x2 dx=14⋅25arctan⁡2x5+C=110arctan⁡2x5+C\int \frac{1}{25 + 4x^{2}}\,dx = \frac{1}{4}\cdot\frac{2}{5}\arctan\frac{2x}{5} + C = \frac{1}{10}\arctan\frac{2x}{5} + C9−4x2=4(94−x2)=2(32)2−x2the square root of 4 comes out as 2\sqrt{9 - 4x^{2}} = \sqrt{4\left(\frac{9}{4} - x^{2}\right)} = 2\sqrt{\left(\tfrac{3}{2}\right)^{2} - x^{2}} \qquad \textcolor{#838c91}{\text{the square root of 4 comes out as 2}}∫19−4x2 dx=12arcsin⁡2x3+C\int \frac{1}{\sqrt{9 - 4x^{2}}}\,dx = \frac{1}{2}\arcsin\frac{2x}{3} + C

The 4 outside the bracket became 14\tfrac{1}{4} in (a) but 12\tfrac{1}{2} in (b), because it sat under a square root.

Worked example 7. Paper 2. Find the exact value of kk such that ∫1k2x dx=12ln⁡2\displaystyle\int_{1}^{k} 2^{x}\,dx = \dfrac{12}{\ln 2}, where k>1k > 1.

∫1k2x dx=2k−2ln⁡2=12ln⁡2\int_{1}^{k} 2^{x}\,dx = \frac{2^{k} - 2}{\ln 2} = \frac{12}{\ln 2}2k=14⇒k=log⁡214=ln⁡14ln⁡22^{k} = 14 \quad\Rightarrow\quad k = \log_{2}14 = \frac{\ln 14}{\ln 2}

6Completing the square

A quadratic denominator that does not factorise can be written as (x+p)2+q2(x + p)^{2} + q^{2}. That is the arctan⁡\arctan shape with x+px + p in place of xx, a linear composite with coefficient 1, so section 5 applies.

Worked example 8. Paper 1. Find ∫1x2+8x+20 dx\displaystyle\int \dfrac{1}{x^{2} + 8x + 20}\,dx.

x2+8x+20=(x+4)2+4half of 8 is 4; 20 - 16 = 4x^{2} + 8x + 20 = (x + 4)^{2} + 4 \qquad \textcolor{#838c91}{\text{half of 8 is 4; 20 - 16 = 4}}∫1(x+4)2+22 dx=12arctan⁡x+42+C\int \frac{1}{(x + 4)^{2} + 2^{2}}\,dx = \frac{1}{2}\arctan\frac{x + 4}{2} + C

Under a square root the same move gives the arcsin⁡\arcsin shape. Factor out the minus sign first.

Worked example 9. Find ∫16x−x2−5 dx\displaystyle\int \dfrac{1}{\sqrt{6x - x^{2} - 5}}\,dx.

6x−x2−5=−(x2−6x+5)=−((x−3)2−4)=4−(x−3)26x - x^{2} - 5 = -\left(x^{2} - 6x + 5\right) = -\left((x - 3)^{2} - 4\right) = 4 - (x - 3)^{2}∫122−(x−3)2 dx=arcsin⁡x−32+C\int \frac{1}{\sqrt{2^{2} - (x - 3)^{2}}}\,dx = \arcsin\frac{x - 3}{2} + C

A show-that, then hence. The standard Paper 1 pairing is a rewrite for 1 mark, then an exact definite integral.

Worked example 10. Paper 1. (a) Show that x2−2x+10=(x−1)2+9x^{2} - 2x + 10 = (x - 1)^{2} + 9. (b) Hence find ∫11+331x2−2x+10 dx\displaystyle\int_{1}^{1 + 3\sqrt{3}} \dfrac{1}{x^{2} - 2x + 10}\,dx.

(x−1)2+9=x2−2x+1+9=x2−2x+10(x - 1)^{2} + 9 = x^{2} - 2x + 1 + 9 = x^{2} - 2x + 10∫1(x−1)2+32 dx=13arctan⁡x−13\int \frac{1}{(x - 1)^{2} + 3^{2}}\,dx = \frac{1}{3}\arctan\frac{x - 1}{3}13[arctan⁡x−13]11+33=13(arctan⁡3−arctan⁡0)=13⋅π3=π9\frac{1}{3}\left[\arctan\frac{x - 1}{3}\right]_{1}^{1 + 3\sqrt{3}} = \frac{1}{3}\big(\arctan\sqrt{3} - \arctan 0\big) = \frac{1}{3}\cdot\frac{\pi}{3} = \frac{\pi}{9}

Splitting the numerator

  • When the top is linear, write it as a multiple of the derivative of the bottom, plus a constant.
  • The multiple integrates to a logarithm (reverse chain rule, SL 5.10). The constant gives an arctan⁡\arctan.

Worked example 11. Find ∫5x+4x2+4x+8 dx\displaystyle\int \dfrac{5x + 4}{x^{2} + 4x + 8}\,dx.

5x+4=52(2x+4)−6the bottom has derivative 2x + 45x + 4 = \tfrac{5}{2}(2x + 4) - 6 \qquad \textcolor{#838c91}{\text{the bottom has derivative 2x + 4}}∫5x+4x2+4x+8 dx=52∫2x+4x2+4x+8 dx−6∫1(x+2)2+4 dx=52ln⁡(x2+4x+8)−6⋅12arctan⁡x+22+Cthe quadratic is always positive, so no modulus=52ln⁡(x2+4x+8)−3arctan⁡x+22+C\begin{aligned}\int \frac{5x + 4}{x^{2} + 4x + 8}\,dx &= \frac{5}{2}\int \frac{2x + 4}{x^{2} + 4x + 8}\,dx - 6\int \frac{1}{(x + 2)^{2} + 4}\,dx \\[6pt] &= \frac{5}{2}\ln\left(x^{2} + 4x + 8\right) - 6\cdot\frac{1}{2}\arctan\frac{x + 2}{2} + C && \textcolor{#838c91}{\text{the quadratic is always positive, so no modulus}} \\[6pt] &= \frac{5}{2}\ln\left(x^{2} + 4x + 8\right) - 3\arctan\frac{x + 2}{2} + C\end{aligned}

7Partial fractions: when the denominator factorises

If the quadratic factorises, split into partial fractions (AHL 1.11). Each piece is a logarithm, because ∫1x+k dx=ln⁡∣x+k∣+C\int \dfrac{1}{x + k}\,dx = \ln\lvert x + k\rvert + C. Here the denominator has at most two distinct linear factors. The numerator has lower degree.

Worked example 12. Paper 1. Find ∫462x+17(x−2)(x+5) dx\displaystyle\int_{4}^{6} \dfrac{2x + 17}{(x - 2)(x + 5)}\,dx, giving your answer as a single logarithm.

2x+17(x−2)(x+5)≡Ax−2+Bx+5,2x+17≡A(x+5)+B(x−2)\frac{2x + 17}{(x - 2)(x + 5)} \equiv \frac{A}{x - 2} + \frac{B}{x + 5}, \qquad 2x + 17 \equiv A(x + 5) + B(x - 2)x=2: 21=7A⇒A=3;x=−5: 7=−7B⇒B=−1x = 2:\ 21 = 7A \Rightarrow A = 3; \qquad x = -5:\ 7 = -7B \Rightarrow B = -1∫46(3x−2−1x+5)dx=[3ln⁡∣x−2∣−ln⁡∣x+5∣]46=(3ln⁡4−ln⁡11)−(3ln⁡2−ln⁡9)=3ln⁡2+ln⁡9−ln⁡11=ln⁡7211\begin{aligned}\int_{4}^{6}\left(\frac{3}{x - 2} - \frac{1}{x + 5}\right)dx &= \big[3\ln\lvert x - 2\rvert - \ln\lvert x + 5\rvert\big]_{4}^{6} \\[6pt] &= (3\ln 4 - \ln 11) - (3\ln 2 - \ln 9) = 3\ln 2 + \ln 9 - \ln 11 = \ln\frac{72}{11}\end{aligned}

Laws of logarithms (SL 1.7) combine the last line.

One sign changes everything

  • Compare 1x2+9\dfrac{1}{x^{2} + 9} and 1x2−9\dfrac{1}{x^{2} - 9}. The first cannot be factorised over the reals, so it is an arctan⁡\arctan.
  • The second is a difference of squares.
∫1x2+9 dx=13arctan⁡x3+C\int \frac{1}{x^{2} + 9}\,dx = \frac{1}{3}\arctan\frac{x}{3} + C1x2−9≡16(1x−3−1x+3) ⇒ ∫1x2−9 dx=16ln⁡∣x−3x+3∣+C\frac{1}{x^{2} - 9} \equiv \frac{1}{6}\left(\frac{1}{x - 3} - \frac{1}{x + 3}\right) \ \Rightarrow\ \int \frac{1}{x^{2} - 9}\,dx = \frac{1}{6}\ln\left\lvert\frac{x - 3}{x + 3}\right\rvert + C

The discriminant decides the method. Figure 4 lays out the choice.

Figure 4 · ∫ 1/(ax² + bx + c) dx: which method? Check b² − 4ac of the denominator Negative: no real roots complete the square: (x + p)² + q² Positive: two real roots factorise, then partial fractions Result: arctan ∫ 1/(x² + 4) dx = ½ arctan(x/2) + C Result: logarithms ∫ 1/(x² − 4) dx = ¼ ln|(x − 2)/(x + 2)| + C A zero discriminant gives a repeated factor, (x + p)², which integrates by the reverse chain rule.
Figure 4 · Which method for ∫ 1 ÷ quadratic dx

8An indefinite integral is a family of curves

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C does not name one function. It names infinitely many, one for each value of CC. Their graphs are vertical translations of each other.

At any fixed xx every member has the same gradient. That is what "the derivative is f(x)f(x)" says. Figure 5 draws several members of the family y=arctan⁡2x+Cy = \arctan 2x + C.

Figure 5 · The family y = arctan 2x + C x y −2 −1 1 2 (½, π) −2 −1 1 2 3 4 C = 3π/4 C = 0 Every curve has gradient 2/(1 + 4x²) at each x; they are vertical translations of one another. The point (½, π) picks out one of them, C = 3π/4.
Figure 5 · The family y = arctan 2x + C, and the member through (½, π)

One extra fact, such as a point the curve passes through, picks a single member.

Worked example 13. Paper 1. A curve has gradient function dydx=21+4x2\dfrac{dy}{dx} = \dfrac{2}{1 + 4x^{2}} and passes through (12,π)\left(\tfrac{1}{2}, \pi\right). Find its equation.

y=∫21+(2x)2 dx=arctan⁡2x+Clinear composite: 2×12=1y = \int \frac{2}{1 + (2x)^{2}}\,dx = \arctan 2x + C \qquad \textcolor{#838c91}{\text{linear composite: }2\times\tfrac{1}{2} = 1}π=arctan⁡1+C=π4+C\pi = \arctan 1 + C = \frac{\pi}{4} + CC=3π4C = \frac{3\pi}{4}y=arctan⁡2x+3π4y = \arctan 2x + \frac{3\pi}{4}

Practice questions

28 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.