Educerie

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.6 · SL and HL

Standard derivatives, and the chain, product and quotient rules

The power rule handles polynomials, but how do you differentiate functions such as ex2−3xe^{x^{2}-3x}, x2sin⁡xx^{2}\sin x or ln⁡xx\dfrac{\ln x}{x}?

What you will learn

  • Know the derivatives of rational powers, sin x, cos x, e to the x and ln x, with x in radians
  • Understand the chain rule as rates multiplying through a function of a function
  • Understand the product and quotient rules and why the order matters in the quotient rule
  • Know how to choose the rule from the last operation and combine rules

You must be able to

  1. Differentiate composite functions with the chain rule
  2. Differentiate products and quotients, factorising the result
  3. Show that a derivative takes a given form, with every step visible
  4. Calculate exact gradients, tangents and stationary points from a derivative
  5. Use tables of values of f, g and their derivatives to find derivatives of combinations
  6. Differentiate sums and multiples of the standard functions

In the exam. on every paper, in every session. Paper 1 asks you to differentiate by hand, most often as "find f′(x)f'(x)" or "show that f′(x)=…f'(x) = \ldots" (3 to 4 marks), then to use the result: an exact gradient, a tangent or normal, the stationary points. Paper 2 assumes the technique and lets the GDC evaluate. Paper 3 (HL) uses the same rules on functions with letters in place of numbers, such as eaxsin⁡bxe^{ax}\sin bx, and asks you to show a general result. These rules are the machinery for 5.7 to 5.9 and for HL 5.12 onwards.

1The standard derivatives

ddxxn=nxn−1\dfrac{d}{dx}x^{n} = nx^{n-1} (n∈Qn \in \mathbb{Q}) · ddxsin⁡x=cos⁡x\dfrac{d}{dx}\sin x = \cos x · ddxcos⁡x=−sin⁡x\dfrac{d}{dx}\cos x = -\sin x · ddxex=ex\dfrac{d}{dx}e^{x} = e^{x} · ddxln⁡x=1x\dfrac{d}{dx}\ln x = \dfrac{1}{x}. (Formula booklet; xx in radians.)

Rational powers

  • The power rule from 5.3 works unchanged for fractional and negative powers. Roots and reciprocals are powers in disguise, so rewrite first.
  • Watch the domain. x\sqrt{x} exists at x=0x = 0, but its derivative 12x\dfrac{1}{2\sqrt{x}} does not (the tangent there is vertical). So the derivative is defined only for x>0x > 0.
ddx(x2/3)=23x−1/3\frac{d}{dx}\left(x^{2/3}\right) = \tfrac{2}{3}x^{-1/3}ddx(10x)=ddx(10x−1/2)=10×(−12)x−3/2=−5x−3/2\frac{d}{dx}\left(\frac{10}{\sqrt{x}}\right) = \frac{d}{dx}\left(10x^{-1/2}\right) = 10 \times \left(-\tfrac{1}{2}\right)x^{-3/2} = -5x^{-3/2}

sin and cos

  • Figure 1 shows why the derivative of sin⁡x\sin x is cos⁡x\cos x.
    • Where sin⁡x\sin x is steepest going up (x=0x = 0), its gradient is 1, the value of cos⁡0\cos 0.
    • At the top (x=π2x = \tfrac{\pi}{2}) the gradient is 0=cos⁡π20 = \cos\tfrac{\pi}{2}.
    • Going down through π\pi the gradient is −1=cos⁡π-1 = \cos\pi.
  • The gradient of cos⁡x\cos x is −sin⁡x-\sin x. The minus sign is there because cos⁡x\cos x starts by falling.
  • These results need xx in radians. In degrees each gains a factor of π180\dfrac{\pi}{180}.
Figure 1 · The gradient of sin x traces out cos x x y −1 1 π/2 π 3π/2 2π y = cos x y = sin x Tangents to y = sin x (teal) have gradient 1 at x = 0, 0 at x = π/2 and −1 at x = π. Plot those gradients and you get y = cos x (amber). x must be in radians for this to hold.
Figure 1 · The gradient of sin x traces out cos x

exe^{x}

  • Of all the exponentials axa^{x}, exe^{x} is the one whose gradient at every point equals its height (Figure 2).
  • That property makes ee the natural base, and is one way to define it.
Figure 2 · y = eˣ: the gradient equals the height x y −2 −1 1 2 3 4 5 1 gradient 0.37 gradient 1 gradient 2.72 y = eˣ At every point of y = eˣ the tangent's gradient is the y-coordinate: e⁻¹ ≈ 0.37, 1, and e ≈ 2.72.
Figure 2 · y = eˣ: the gradient equals the height

ln⁡x\ln x

  • The natural logarithm, defined for x>0x > 0, has gradient 1x\tfrac{1}{x} (Figure 3).
  • It is 1 at x=1x = 1, 12\tfrac{1}{2} at x=2x = 2, and so on. It is always positive but shrinking, so the curve keeps rising more and more slowly.
Figure 3 · y = ln x: the gradient is 1/x x y 1 2 3 4 5 −2 −1 1 2 gradient 1 gradient 1/2 gradient 1/4 y = ln x The tangent gradients of y = ln x at x = 1, 2 and 4 are 1, 1/2 and 1/4: always 1 ÷ x. The curve keeps rising, but ever more slowly.
Figure 3 · y = ln x: the gradient is 1 ÷ x

Sums and multiples work term by term, as before:

f(x)=2cos⁡x+9x−ex+4ln⁡xf(x) = 2\cos x + 9\sqrt{x} - e^{x} + 4\ln xf′(x)=−2sin⁡x+92x−1/2−ex+4xf'(x) = -2\sin x + \tfrac{9}{2}x^{-1/2} - e^{x} + \frac{4}{x}

A logarithm law can save work. ln⁡(7x)=ln⁡7+ln⁡x\ln(7x) = \ln 7 + \ln x, and ln⁡7\ln 7 is a constant, so ddxln⁡(7x)=1x\dfrac{d}{dx}\ln(7x) = \dfrac{1}{x}. Likewise ln⁡(x5)=5ln⁡x\ln\left(x^{5}\right) = 5\ln x has derivative 5x\dfrac{5}{x}.

2The chain rule

A composite function is a function of a function (2.5). In y=sin⁡(4x+1)y = \sin(4x + 1), first xx is turned into u=4x+1u = 4x + 1 (the inner function). Then uu is turned into y=sin⁡uy = \sin u (the outer function). Figure 4 draws the two stages.

Figure 4 · The chain rule: rates multiply through a composite x inner function u = 4x + 1 du/dx = 4 outer function y = sin u dy/du = cos u y u dy/dx = dy/du × du/dx = cos u × 4 = 4 cos(4x + 1) y = sin(4x + 1). A small change in x is multiplied by 4 on its way to u, then by cos u on its way to y.
Figure 4 · The chain rule: rates multiply through a composite

A small change in xx is multiplied by 4 on its way into uu, because dudx=4\dfrac{du}{dx} = 4. That change is then multiplied by cos⁡u\cos u on its way into yy, because dydu=cos⁡u\dfrac{dy}{du} = \cos u. Rates through a chain multiply:

Chain rule: if y=g(u)y = g(u) and u=f(x)u = f(x), then dydx=dydu×dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx}. (Formula booklet.) In words: differentiate the outside, leave the inside alone, then multiply by the derivative of the inside.

y=sin⁡(4x+1)y = \sin(4x + 1)u=4x+1,dudx=4inneru = 4x + 1, \quad \frac{du}{dx} = 4 \qquad \textcolor{#838c91}{\text{inner}}y=sin⁡u,dydu=cos⁡uoutery = \sin u, \quad \frac{dy}{du} = \cos u \qquad \textcolor{#838c91}{\text{outer}}dydx=cos⁡u×4=4cos⁡(4x+1)put u back in terms of x\frac{dy}{dx} = \cos u \times 4 = 4\cos(4x + 1) \qquad \textcolor{#838c91}{\text{put }u\text{ back in terms of }x}

Decompose, then differentiate

  • First name the layers. Which function would you apply first to xx? That is the inner one.
  • Example: y=3x2+1y = \sqrt{3x^{2}+1}. The inside is u=3x2+1u = 3x^{2}+1 and the outside is u=u1/2\sqrt{u} = u^{1/2}.
dudx=6x,dydu=12u−1/2\frac{du}{dx} = 6x, \qquad \frac{dy}{du} = \tfrac{1}{2}u^{-1/2}dydx=12(3x2+1)−1/2×6x=3x3x2+1\frac{dy}{dx} = \tfrac{1}{2}\left(3x^{2}+1\right)^{-1/2} \times 6x = \frac{3x}{\sqrt{3x^{2}+1}}

With practice, skip the uu and say it aloud: "derivative of the outside, with the same inside, times the derivative of the inside".

ddx(5−3x)8=8(5−3x)7×(−3)=−24(5−3x)7\frac{d}{dx}(5 - 3x)^{8} = 8(5 - 3x)^{7} \times (-3) = -24(5 - 3x)^{7}ddxe4−x2=e4−x2×(−2x)=−2x e4−x2\frac{d}{dx}e^{4-x^{2}} = e^{4-x^{2}} \times (-2x) = -2x\,e^{4-x^{2}}ddxsin⁡3x=3sin⁡2x×cos⁡x=3sin⁡2xcos⁡xsin⁡3x means (sin⁡x)3\frac{d}{dx}\sin^{3}x = 3\sin^{2}x \times \cos x = 3\sin^{2}x\cos x \qquad \textcolor{#838c91}{\sin^{3}x\text{ means }(\sin x)^{3}}ddx1(4x−1)2=ddx(4x−1)−2=−2(4x−1)−3×4=−8(4x−1)3\frac{d}{dx}\frac{1}{(4x-1)^{2}} = \frac{d}{dx}(4x-1)^{-2} = -2(4x-1)^{-3} \times 4 = \frac{-8}{(4x-1)^{3}}

Layers can stack, one factor per layer: ddx[cos⁡(5x)]4=4cos⁡3(5x)×(−sin⁡5x)×5=−20cos⁡3(5x)sin⁡(5x)\dfrac{d}{dx}\left[\cos(5x)\right]^{4} = 4\cos^{3}(5x) \times \left(-\sin 5x\right) \times 5 = -20\cos^{3}(5x)\sin(5x).

Three patterns come up so often that they are worth knowing as shortcuts. Each is a special case of the chain rule:

FunctionDerivativeExample
f(ax+b)f(ax + b), a linear insideaf′(ax+b)af'(ax + b)ddxsin⁡(2x)=2cos⁡(2x)\dfrac{d}{dx}\sin(2x) = 2\cos(2x)
eg(x)e^{g(x)}g′(x)eg(x)g'(x)e^{g(x)}ddxe3x=3e3x\dfrac{d}{dx}e^{3x} = 3e^{3x}
ln⁡g(x)\ln g(x)g′(x)g(x)\dfrac{g'(x)}{g(x)}ddxln⁡(x3+x)=3x2+1x3+x\dfrac{d}{dx}\ln\left(x^{3}+x\right) = \dfrac{3x^{2}+1}{x^{3}+x}

The chain rule in function notation

  • If h(x)=f(g(x))h(x) = f(g(x)), then h′(x)=f′(g(x))×g′(x)h'(x) = f'(g(x)) \times g'(x). The derivative of the outer function is evaluated at the inside, g(x)g(x), not at xx.
  • Exams use this form when ff is given only by a few values, in a table or as a tangent line.

The tangent to the graph of ff at x=4x = 4 is y=7−3xy = 7 - 3x. Let g(x)=xg(x) = \sqrt{x} and h(x)=f(g(x))h(x) = f(g(x)). Find the tangent to hh at x=16x = 16.

f(4)=7−3(4)=−5,f′(4)=−3read off the tangent at x=4f(4) = 7 - 3(4) = -5, \quad f'(4) = -3 \qquad \textcolor{#838c91}{\text{read off the tangent at }x = 4}g(16)=4,g′(x)=12x−1/2,g′(16)=18g(16) = 4, \quad g'(x) = \tfrac{1}{2}x^{-1/2}, \quad g'(16) = \tfrac{1}{8}h(16)=f(g(16))=f(4)=−5h(16) = f(g(16)) = f(4) = -5h′(16)=f′(g(16))×g′(16)=f′(4)×18=−38f′ is needed at 4, not at 16h'(16) = f'(g(16)) \times g'(16) = f'(4) \times \tfrac{1}{8} = -\tfrac{3}{8} \qquad \textcolor{#838c91}{f'\text{ is needed at }4\text{, not at }16}y+5=−38(x−16),so y=1−38xy + 5 = -\tfrac{3}{8}(x - 16), \quad \text{so } y = 1 - \tfrac{3}{8}x

The order of the two functions matters. With the same ff and gg, the derivative of g(f(x))g(f(x)) is g′(f(x))×f′(x)g'(f(x)) \times f'(x). The outer derivative is now g′g', evaluated at f(x)f(x).

Notice the difference between these pairs:

  • sin⁡(x2)\sin\left(x^{2}\right) has x2x^{2} inside. The answer is 2xcos⁡(x2)2x\cos\left(x^{2}\right).
  • sin⁡2x\sin^{2}x is (sin⁡x)2(\sin x)^{2}, so the outside is the square. The answer is 2sin⁡xcos⁡x2\sin x\cos x.
  • (ln⁡x)4(\ln x)^{4} gives 4(ln⁡x)3x\dfrac{4(\ln x)^{3}}{x}.
  • ln⁡(x4)=4ln⁡x\ln\left(x^{4}\right) = 4\ln x gives 4x\dfrac{4}{x}.

Read the notation carefully before choosing inner and outer.

3The product rule

A product of two functions of xx, such as x2exx^{2}e^{x}, can't be differentiated factor by factor. Its derivative is not 2xex2xe^{x}. The rule has two terms.

Product rule: if y=uvy = uv, then dydx=udvdx+vdudx\dfrac{dy}{dx} = u\dfrac{dv}{dx} + v\dfrac{du}{dx}. (Formula booklet.) In words: first times derivative of second, plus second times derivative of first.

  • Figure 5 shows why there are two terms. Think of uvuv as the area of a rectangle with sides uu and vv. If xx changes a little, uu grows by Δu\Delta u and vv by Δv\Delta v. The area grows by two strips, u×Δvu \times \Delta v and v×Δuv \times \Delta u, plus a tiny corner Δu×Δv\Delta u \times \Delta v.
  • Divide by Δx\Delta x and let it shrink. The corner vanishes in the limit, and the two strips give the two terms.
Figure 5 · Why the product rule has two terms u × v u × Δv v × Δu ΔuΔv u Δu v Δv The area uv grows by two strips, u × Δv and v × Δu, plus a corner Δu × Δv so small it vanishes in the limit. Divide by Δx: d(uv)/dx = u dv/dx + v du/dx.
Figure 5 · Why the product rule has two terms

Set out the four pieces before combining them: ten seconds slower, much safer.

y=x5cos⁡xy = x^{5}\cos xu=x5,dudx=5x4u = x^{5}, \quad \frac{du}{dx} = 5x^{4}v=cos⁡x,dvdx=−sin⁡xv = \cos x, \quad \frac{dv}{dx} = -\sin xdydx=udvdx+vdudx=−x5sin⁡x+5x4cos⁡x=x4(5cos⁡x−xsin⁡x)factorise: useful for stationary points\begin{aligned}\frac{dy}{dx} &= u\frac{dv}{dx} + v\frac{du}{dx} = -x^{5}\sin x + 5x^{4}\cos x \\[6pt] &= x^{4}\left(5\cos x - x\sin x\right) && \textcolor{#838c91}{\text{factorise: useful for stationary points}}\end{aligned}

With the pieces done in your head:

ddx(xsin⁡x)=xcos⁡x+sin⁡x×12x−1/2=xcos⁡x+sin⁡x2x\frac{d}{dx}\left(\sqrt{x}\sin x\right) = \sqrt{x}\cos x + \sin x \times \tfrac{1}{2}x^{-1/2} = \sqrt{x}\cos x + \frac{\sin x}{2\sqrt{x}}

A product with a chain inside

  • For y=x2(3x−2)5y = x^{2}(3x - 2)^{5}, v=(3x−2)5v = (3x - 2)^{5} needs the chain rule for dvdx\dfrac{dv}{dx}.
  • At the end, take out the lowest power of each bracket.
u=x2,dudx=2xu = x^{2}, \qquad \frac{du}{dx} = 2xv=(3x−2)5,dvdx=5(3x−2)4×3=15(3x−2)4chain rulev = (3x - 2)^{5}, \quad \frac{dv}{dx} = 5(3x - 2)^{4} \times 3 = 15(3x - 2)^{4} \qquad \textcolor{#838c91}{\text{chain rule}}dydx=x2×15(3x−2)4+(3x−2)5×2x=x(3x−2)4[15x+2(3x−2)]common factor x(3x−2)4=x(3x−2)4(21x−4)\begin{aligned}\frac{dy}{dx} &= x^{2} \times 15(3x - 2)^{4} + (3x - 2)^{5} \times 2x \\[6pt] &= x(3x - 2)^{4}\left[15x + 2(3x - 2)\right] && \textcolor{#838c91}{\text{common factor }x(3x-2)^{4}} \\[6pt] &= x(3x - 2)^{4}(21x - 4)\end{aligned}

Show that

  • Show that ddx(x4e−x)=x3e−x(4−x)\dfrac{d}{dx}\left(x^{4}e^{-x}\right) = x^{3}e^{-x}(4 - x).
  • The answer is printed, so every line must show.
u=x4, dudx=4x3;v=e−x, dvdx=−e−xu = x^{4}, \ \frac{du}{dx} = 4x^{3}; \qquad v = e^{-x}, \ \frac{dv}{dx} = -e^{-x}dydx=x4(−e−x)+e−x(4x3)product rule, then the common factor=x3e−x(−x+4)=x3e−x(4−x)\begin{aligned}\frac{dy}{dx} &= x^{4}\left(-e^{-x}\right) + e^{-x}\left(4x^{3}\right) && \textcolor{#838c91}{\text{product rule, then the common factor}} \\[6pt] &= x^{3}e^{-x}\left(-x + 4\right) = x^{3}e^{-x}(4 - x)\end{aligned}

Factorise at the end. A "show that" prints the factorised form, and a stationary-point question needs it, since x(3x−2)4(21x−4)=0x(3x-2)^{4}(21x-4) = 0 is easy to solve and the expanded version is not.

4The quotient rule

A quotient is one function of xx divided by another:

Quotient rule: if y=uvy = \dfrac{u}{v}, then dydx=vdudx−udvdxv2\dfrac{dy}{dx} = \dfrac{v\dfrac{du}{dx} - u\dfrac{dv}{dx}}{v^{2}}. (Formula booklet.) The order on top matters: bottom times derivative of top, minus top times derivative of bottom, all over bottom squared.

y=4x−12x+3y = \frac{4x - 1}{2x + 3}u=4x−1,dudx=4u = 4x - 1, \quad \frac{du}{dx} = 4v=2x+3,dvdx=2v = 2x + 3, \quad \frac{dv}{dx} = 2dydx=(2x+3)(4)−(4x−1)(2)(2x+3)2=8x+12−8x+2(2x+3)2=14(2x+3)2\begin{aligned}\frac{dy}{dx} &= \frac{(2x + 3)(4) - (4x - 1)(2)}{(2x + 3)^{2}} \\[6pt] &= \frac{8x + 12 - 8x + 2}{(2x + 3)^{2}} = \frac{14}{(2x + 3)^{2}}\end{aligned}

Because of the minus sign, swapping the two terms on top flips the sign of the whole answer. The product rule is a sum, so its order doesn't matter. The quotient rule's does.

ddx(ex1+x2)=(1+x2)ex−ex(2x)(1+x2)2=ex(x−1)2(1+x2)2\frac{d}{dx}\left(\frac{e^{x}}{1 + x^{2}}\right) = \frac{(1+x^{2})e^{x} - e^{x}(2x)}{(1+x^{2})^{2}} = \frac{e^{x}(x - 1)^{2}}{(1+x^{2})^{2}}

A quotient with a chain inside

  • When the bottom is a root or a bracket to a power, the chain rule is needed for dvdx\dfrac{dv}{dx}.
  • Example: y=xx2+4y = \dfrac{x}{\sqrt{x^{2}+4}}.
u=x,dudx=1u = x, \quad \frac{du}{dx} = 1v=(x2+4)1/2,dvdx=12(x2+4)−1/2×2x=xx2+4chain rulev = \left(x^{2}+4\right)^{1/2}, \quad \frac{dv}{dx} = \tfrac{1}{2}\left(x^{2}+4\right)^{-1/2} \times 2x = \frac{x}{\sqrt{x^{2}+4}} \qquad \textcolor{#838c91}{\text{chain rule}}dydx=x2+4−x×xx2+4x2+4=(x2+4)−x2(x2+4)3/2=4(x2+4)3/2multiply top and bottom by x2+4\begin{aligned}\frac{dy}{dx} &= \frac{\sqrt{x^{2}+4} - x \times \dfrac{x}{\sqrt{x^{2}+4}}}{x^{2}+4} \\[6pt] &= \frac{\left(x^{2}+4\right) - x^{2}}{\left(x^{2}+4\right)^{3/2}} = \frac{4}{\left(x^{2}+4\right)^{3/2}} && \textcolor{#838c91}{\text{multiply top and bottom by }\sqrt{x^{2}+4}}\end{aligned}

When the bottom is a bracket to a power, a common factor appears on top and cancels with the bottom. Example: y=x2(x+3)2y = \dfrac{x^{2}}{(x+3)^{2}}, where dvdx=2(x+3)\dfrac{dv}{dx} = 2(x+3).

dydx=(x+3)2(2x)−x2[2(x+3)](x+3)4=2x(x+3)[(x+3)−x](x+3)4take out 2x(x+3) before expanding=6x(x+3)3\begin{aligned}\frac{dy}{dx} &= \frac{(x+3)^{2}(2x) - x^{2}\left[2(x+3)\right]}{(x+3)^{4}} \\[6pt] &= \frac{2x(x+3)\left[(x+3) - x\right]}{(x+3)^{4}} && \textcolor{#838c91}{\text{take out }2x(x+3)\text{ before expanding}} \\[6pt] &= \frac{6x}{(x+3)^{3}}\end{aligned}

A quotient as a product

  • Any quotient uv\dfrac{u}{v} can be written u×v−1u \times v^{-1}. The product and chain rules then give u(−v−2dvdx)+v−1dudxu\left(-v^{-2}\dfrac{dv}{dx}\right) + v^{-1}\dfrac{du}{dx}. Put that over v2v^{2} and it is exactly the quotient rule, which is where the rule comes from.
  • Often neater when the bottom is a power of xx. Show that ddx(sin⁡xx2)=xcos⁡x−2sin⁡xx3\dfrac{d}{dx}\left(\dfrac{\sin x}{x^{2}}\right) = \dfrac{x\cos x - 2\sin x}{x^{3}}:
ddx(x−2sin⁡x)=x−2cos⁡x+sin⁡x×(−2x−3)=xcos⁡xx3−2sin⁡xx3=xcos⁡x−2sin⁡xx3\frac{d}{dx}\left(x^{-2}\sin x\right) = x^{-2}\cos x + \sin x \times \left(-2x^{-3}\right) = \frac{x\cos x}{x^{3}} - \frac{2\sin x}{x^{3}} = \frac{x\cos x - 2\sin x}{x^{3}}

tan⁡x\tan x

  • tan⁡x\tan x is not on the standard list at standard level (it joins in HL 5.15).
  • The quotient rule gives it, from tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}:
ddxtan⁡x=cos⁡x×cos⁡x−sin⁡x×(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2xcos⁡2x+sin⁡2x=1\begin{aligned}\frac{d}{dx}\tan x &= \frac{\cos x \times \cos x - \sin x \times (-\sin x)}{\cos^{2}x} \\[6pt] &= \frac{\cos^{2}x + \sin^{2}x}{\cos^{2}x} \\[6pt] &= \frac{1}{\cos^{2}x} && \textcolor{#838c91}{\cos^{2}x + \sin^{2}x = 1}\end{aligned}

Sometimes you do not need it

  • If the denominator is a single power of xx, split the fraction instead, as in 5.3. x3−4x+2x2=x−4x−1+2x−2\dfrac{x^{3} - 4x + 2}{x^{2}} = x - 4x^{-1} + 2x^{-2} is quicker than any quotient rule.
  • A constant on top is a chain-rule job. 6(3x+1)2=6(3x+1)−2\dfrac{6}{(3x + 1)^{2}} = 6(3x + 1)^{-2}, with derivative −36(3x+1)−3-36(3x + 1)^{-3}.

5Choosing the rule, and combining rules

Figure 6 is the decision. Ask what you would do last when evaluating the function at, say, x=2x = 2.

Figure 6 · Which rule do I need? What is the last operation? (work out f(2) in your head) + or − term by term 5x³ − 4 ln x a function of a function chain rule sin(4x + 1), (2x − 5)⁶ × two functions of x product rule x² eˣ, x sin x ÷ two functions of x quotient rule x ÷ (x² + 1) Look at the last operation you would do to evaluate the function. That operation picks the rule.
Figure 6 · Which rule do I need?
  • x2exx^{2}e^{x} at x=2x = 2: work out 4, work out e2e^{2}, then multiply. Last operation ×\times: product rule.
  • (2x−5)6(2x - 5)^{6}: work out 2x−52x - 5, then raise it to the sixth power. Last operation is applying a function to a result: chain rule.
  • xx2+1\dfrac{x}{x^{2}+1}: work out both, then divide. Quotient rule.
  • A number times a function, such as 5sin⁡x5\sin x, is not a product in this sense. The 5 is a constant, and the constant stays in front.

When rules nest, apply the outer rule first. Bring in the inner rule when a piece needs it, as with x2(3x−2)5x^{2}(3x-2)^{5} above: product rule outside, chain rule inside dvdx\dfrac{dv}{dx}.

Simplify before you differentiate. A log law or an identity can remove a rule altogether.

ddxln⁡(xe2x)=ddx(ln⁡x+2x)=1x+2log laws, no product rule\frac{d}{dx}\ln\left(xe^{2x}\right) = \frac{d}{dx}\left(\ln x + 2x\right) = \frac{1}{x} + 2 \qquad \textcolor{#838c91}{\text{log laws, no product rule}}

6Using the derivative: exact values, tangents, stationary points

Paper 1 rarely stops at differentiating. Typical follow-ons, easiest first:

An exact gradient. Find the gradient of y=xln⁡xy = \sqrt{x}\ln x at x=e2x = e^{2}.

dydx=x×1x+ln⁡x×12x=2+ln⁡x2x\frac{dy}{dx} = \sqrt{x} \times \frac{1}{x} + \ln x \times \frac{1}{2\sqrt{x}} = \frac{2 + \ln x}{2\sqrt{x}}at x=e2: 2+22e=2eln⁡e2=2, e2=e\text{at } x = e^{2}: \ \frac{2 + 2}{2e} = \frac{2}{e} \qquad \textcolor{#838c91}{\ln e^{2} = 2\text{, }\sqrt{e^{2}} = e}

The answer 2e\tfrac{2}{e} is exact. Writing 0.7360.736 on Paper 1 when the exact value is available can cost the accuracy mark.

A tangent and a normal

  • The tangent to y=ln⁡(3x−1)y = \ln(3x - 1) at x=1x = 1: y=ln⁡2y = \ln 2, and dydx=33x−1\dfrac{dy}{dx} = \dfrac{3}{3x - 1}, which is 32\tfrac{3}{2} at x=1x = 1. So the tangent is y−ln⁡2=32(x−1)y - \ln 2 = \tfrac{3}{2}(x - 1).
  • The normal is perpendicular to the tangent, so its gradient is −1m-\dfrac{1}{m} where mm is the tangent's gradient. Here that is −23-\tfrac{2}{3}, giving y−ln⁡2=−23(x−1)y - \ln 2 = -\tfrac{2}{3}(x - 1).

Stationary points

  • For y=x2e−2xy = x^{2}e^{-2x}: dydx=x2(−2e−2x)+e−2x(2x)=2xe−2x(1−x)\dfrac{dy}{dx} = x^{2}\left(-2e^{-2x}\right) + e^{-2x}(2x) = 2xe^{-2x}(1 - x).
  • Since e−2x>0e^{-2x} > 0 for every xx, the derivative is zero only when x=0x = 0 or x=1x = 1. The points are (0,0)(0, 0) and (1,e−2)\left(1, e^{-2}\right).
  • Take out the exponential factor and say in words that it is never zero.
  • A fraction is zero only when its numerator is, so for a quotient set the numerator of f′f' to zero.
  • Deciding maximum or minimum belongs to 5.8. A sign check of the derivative either side is enough for now.

Matching a gradient

  • When a question gives a gradient, or a line the tangent must be parallel to, set dydx\dfrac{dy}{dx} equal to it and solve.
  • Example: for y=ln⁡(x2+5)y = \ln\left(x^{2} + 5\right), find where the gradient is 13\tfrac{1}{3}.
dydx=2xx2+5=13\frac{dy}{dx} = \frac{2x}{x^{2} + 5} = \frac{1}{3}6x=x2+5 ⇒ x2−6x+5=0 ⇒ x=1 or x=56x = x^{2} + 5 \ \Rightarrow \ x^{2} - 6x + 5 = 0 \ \Rightarrow \ x = 1 \text{ or } x = 5

An unknown constant. Example: y=(kx−1)e−xy = (kx - 1)e^{-x} has gradient 5 at x=0x = 0. Then dydx=ke−x−(kx−1)e−x=e−x(k+1−kx)\dfrac{dy}{dx} = ke^{-x} - (kx - 1)e^{-x} = e^{-x}(k + 1 - kx), which at x=0x = 0 is k+1k + 1. So k+1=5k + 1 = 5, and k=4k = 4.

Rates of change

  • Example: the drug concentration in a patient's blood tt hours after an injection is C=12te−0.4tC = 12te^{-0.4t} mg per litre.
    • By the product rule, dCdt=12e−0.4t+12t(−0.4e−0.4t)=12e−0.4t(1−0.4t)\dfrac{dC}{dt} = 12e^{-0.4t} + 12t\left(-0.4e^{-0.4t}\right) = 12e^{-0.4t}(1 - 0.4t). At t=1t = 1, dCdt≈4.83\dfrac{dC}{dt} \approx 4.83: the concentration is rising at about 4.83 mg per litre each hour.
    • The rate is zero when 1−0.4t=01 - 0.4t = 0, at t=2.5t = 2.5. Then C=30e−1≈11.0C = 30e^{-1} \approx 11.0 mg per litre, the peak.
  • On Paper 2, check any derivative numerically: compare your f′(a)f'(a) with the GDC's numerical derivative at the same aa, in radians.

Letters instead of numbers. Paper 3 style questions keep the rules but use constants in place of numbers. For y=eaxsin⁡bxy = e^{ax}\sin bx, the product rule with a chain in each factor gives dydx=eax(asin⁡bx+bcos⁡bx)\dfrac{dy}{dx} = e^{ax}\left(a\sin bx + b\cos bx\right). Treat aa and bb as you would 2 and 3.

Practice questions

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