5.9 · AHL · HL onlyPaper 1Paper 2Paper 3

Differentiation rules and related rates

In a minute

Six standard , for xnx^{n}, sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x, ex\mathrm{e}^{x} and ln⁡x\ln x, plus three rules let you differentiate most models in this course. The handles a function inside another, and the and handle products and fractions. The chain rule also links , and every rule helps you find maximum and minimum points.

You'll be able to

  • Differentiate xnx^{n} for rational nn, and sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x, ex\mathrm{e}^{x} and ln⁡x\ln x, with xx in .
  • Use the chain rule, product rule and quotient rule, setting out uu, vv and their derivatives.
  • Solve related rates problems, giving each rate with its sign and units, and interpret the answer in context.
  • Use these derivatives to find maximum and minimum points of models and solve problems, by hand or with a GDC.
Before you start3 quick questions on what this builds on
Check yourself
Differentiate y=6x2y = \frac{6}{x^{2}}.
Check yourself
Let f(x)=x2+1f(x) = x^{2} + 1 and g(x)=3x−2g(x) = 3x - 2. Find (f∘g)(x)(f \circ g)(x).
Check yourself
Write 135∘135^{\circ} in radians.

Revise first: 1.5 Exponents and introductory logarithms, 1.10 Rational exponents, 2.5 Modelling with functions, 2.7 Composite and inverse functions, 3.7 Radians, arc length and sector area, 5.1 Limits and the derivative as a rate of change, 5.3 Differentiation of integer-power polynomials, 5.6 Local maximum and minimum points and 5.7 Optimisation problems

Derivatives of the standard functions

In 5.3 you differentiated integer powers of xx. Models in AI also use roots, sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x, ex\mathrm{e}^{x} and ln⁡x\ln x. Each has a standard derivative, and all of them are in the formula booklet.

Start with powers. The works for every rational power nn, not just whole numbers. Write roots and fractions as powers of xx first: x=x12\sqrt{x} = x^{\frac{1}{2}} and 1x=x−12\frac{1}{\sqrt{x}} = x^{-\frac{1}{2}}.

In the formula booklet
f(x)=xn⇒f′(x)=nxn−1f(x) = x^{n} \Rightarrow f'(x) = nx^{n-1}
Worked exampleLet f(x)=4x32−6xf(x) = 4x^{\frac{3}{2}} - \frac{6}{\sqrt{x}}, for x>0x > 0. Find f′(x)f'(x).

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

  1. Write every term as a power of xx: f(x)=4x32−6x−12f(x) = 4x^{\frac{3}{2}} - 6x^{-\frac{1}{2}}.

Now the trig functions. On the graph of y=sin⁡xy = \sin x the gradient is 1 at x=0x = 0, 0 at x=π2x = \frac{\pi}{2} and −1-1 at x=πx = \pi. Those are the values of cos⁡x\cos x. So the gradient function of sin⁡x\sin x is cos⁡x\cos x.

These trig results are true only when xx is in . In calculus, always work in radians, and set your GDC to radians too.

In the formula booklet
f(x)=sin⁡x⇒f′(x)=cos⁡xf(x) = \sin x \Rightarrow f'(x) = \cos x
In the formula booklet
f(x)=cos⁡x⇒f′(x)=−sin⁡xf(x) = \cos x \Rightarrow f'(x) = -\sin x
In the formula booklet
f(x)=tan⁡x⇒f′(x)=1cos⁡2xf(x) = \tan x \Rightarrow f'(x) = \frac{1}{\cos^{2} x}

The function ex\mathrm{e}^{x} is special: its gradient at every point equals its height. And ln⁡x\ln x, the , has gradient 1x\frac{1}{x}, for x>0x > 0.

In the formula booklet
f(x)=ex⇒f′(x)=exf(x) = \mathrm{e}^{x} \Rightarrow f'(x) = \mathrm{e}^{x}
In the formula booklet
f(x)=ln⁡x⇒f′(x)=1xf(x) = \ln x \Rightarrow f'(x) = \frac{1}{x}

Sums and constant multiples work as they did in 5.3. Differentiate term by term and keep the constant in front. A constant on its own, such as ln⁡5\ln 5 or e2\mathrm{e}^{2}, differentiates to 0.

Check yourself
Differentiate y=3tan⁡x−2cos⁡xy = 3\tan x - 2\cos x.
Worked exampleA company models its monthly revenue as R(x)=50ln⁡x+2xR(x) = 50\ln x + 2x, where RR and the advertising spend xx are both in thousands of dollars, for x≥1x \ge 1. (a) Find R′(x)R'(x). (b) Find R′(25)R'(25) and interpret it in context.

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

  1. (a) ln⁡x\ln x gives 1x\frac{1}{x} and 2x2x gives 22, so R′(x)=50x+2R'(x) = \frac{50}{x} + 2.
Check yourself
Find the xx-coordinate of the point on y=2ex−5xy = 2\mathrm{e}^{x} - 5x where the gradient is zero. Give your answer to 3 s.f.

The chain rule

(3x2−1)5(3x^{2} - 1)^{5} is not a power of xx. It is the fifth power applied to 3x2−13x^{2} - 1: a with an inside, 3x2−13x^{2} - 1, and an outside, (…)5(\ldots)^{5}.

The key idea is that rates multiply. If uu changes 4 times as fast as xx, and yy changes 3 times as fast as uu, then yy changes 3×4=123 \times 4 = 12 times as fast as xx.

In the formula booklet
y=g(u), where u=f(x)⇒dydx=dydu×dudxy = g(u),\ \text{where } u = f(x) \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}u} \times \frac{\mathrm{d}u}{\mathrm{d}x}

This is the , and it is in the booklet. In words: differentiate the outside, leave the inside alone, then multiply by the of the inside.

1. Name the inside: let uu be the expression in the brackets, under the root or in the power.

2. Write yy in terms of uu. Find dydu\frac{\mathrm{d}y}{\mathrm{d}u} and dudx\frac{\mathrm{d}u}{\mathrm{d}x}.

3. Multiply them, then write uu back in terms of xx.

Worked exampleDifferentiate y=(3x2−1)5y = (3x^{2} - 1)^{5}.

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

  1. Let u=3x2−1u = 3x^{2} - 1, so y=u5y = u^{5}.

With practice you can skip naming uu. These patterns appear in many AI models, where f(x)f(x) is the inside and kk is a constant:

Learn this
ddx ekx=kekxddxsin⁡(kx)=kcos⁡(kx)ddxcos⁡(kx)=−ksin⁡(kx)\frac{\mathrm{d}}{\mathrm{d}x}\,\mathrm{e}^{kx} = k\mathrm{e}^{kx} \qquad \frac{\mathrm{d}}{\mathrm{d}x}\sin(kx) = k\cos(kx) \qquad \frac{\mathrm{d}}{\mathrm{d}x}\cos(kx) = -k\sin(kx)
Learn this
ddx ef(x)=f′(x) ef(x)ddxln⁡(f(x))=f′(x)f(x)  for f(x)>0\frac{\mathrm{d}}{\mathrm{d}x}\,\mathrm{e}^{f(x)} = f'(x)\,\mathrm{e}^{f(x)} \qquad \frac{\mathrm{d}}{\mathrm{d}x}\ln\bigl(f(x)\bigr) = \frac{f'(x)}{f(x)}\ \text{ for } f(x) > 0
Check yourself
Differentiate y=ln⁡(4x+1)y = \ln(4x + 1), for x>−14x > -\frac{1}{4}.
Check yourself
A cup of coffee cools so that its temperature is T(t)=21+64e−0.05tT(t) = 21 + 64\mathrm{e}^{-0.05t} ∘C^{\circ}\mathrm{C}, tt minutes after it is poured. Find T′(10)T'(10), in ∘C^{\circ}\mathrm{C} per minute, to 3 s.f. Include the sign.

The chain rule also finds the maximum or minimum of a model with a root in it, as in 5.6.

Worked exampleA ship sails past a lighthouse. Its distance from the lighthouse is modelled by D(t)=25t2−36t+40D(t) = \sqrt{25t^{2} - 36t + 40} km, tt hours after noon, for 0≤t≤20 \le t \le 2. (a) Find D′(t)D'(t). (b) Find the least distance between the ship and the lighthouse, and the time when it happens.

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

  1. (a) Let u=25t2−36t+40u = 25t^{2} - 36t + 40, so D=u12D = u^{\frac{1}{2}}. Then dDdu=12u−12\frac{\mathrm{d}D}{\mathrm{d}u} = \frac{1}{2}u^{-\frac{1}{2}} and dudt=50t−36\frac{\mathrm{d}u}{\mathrm{d}t} = 50t - 36.

The product and quotient rules

te−0.5tt\mathrm{e}^{-0.5t} is two functions multiplied together. Its derivative is not the product of their derivatives: x×x=x2x \times x = x^{2} has derivative 2x2x, not 1×1=11 \times 1 = 1.

Picture uvuv as the area of a rectangle with sides uu and vv. If both sides grow a little, the area gains a strip uu times the growth of vv, plus a strip vv times the growth of uu. The tiny corner piece is too small to matter.

In the formula booklet
y=uv⇒dydx=udvdx+vdudxy = uv \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = u\frac{\mathrm{d}v}{\mathrm{d}x} + v\frac{\mathrm{d}u}{\mathrm{d}x}

This is the , from the booklet. Write down uu, vv, dudx\frac{\mathrm{d}u}{\mathrm{d}x} and dvdx\frac{\mathrm{d}v}{\mathrm{d}x} first, then fill in the formula. Each part may need the on its own.

Worked exampleThe concentration of a medicine in a patient's blood is modelled by C(t)=12te−0.5tC(t) = 12t\mathrm{e}^{-0.5t} mg per litre, tt hours after a dose, for 0≤t≤100 \le t \le 10. (a) Find C′(t)C'(t). (b) Find the greatest concentration, and when it happens.

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

  1. (a) Let u=12tu = 12t and v=e−0.5tv = \mathrm{e}^{-0.5t}. Then dudt=12\frac{\mathrm{d}u}{\mathrm{d}t} = 12 and, by the chain rule, dvdt=−0.5e−0.5t\frac{\mathrm{d}v}{\mathrm{d}t} = -0.5\mathrm{e}^{-0.5t}.
Check yourself
Differentiate y=x2ln⁡xy = x^{2}\ln x, for x>0x > 0.

For one function divided by another, use the . It is in the booklet too.

In the formula booklet
y=uv⇒dydx=vdudx−udvdxv2y = \frac{u}{v} \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{v\frac{\mathrm{d}u}{\mathrm{d}x} - u\frac{\mathrm{d}v}{\mathrm{d}x}}{v^{2}}

Order matters, because of the minus sign. The top starts with vv, the bottom of the fraction. Say it as: bottom times the derivative of the top, minus top times the derivative of the bottom, all over the bottom squared.

Worked exampleA student learning to touch-type has a typing speed of W(x)=60xx+4W(x) = \frac{60x}{x + 4} words per minute after xx weeks of practice, for x≥0x \ge 0. (a) Show that W′(x)=240(x+4)2W'(x) = \frac{240}{(x + 4)^{2}}. (b) Find W′(6)W'(6) and interpret it. (c) Comment on how W′(x)W'(x) changes as xx increases.

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

  1. (a) Let u=60xu = 60x and v=x+4v = x + 4, so dudx=60\frac{\mathrm{d}u}{\mathrm{d}x} = 60 and dvdx=1\frac{\mathrm{d}v}{\mathrm{d}x} = 1.
Check yourself
Let f(x)=2x+3x−1f(x) = \frac{2x + 3}{x - 1}, for x≠1x \neq 1. Find f′(x)f'(x).

On Paper 2 you often find f′(x)f'(x) by hand, then let the GDC solve f′(x)=0f'(x) = 0. Write down the equation you solve: that line earns the method mark.

Worked exampleThe end of a vibrating ruler is yy cm from its rest position tt seconds after it is flicked, where y=4e−0.3tsin⁡(2t)y = 4\mathrm{e}^{-0.3t}\sin(2t), for t≥0t \ge 0. (a) Find dydt\frac{\mathrm{d}y}{\mathrm{d}t}. (b) Use your GDC to find the first time t>0t > 0 when dydt=0\frac{\mathrm{d}y}{\mathrm{d}t} = 0. Give your answer to 3 s.f. (c) Find the value of yy at this time and interpret it.

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

  1. (a) Let u=4e−0.3tu = 4\mathrm{e}^{-0.3t} and v=sin⁡(2t)v = \sin(2t). By the chain rule, dudt=−1.2e−0.3t\frac{\mathrm{d}u}{\mathrm{d}t} = -1.2\mathrm{e}^{-0.3t} and dvdt=2cos⁡(2t)\frac{\mathrm{d}v}{\mathrm{d}t} = 2\cos(2t).

Related rates of change

Oil leaking from a ship spreads as a circle. Its radius rr and area AA both grow with time, and their rates are linked.

Rates like these are . AA depends on rr, and rr depends on time tt, so the links them:

Learn this
dAdt=dAdr×drdt\frac{\mathrm{d}A}{\mathrm{d}t} = \frac{\mathrm{d}A}{\mathrm{d}r} \times \frac{\mathrm{d}r}{\mathrm{d}t}

A is positive when the quantity is increasing and negative when it is decreasing. Its units are per unit of time, such as m2 min−1\text{m}^{2}\text{ min}^{-1} for dAdt\frac{\mathrm{d}A}{\mathrm{d}t}.

1. Name the variables. Write down the rate you know, with its sign, and the rate you want.

2. Write an equation linking the two quantities that is true at every moment, not just at the instant in the question.

3. Differentiate it, then write the chain rule linking the rates.

4. Only now substitute the values at the instant. Give the answer with its units.

Worked exampleAn oil slick is a circle whose radius grows at 0.3 m min−10.3\text{ m min}^{-1}. Find the rate at which its area is increasing when the radius is 12 m. Give your answer to 3 s.f.

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

  1. Let the radius be rr m and the area A m2A\text{ m}^{2} at time tt minutes. You know drdt=0.3\frac{\mathrm{d}r}{\mathrm{d}t} = 0.3 and want dAdt\frac{\mathrm{d}A}{\mathrm{d}t}.
Check yourself
A spherical snowball melts so that its volume falls by 10 cm310\text{ cm}^{3} each minute. Use V=43πr3V = \frac{4}{3}\pi r^{3} to find drdt\frac{\mathrm{d}r}{\mathrm{d}t}, in cm per minute, when r=5r = 5.
Check yourself
The power a cyclist needs to overcome air resistance is modelled by P=0.2v3P = 0.2v^{3} watts, where vv is the speed in m s−1\text{m s}^{-1}. The cyclist's speed is 9 m s−19\text{ m s}^{-1} and increasing at 0.4 m s−20.4\text{ m s}^{-2}. Find dPdt\frac{\mathrm{d}P}{\mathrm{d}t}, in watts per second, to 3 s.f.

Some problems link two lengths in a right-angled triangle. Make the length you want the subject with Pythagoras, then use the chain rule.

θ O (observer) B (take-off point) D (drone) rising 40 m h s
The drone rises straight up from BB. At every moment s2=h2+402s^{2} = h^{2} + 40^{2} and h=40tan⁡θh = 40\tan\theta.
Worked exampleA drone rises vertically from a point BB at a constant 3 m s−13\text{ m s}^{-1}. An observer OO stands on level ground 40 m from BB. The drone is hh m above BB and ss m from OO. Find the rate at which ss is increasing when h=30h = 30.

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

  1. You know dhdt=3\frac{\mathrm{d}h}{\mathrm{d}t} = 3 and want dsdt\frac{\mathrm{d}s}{\mathrm{d}t}.

Common mistakes

  • Writing the derivative of e−0.5t\mathrm{e}^{-0.5t} as e−0.5t\mathrm{e}^{-0.5t}. The chain rule brings down the −0.5-0.5: it is −0.5e−0.5t-0.5\mathrm{e}^{-0.5t}.
  • Multiplying the two derivatives for a product. The derivative of uvuv is udvdx+vdudxu\frac{\mathrm{d}v}{\mathrm{d}x} + v\frac{\mathrm{d}u}{\mathrm{d}x}, never dudx×dvdx\frac{\mathrm{d}u}{\mathrm{d}x} \times \frac{\mathrm{d}v}{\mathrm{d}x}.
  • Reversing the top of the quotient rule. Start with vdudxv\frac{\mathrm{d}u}{\mathrm{d}x}, or the sign of the whole answer flips.
  • Giving a falling quantity a positive rate. If a volume drops by 10 cm310\text{ cm}^{3} each minute, write dVdt=−10\frac{\mathrm{d}V}{\mathrm{d}t} = -10.
  • Using degree mode for trig derivatives on the GDC. Set radians before you graph, solve or find a gradient.

Exam tips

  • Find f′(x)f'(x) for a product or quotient: show the rule with uu, vv and their derivatives filled in. That line earns the method mark even if a later slip costs the answer.
  • Hence find the maximum: write down your derivative set equal to zero, then solve it by hand or on the GDC. A wrong derivative used correctly can still earn follow-through marks.
  • Interpret a rate: say what changes, by about how much, per unit of what, at that moment. For a decreasing quantity the rate is negative, but how fast it falls is the size of the rate.

Key takeaways

In booklety=g(u), where u=f(x)⇒dydx=dydu×dudxy = g(u),\ \text{where } u = f(x) \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}u} \times \frac{\mathrm{d}u}{\mathrm{d}x}
In booklety=uv⇒dydx=udvdx+vdudxy = uv \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = u\frac{\mathrm{d}v}{\mathrm{d}x} + v\frac{\mathrm{d}u}{\mathrm{d}x}
In booklety=uv⇒dydx=vdudx−udvdxv2y = \frac{u}{v} \Rightarrow \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{v\frac{\mathrm{d}u}{\mathrm{d}x} - u\frac{\mathrm{d}v}{\mathrm{d}x}}{v^{2}}
Learn thisdAdt=dAdr×drdt\frac{\mathrm{d}A}{\mathrm{d}t} = \frac{\mathrm{d}A}{\mathrm{d}r} \times \frac{\mathrm{d}r}{\mathrm{d}t}
In bookletFor xx in radians: xn→nxn−1x^{n} \to nx^{n-1} for any rational nn; sin⁡x→cos⁡x\sin x \to \cos x; cos⁡x→−sin⁡x\cos x \to -\sin x; tan⁡x→1cos⁡2x\tan x \to \frac{1}{\cos^{2} x}; ex→ex\mathrm{e}^{x} \to \mathrm{e}^{x}; ln⁡x→1x\ln x \to \frac{1}{x} for x>0x > 0.
Learn thisChain rule in words: differentiate the outside, keep the inside, multiply by the inside's derivative. So, for a constant kk, ekx→kekx\mathrm{e}^{kx} \to k\mathrm{e}^{kx} and sin⁡(kx)→kcos⁡(kx)\sin(kx) \to k\cos(kx) in radians.
Learn thisFor a product or a quotient, write down uu, vv, dudx\frac{\mathrm{d}u}{\mathrm{d}x} and dvdx\frac{\mathrm{d}v}{\mathrm{d}x} first. The top of the quotient rule starts with vdudxv\frac{\mathrm{d}u}{\mathrm{d}x}.
Learn thisRelated rates: link the quantities with an equation true at every moment, differentiate, write the chain rule, then substitute the values at the instant.
Learn thisA decreasing quantity has a negative rate of change. Give every rate with its units, such as m2 min−1\text{m}^{2}\text{ min}^{-1}.
Learn thisTo find a maximum or minimum of a model, find f′(x)f'(x) with these rules and solve f′(x)=0f'(x) = 0. Check the sign of f′(x)f'(x) either side, and compare with the values at the end points of the domain.

Practise this

16 past-paper questions on Techniques of differentiation in the AI HL bank, each with a mark scheme and a worked explanation.

Also: Related rates of change (8) · Differentiating special functions (3)

Practise Techniques of differentiation →