5.15 · AHL · HL onlyPaper 1Paper 2

Extended differentiation and integration

In a minute

At HL you learn nine more derivatives: tan⁡x\tan x and the , axa^{x} and log⁡ax\log_{a}x, and the . Read backwards, they give new integrals, such as arctan⁡\arctan and arcsin⁡\arcsin. turn many more fractions into logs.

You'll be able to

  • Differentiate tan⁡x\tan x, sec⁡x\sec x, cosec⁡x\operatorname{cosec}x and cot⁡x\cot x, with the chain rule when there is an inside function.
  • Differentiate axa^{x} and log⁡ax\log_{a}x for any base aa.
  • Differentiate arcsin⁡x\arcsin x, arccos⁡x\arccos x and arctan⁡x\arctan x.
  • Integrate all of these derivatives, also with a linear expression inside, and read an indefinite integral as a .
  • Integrate one over a quadratic by completing the square, or by splitting it into .
Before you start3 quick questions on what this builds on
Check yourself
Which expression is equal to sec⁡2x\sec^{2}x?
Check yourself
Write 4(x−1)(x+3)\frac{4}{(x-1)(x+3)} in partial fractions.
Check yourself
Find ∫cos⁡(5x) dx\int \cos(5x)\,\mathrm{d}x.

Revise first: 1.11 Partial fractions, 3.9 Reciprocal and inverse trigonometric functions, 5.6 Differentiation rules and standard functions and 5.10 Indefinite integration and substitution

Derivatives of tan, sec, cosec and cot

The other four trig functions are built from sin⁡x\sin x and cos⁡x\cos x. tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, and the are sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, cosec⁡x=1sin⁡x\operatorname{cosec}x = \frac{1}{\sin x} and cot⁡x=1tan⁡x\cot x = \frac{1}{\tan x}.

Use the quotient rule for tan⁡x\tan x: cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x\frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^{2}x} = \frac{\cos^{2}x + \sin^{2}x}{\cos^{2}x}. The top is 11, so the derivative is 1cos⁡2x=sec⁡2x\frac{1}{\cos^{2}x} = \sec^{2}x.

For sec⁡x\sec x, write it as (cos⁡x)−1(\cos x)^{-1} and use the chain rule: −(cos⁡x)−2×(−sin⁡x)=sin⁡xcos⁡2x-(\cos x)^{-2} \times (-\sin x) = \frac{\sin x}{\cos^{2}x}. Split this as 1cos⁡x×sin⁡xcos⁡x=sec⁡xtan⁡x\frac{1}{\cos x} \times \frac{\sin x}{\cos x} = \sec x\tan x.

In the formula booklet
f(x)=tan⁡x⇒f′(x)=sec⁡2xf(x) = \tan x \Rightarrow f'(x) = \sec^{2}x
In the formula booklet
f(x)=sec⁡x⇒f′(x)=sec⁡xtan⁡xf(x) = \sec x \Rightarrow f'(x) = \sec x\tan x
In the formula booklet
f(x)=cosec⁡x⇒f′(x)=−cosec⁡xcot⁡xf(x) = \operatorname{cosec}x \Rightarrow f'(x) = -\operatorname{cosec}x\cot x
In the formula booklet
f(x)=cot⁡x⇒f′(x)=−cosec⁡2xf(x) = \cot x \Rightarrow f'(x) = -\operatorname{cosec}^{2}x

All four are in the formula booklet. You need to use them quickly and get the signs right.

With an inside function, multiply by the derivative of the inside, as in 5.6. For example, ddxtan⁡(7x)=7sec⁡2(7x)\frac{\mathrm{d}}{\mathrm{d}x}\tan(7x) = 7\sec^{2}(7x).

Worked exampleDifferentiate f(x)=4tan⁡x−cot⁡xf(x) = 4\tan x - \cot x.

Try it first, then reveal one step at a time.

  1. Differentiate term by term: ddx(4tan⁡x)=4sec⁡2x\frac{\mathrm{d}}{\mathrm{d}x}(4\tan x) = 4\sec^{2}x.
Check yourself
Differentiate y=sec⁡(5x)y = \sec(5x).
Worked exampleFind the exact gradient of the curve y=cosec⁡(2x)y = \operatorname{cosec}(2x) at the point where x=π6x = \frac{\pi}{6}.

Try it first, then reveal one step at a time.

  1. Use the chain rule with inside 2x2x. The outside cosec⁡u\operatorname{cosec}u differentiates to −cosec⁡ucot⁡u-\operatorname{cosec}u\cot u, and the inside gives a factor 22.
Check yourself
Differentiate y=xtan⁡xy = x\tan x.

Exponentials and logarithms in any base

You can differentiate ex\mathrm{e}^{x} and ln⁡x\ln x. Other bases, such as 2x2^{x} or log⁡10x\log_{10}x, come back to these.

Since a=eln⁡aa = \mathrm{e}^{\ln a}, you can write ax=exln⁡aa^{x} = \mathrm{e}^{x\ln a}, where ln⁡a\ln a is just a constant. The chain rule gives ddxexln⁡a=exln⁡a×ln⁡a=axln⁡a\frac{\mathrm{d}}{\mathrm{d}x}\mathrm{e}^{x\ln a} = \mathrm{e}^{x\ln a} \times \ln a = a^{x}\ln a.

In the formula booklet
f(x)=ax⇒f′(x)=ax(ln⁡a)f(x) = a^{x} \Rightarrow f'(x) = a^{x}(\ln a)

For logs, change the base to e\mathrm{e}, as in 1.7: log⁡ax=ln⁡xln⁡a\log_{a}x = \frac{\ln x}{\ln a}. The constant 1ln⁡a\frac{1}{\ln a} just rides along, so the derivative is 1ln⁡a×1x\frac{1}{\ln a} \times \frac{1}{x}.

In the formula booklet
f(x)=log⁡ax⇒f′(x)=1xln⁡af(x) = \log_{a}x \Rightarrow f'(x) = \frac{1}{x\ln a}
Worked exampleDifferentiate y=52xy = 5^{2x}.

Try it first, then reveal one step at a time.

  1. The exponent is 2x2x, so use the chain rule. Let u=2xu = 2x, so that y=5uy = 5^{u}.
Check yourself
Differentiate y=log⁡3(x2+1)y = \log_{3}(x^{2} + 1).
Worked exampleFind the equation of the tangent to the curve y=log⁡2xy = \log_{2}x at the point where x=8x = 8.

Try it first, then reveal one step at a time.

  1. Find the point. y=log⁡28=3y = \log_{2}8 = 3, since 23=82^{3} = 8. So the point is (8,3)(8, 3).
Check yourself
Find the gradient of y=2xy = 2^{x} at x=3x = 3. Give your answer to 3 significant figures.

Derivatives of the inverse trig functions

y=arcsin⁡xy = \arcsin x means sin⁡y=x\sin y = x, with −π2≤y≤π2-\frac{\pi}{2} \le y \le \frac{\pi}{2}. It is one of the , and it has no formula in xx to differentiate directly.

So differentiate the other way round. From x=sin⁡yx = \sin y you get dxdy=cos⁡y\frac{\mathrm{d}x}{\mathrm{d}y} = \cos y. By the chain rule, dydx×dxdy=1\frac{\mathrm{d}y}{\mathrm{d}x} \times \frac{\mathrm{d}x}{\mathrm{d}y} = 1, so dydx=1cos⁡y\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{1}{\cos y}.

Now write cos⁡y\cos y in terms of xx. Since cos⁡2y=1−sin⁡2y=1−x2\cos^{2}y = 1 - \sin^{2}y = 1 - x^{2}, and cos⁡y≥0\cos y \ge 0 for yy in that range, cos⁡y=1−x2\cos y = \sqrt{1 - x^{2}}.

In the formula booklet
f(x)=arcsin⁡x⇒f′(x)=11−x2f(x) = \arcsin x \Rightarrow f'(x) = \frac{1}{\sqrt{1 - x^{2}}}
In the formula booklet
f(x)=arccos⁡x⇒f′(x)=−11−x2f(x) = \arccos x \Rightarrow f'(x) = -\frac{1}{\sqrt{1 - x^{2}}}
In the formula booklet
f(x)=arctan⁡x⇒f′(x)=11+x2f(x) = \arctan x \Rightarrow f'(x) = \frac{1}{1 + x^{2}}

arccos⁡x\arccos x works like arcsin⁡x\arcsin x, with a minus sign: it is another “co” function. The arcsin⁡\arcsin and arccos⁡\arccos results hold for −1<x<1-1 < x < 1.

Worked exampleDifferentiate y=arctan⁡(3x)y = \arctan(3x).

Try it first, then reveal one step at a time.

  1. Use the chain rule with inside u=3xu = 3x, so dudx=3\frac{\mathrm{d}u}{\mathrm{d}x} = 3.
Check yourself
Differentiate y=arccos⁡(4x)y = \arccos(4x).
Worked exampleFind the exact gradient of y=arcsin⁡(x2)y = \arcsin\left(\frac{x}{2}\right) at x=1x = 1.

Try it first, then reveal one step at a time.

  1. Use the chain rule with inside u=x2u = \frac{x}{2}, so dudx=12\frac{\mathrm{d}u}{\mathrm{d}x} = \frac{1}{2}.
Check yourself
Differentiate y=arctan⁡(x2)y = \arctan(x^{2}).

Integrating them back

Every derivative in this lesson, read backwards, is an integral. Since ddxtan⁡x=sec⁡2x\frac{\mathrm{d}}{\mathrm{d}x}\tan x = \sec^{2}x, you know that ∫sec⁡2x dx=tan⁡x+C\int \sec^{2}x\,\mathrm{d}x = \tan x + C.

Learn this
∫sec⁡2x dx=tan⁡x+C∫sec⁡xtan⁡x dx=sec⁡x+C∫cosec⁡2x dx=−cot⁡x+C∫cosec⁡xcot⁡x dx=−cosec⁡x+C\begin{aligned} \int \sec^{2}x\,\mathrm{d}x &= \tan x + C \\ \int \sec x\tan x\,\mathrm{d}x &= \sec x + C \\ \int \operatorname{cosec}^{2}x\,\mathrm{d}x &= -\cot x + C \\ \int \operatorname{cosec}x\cot x\,\mathrm{d}x &= -\operatorname{cosec}x + C \end{aligned}

These four are not in the booklet as integrals. Learn them, or rebuild them from the derivatives.

The booklet does give these three, for a constant a>0a > 0.

In the formula booklet
∫ax dx=1ln⁡aax+C\int a^{x}\,\mathrm{d}x = \frac{1}{\ln a}a^{x} + C
In the formula booklet
∫1a2+x2 dx=1aarctan⁡(xa)+C\int \frac{1}{a^{2} + x^{2}}\,\mathrm{d}x = \frac{1}{a}\arctan\left(\frac{x}{a}\right) + C
In the formula booklet
∫1a2−x2 dx=arcsin⁡(xa)+C,∣x∣<a\int \frac{1}{\sqrt{a^{2} - x^{2}}}\,\mathrm{d}x = \arcsin\left(\frac{x}{a}\right) + C, \quad \lvert x\rvert < a

Differentiate the arctan⁡\arctan one to see where the 1a\frac{1}{a} comes from: 1a×11+x2a2×1a=1a2+x2\frac{1}{a} \times \frac{1}{1 + \frac{x^{2}}{a^{2}}} \times \frac{1}{a} = \frac{1}{a^{2} + x^{2}}. The arcsin⁡\arcsin one has no 1a\frac{1}{a} in front.

With a linear expression kx+bkx + b inside, integrate as usual and divide by kk, exactly as in 5.10.

Worked exampleFind ∫cosec⁡2(3−2x) dx\int \operatorname{cosec}^{2}(3 - 2x)\,\mathrm{d}x.

Try it first, then reveal one step at a time.

  1. cosec⁡2\operatorname{cosec}^{2} integrates to −cot⁡-\cot, so start from −cot⁡(3−2x)-\cot(3 - 2x).
Check yourself
Find ∫6x dx\int 6^{x}\,\mathrm{d}x.
Worked exampleFind ∫125−4x2 dx\int \frac{1}{\sqrt{25 - 4x^{2}}}\,\mathrm{d}x.

Try it first, then reveal one step at a time.

  1. Match the arcsin⁡\arcsin form 1a2−u2\frac{1}{\sqrt{a^{2} - u^{2}}}. Here a2=25a^{2} = 25 and u2=4x2u^{2} = 4x^{2}, so a=5a = 5 and u=2xu = 2x.
Check yourself
Find ∫sec⁡(3x)tan⁡(3x) dx\int \sec(3x)\tan(3x)\,\mathrm{d}x.

An indefinite integral is not one function. Each value of CC gives a different curve, so ∫f(x) dx\int f(x)\,\mathrm{d}x is a , as you saw in 5.5. They all have the same shape, shifted up or down.

One known point on the curve fixes CC, and so picks out a single curve.

Worked exampleA curve y=f(x)y = f(x) has gradient f′(x)=69+x2f'(x) = \frac{6}{9 + x^{2}} and passes through the point (3,π)(3, \pi). Find f(x)f(x).

Try it first, then reveal one step at a time.

  1. Use the arctan⁡\arctan form with a=3a = 3: ∫69+x2 dx=6×13arctan⁡(x3)+C\int \frac{6}{9 + x^{2}}\,\mathrm{d}x = 6 \times \frac{1}{3}\arctan\left(\frac{x}{3}\right) + C.
Four curves y equals 2 arctan of x over 3 plus C, for C equal to minus 2, 0, pi over 2 and 3.5. Each is the same S-shaped curve shifted up or down. The curve with C equal to pi over 2 is highlighted and passes through the point 3, pi. x y O C = −2 C = 0 C = π/2 C = 3.5 (3, π)
Part of the family y=2arctan⁡(x3)+Cy = 2\arctan\left(\frac{x}{3}\right) + C. Only C=π2C = \frac{\pi}{2} passes through (3,π)(3, \pi).

Quadratic denominators: completing the square

Take 1x2+4x+7\frac{1}{x^{2} + 4x + 7}. The discriminant is 16−28<016 - 28 < 0, so the quadratic has no real roots and won't factorise.

Complete the square instead: x2+4x+7=(x+2)2+3x^{2} + 4x + 7 = (x + 2)^{2} + 3. That is a2+u2a^{2} + u^{2} with a=3a = \sqrt{3} and u=x+2u = x + 2, which is the arctan⁡\arctan form with a linear inside.

Worked exampleFind ∫1x2−6x+13 dx\int \frac{1}{x^{2} - 6x + 13}\,\mathrm{d}x.

Try it first, then reveal one step at a time.

  1. Complete the square: x2−6x+13=(x−3)2−9+13=(x−3)2+4x^{2} - 6x + 13 = (x - 3)^{2} - 9 + 13 = (x - 3)^{2} + 4.
Check yourself
Find ∫1x2+10x+29 dx\int \frac{1}{x^{2} + 10x + 29}\,\mathrm{d}x.

The same idea works for arcsin⁡\arcsin when there is a square root underneath and the x2x^{2} term is negative. Take out the minus sign first, then complete the square inside the bracket. Write the quadratic as a2−(x−h)2a^{2} - (x - h)^{2}.

Check yourself
Find ∫16x−x2−5 dx\int \frac{1}{\sqrt{6x - x^{2} - 5}}\,\mathrm{d}x.
Worked exampleA particle moves along a line with velocity v(t)=10t2+4t+8v(t) = \frac{10}{t^{2} + 4t + 8}, in m s−1\text{m s}^{-1}, where t≥0t \ge 0 is the time in seconds. Use your calculator to find the distance dd it travels in the first 44 seconds. Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. The denominator is (t+2)2+4(t + 2)^{2} + 4, which is always positive. So v(t)>0v(t) > 0: the particle never turns back, and the distance is ∫04v(t) dt\int_{0}^{4} v(t)\,\mathrm{d}t.

Quadratic denominators: partial fractions

If the denominator does factorise into two different linear factors, split the fraction into first, as in 1.11. Each piece then integrates to a log.

So with a quadratic denominator, test the discriminant Δ\Delta first. If Δ>0\Delta > 0, factorise and use partial fractions. If Δ<0\Delta < 0, complete the square and use arctan⁡\arctan.

Worked exampleFind ∫5x2−x−6 dx\int \frac{5}{x^{2} - x - 6}\,\mathrm{d}x.

Try it first, then reveal one step at a time.

  1. Factorise: x2−x−6=(x−3)(x+2)x^{2} - x - 6 = (x - 3)(x + 2).
Check yourself
Find ∫2x2−1 dx\int \frac{2}{x^{2} - 1}\,\mathrm{d}x.
Worked exampleFind the exact value of ∫013x+5(x+1)(x+3) dx\int_{0}^{1} \frac{3x + 5}{(x + 1)(x + 3)}\,\mathrm{d}x.

Try it first, then reveal one step at a time.

  1. Write 3x+5(x+1)(x+3)=Ax+1+Bx+3\frac{3x + 5}{(x + 1)(x + 3)} = \frac{A}{x + 1} + \frac{B}{x + 3}, so 3x+5=A(x+3)+B(x+1)3x + 5 = A(x + 3) + B(x + 1).
Check yourself
Find ∫241x(x−1) dx\int_{2}^{4} \frac{1}{x(x - 1)}\,\mathrm{d}x. Give your answer to 3 significant figures.

Common mistakes

  • Dropping the factor from the inside. ddxtan⁡(5x)\frac{\mathrm{d}}{\mathrm{d}x}\tan(5x) is 5sec⁡2(5x)5\sec^{2}(5x), and when you integrate you divide by that 55 instead.
  • Multiplying instead of dividing when you integrate f(kx+b)f(kx + b). Differentiate your answer to check it.
  • Losing the minus sign on a “co” function. cot⁡x\cot x, cosec⁡x\operatorname{cosec}x and arccos⁡x\arccos x all have negative derivatives.
  • Putting 1a\frac{1}{a} in front of the arcsin⁡\arcsin integral. Only the arctan⁡\arctan integral has it, so check by differentiating.
  • Writing ln⁡(x2+9)\ln(x^{2} + 9) for ∫1x2+9 dx\int \frac{1}{x^{2} + 9}\,\mathrm{d}x. A log needs the derivative of the denominator on top. Here the answer is an arctan⁡\arctan.

Exam tips

  • “Show that” a derivative: start from the function and work forwards to the given result. Never start from the answer, and make your last line match it exactly.
  • On Paper 1, leave answers exact, such as ln⁡329\ln\frac{32}{9}. Know exact values like arctan⁡1=π4\arctan 1 = \frac{\pi}{4}.
  • On Paper 2, write down the integral you put into your calculator, with its limits, then give the answer to 3 s.f. On Paper 1 the same question needs exact working.
  • Every indefinite integral ends in + C+\,C. Leaving it out can cost an accuracy mark.

Key takeaways

Learn this∫sec⁡2x dx=tan⁡x+C∫sec⁡xtan⁡x dx=sec⁡x+C∫cosec⁡2x dx=−cot⁡x+C∫cosec⁡xcot⁡x dx=−cosec⁡x+C\begin{aligned} \int \sec^{2}x\,\mathrm{d}x &= \tan x + C \\ \int \sec x\tan x\,\mathrm{d}x &= \sec x + C \\ \int \operatorname{cosec}^{2}x\,\mathrm{d}x &= -\cot x + C \\ \int \operatorname{cosec}x\cot x\,\mathrm{d}x &= -\operatorname{cosec}x + C \end{aligned}
Learn thisEvery “co” function has a minus sign in its derivative: cos⁡x\cos x, cot⁡x\cot x, cosec⁡x\operatorname{cosec}x and arccos⁡x\arccos x.
In bookletddxax=axln⁡a\frac{\mathrm{d}}{\mathrm{d}x}a^{x} = a^{x}\ln a and ddxlog⁡ax=1xln⁡a\frac{\mathrm{d}}{\mathrm{d}x}\log_{a}x = \frac{1}{x\ln a}.
In bookletddxarcsin⁡x=11−x2\frac{\mathrm{d}}{\mathrm{d}x}\arcsin x = \frac{1}{\sqrt{1 - x^{2}}} and ddxarctan⁡x=11+x2\frac{\mathrm{d}}{\mathrm{d}x}\arctan x = \frac{1}{1 + x^{2}}; arccos⁡x\arccos x is the arcsin⁡\arcsin result with a minus sign.
Learn thisWith kx+bkx + b inside: differentiate, then multiply by kk; integrate, then divide by kk.
Learn this1quadratic\frac{1}{\text{quadratic}}: if Δ<0\Delta < 0, complete the square and use arctan⁡\arctan; if Δ>0\Delta > 0, use partial fractions and logs.
Learn thisAn indefinite integral is a family of curves F(x)+CF(x) + C. One known point fixes CC.

Practise this

3 past-paper questions on 5.15 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 5.15 →