5.6 · SLPaper 1Paper 2

Differentiation rules and standard functions

In a minute

Five standard derivatives, for xnx^{n}, sin⁡x\sin x, cos⁡x\cos x, ex\mathrm{e}^{x} and ln⁡x\ln x, and three rules let you differentiate almost every function in the course. The handles a function inside another function. The and handle products and fractions.

You'll be able to

  • Differentiate xnx^{n} for any rational nn, and sin⁡x\sin x, cos⁡x\cos x, ex\mathrm{e}^{x} and ln⁡x\ln x.
  • Differentiate sums and constant multiples of these functions, term by term.
  • Use the on a such as ex2+2\mathrm{e}^{x^{2} + 2} or sin⁡(3x−1)\sin(3x - 1).
  • Use the and the , with the chain rule inside them when needed.
  • Use a derivative to find a gradient or solve f′(x)=0f'(x) = 0: exactly on Paper 1, and with a GDC on Paper 2.
Before you start3 quick questions on what this builds on
Check yourself
Differentiate y=2x3−5x2y = 2x^{3} - \frac{5}{x^{2}}.
Check yourself
Let f(x)=x3f(x) = x^{3} and g(x)=2x+1g(x) = 2x + 1. Find (f∘g)(x)(f \circ g)(x).
Check yourself
Find the exact value of cos⁡π3+ln⁡(e2)\cos\frac{\pi}{3} + \ln(\mathrm{e}^{2}).

Revise first: 2.5 Composite and inverse functions, 2.9 Exponential and logarithmic functions, 3.5 Unit-circle trigonometry and exact values and 5.3 Differentiation of integer-power polynomials

Derivatives of the standard functions

In 5.3 you differentiated whole-number powers of xx. Exam questions also use roots, sin⁡x\sin x, cos⁡x\cos x, ex\mathrm{e}^{x} and ln⁡x\ln x. Each has its own , and all of them are in the formula booklet.

Start with powers. The works for every rational power, not just whole numbers. Rewrite roots and fractions as powers of xx first.

In the formula booklet
f(x)=xn⇒f′(x)=nxn−1f(x) = x^{n} \Rightarrow f'(x) = nx^{n-1}

Here n∈Qn \in \mathbb{Q}, so nn can be any fraction, positive or negative. Useful rewrites are x=x12\sqrt{x} = x^{\frac{1}{2}}, x3=x13\sqrt[3]{x} = x^{\frac{1}{3}} and 1x2=x−2\frac{1}{x^{2}} = x^{-2}.

Worked exampleDifferentiate f(x)=6x3+4xf(x) = 6\sqrt[3]{x} + \frac{4}{\sqrt{x}}, for x>0x > 0.

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

  1. Rewrite each term as a power of xx: 6x3=6x136\sqrt[3]{x} = 6x^{\frac{1}{3}} and 4x=4x−12\frac{4}{\sqrt{x}} = 4x^{-\frac{1}{2}}.

Now the trig functions. In calculus, angles are in radians. The results below are only true in radians.

The gradient of y = sin x at each point matches the value of y = cos x π/2 π 3π/2 2π 1 −1 x π/2 π 3π/2 2π 1 −1 x y = sin x gradients of the tangents: 1, 0, −1, 0, 1 y = cos x
The gradient of y=sin⁡xy = \sin x at each point equals the height of y=cos⁡xy = \cos x below it.

Look at the tangents on y=sin⁡xy = \sin x. At x=0x = 0 the gradient is 11, at x=π2x = \frac{\pi}{2} it is 00 and at x=πx = \pi it is −1-1. Those are exactly the values of cos⁡x\cos x. So the gradient function of sin⁡x\sin x is cos⁡x\cos x.

In the formula booklet
f(x)=sin⁡x⇒f′(x)=cos⁡xf(x) = \sin x \Rightarrow f'(x) = \cos x

The graph of cos⁡x\cos x is the graph of sin⁡x\sin x moved π2\frac{\pi}{2} to the left. So its gradient graph is cos⁡x\cos x moved π2\frac{\pi}{2} to the left, which is −sin⁡x-\sin x. That is where the minus sign comes from.

In the formula booklet
f(x)=cos⁡x⇒f′(x)=−sin⁡xf(x) = \cos x \Rightarrow f'(x) = -\sin x

The number e≈2.718\mathrm{e} \approx 2.718 is chosen so that y=exy = \mathrm{e}^{x} has gradient exactly 11 where it crosses the yy-axis.

Since ex+a=ea×ex\mathrm{e}^{x + a} = \mathrm{e}^{a} \times \mathrm{e}^{x}, the curve near x=ax = a is the curve near x=0x = 0 stretched upwards by the factor ea\mathrm{e}^{a}. The stretch multiplies the gradient by ea\mathrm{e}^{a} too, so the gradient at x=ax = a is ea\mathrm{e}^{a}. The gradient always equals the height.

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

ln⁡x\ln x is the inverse of ex\mathrm{e}^{x}, so its graph is the reflection of y=exy = \mathrm{e}^{x} in the line y=xy = x. Reflecting swaps the rise and the run, so a gradient mm becomes 1m\frac{1}{m}.

The point (x,ln⁡x)(x, \ln x) on y=ln⁡xy = \ln x reflects to (ln⁡x,x)(\ln x, x) on y=exy = \mathrm{e}^{x}. The gradient there is eln⁡x=x\mathrm{e}^{\ln x} = x. So the gradient of ln⁡x\ln x is 1x\frac{1}{x}, for x>0x > 0.

In the formula booklet
f(x)=ln⁡x⇒f′(x)=1xf(x) = \ln x \Rightarrow f'(x) = \dfrac{1}{x}

Sums and multiples work just as they did for powers in 5.3. Differentiate a sum term by term, and keep a constant multiple in front.

Learn this
ddx[af(x)+bg(x)]=af′(x)+bg′(x)\frac{\mathrm{d}}{\mathrm{d}x}\left[a f(x) + b g(x)\right] = a f'(x) + b g'(x)

A constant on its own, such as 77, e2\mathrm{e}^{2} or ln⁡3\ln 3, differentiates to 00. It has no xx in it, so it never changes.

Check yourself
Differentiate f(x)=3x+2x−cos⁡xf(x) = \frac{3}{x} + 2\sqrt{x} - \cos x, for x>0x > 0.
Worked exampleLet f(x)=4sin⁡x−x2f(x) = 4\sin x - x^{2}. Find the equation of the tangent to the graph of ff at the point where x=π2x = \frac{\pi}{2}.

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

  1. Differentiate term by term: f′(x)=4cos⁡x−2xf'(x) = 4\cos x - 2x.
Check yourself
Differentiate y=e2x+3ex−ln⁡4y = \mathrm{e}^{2}x + 3\mathrm{e}^{x} - \ln 4.

The chain rule

sin⁡(3x−1)\sin(3x - 1) is not a sum of standard functions. It is sin⁡\sin applied to 3x−13x - 1: a , as in 2.5. It has an inside function, 3x−13x - 1, and an outside function, sin⁡\sin.

The key idea is that rates multiply. Suppose uu changes 3 times as fast as xx, and yy changes 2 times as fast as uu. Then yy changes 2×3=62 \times 3 = 6 times as fast as xx.

Test it on y=(3x+1)2y = (3x + 1)^{2}. Expanding gives 9x2+6x+19x^{2} + 6x + 1, whose is 18x+618x + 6. That equals 2(3x+1)×32(3x + 1) \times 3: the outside's derivative, 2(…)2(\ldots), times the inside's derivative, 33.

In the formula booklet
y=g(u), where u=f(x)⇒dydx=dydu×dudxy = g(u), \text{ where } u = f(x) \Rightarrow \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{\mathrm{d}y}{\mathrm{d}u} \times \dfrac{\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 derivative 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 and find dydu\frac{\mathrm{d}y}{\mathrm{d}u}. Then find dudx\frac{\mathrm{d}u}{\mathrm{d}x}.

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

Worked exampleLet f(x)=x2+9f(x) = \sqrt{x^{2} + 9}. Find f′(x)f'(x). Hence find f′(4)f'(4).

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

  1. Inside: u=x2+9u = x^{2} + 9, so dudx=2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2x.

With practice you can skip naming uu. These patterns come up again and again, where f(x)f(x) is the inside:

Learn this
ddx ef(x)=f′(x) ef(x)ddxln⁡(f(x))=f′(x)f(x)\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)}
Learn this
ddxsin⁡(ax+b)=acos⁡(ax+b)ddxcos⁡(ax+b)=−asin⁡(ax+b)\frac{\mathrm{d}}{\mathrm{d}x}\sin(ax + b) = a\cos(ax + b) \qquad \frac{\mathrm{d}}{\mathrm{d}x}\cos(ax + b) = -a\sin(ax + b)
Check yourself
Differentiate y=(2x−5)4y = (2x - 5)^{4}.
Worked exampleDifferentiate y=ln⁡(3x2+2)−4e1−2xy = \ln(3x^{2} + 2) - 4\mathrm{e}^{1 - 2x}.

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

  1. Take one term at a time. In the first, the inside is 3x2+23x^{2} + 2, which differentiates to 6x6x.

Watch the notation sin⁡2x\sin^{2}x. It means (sin⁡x)2(\sin x)^{2}, so the outside is squaring and the inside is sin⁡x\sin x. Its derivative is 2sin⁡x×cos⁡x=2sin⁡xcos⁡x2\sin x \times \cos x = 2\sin x\cos x.

Log laws from 2.9 can save work. Since ln⁡(x3)=3ln⁡x\ln(x^{3}) = 3\ln x, its derivative is 3x\frac{3}{x}. The chain rule agrees: 3x2x3=3x\frac{3x^{2}}{x^{3}} = \frac{3}{x}.

Check yourself
Let f(x)=3sin⁡(2x)+cos⁡(4x)f(x) = 3\sin(2x) + \cos(4x). Find the exact value of f′(π6)f'\left(\frac{\pi}{6}\right).
Worked exampleLet f(x)=e2x−6xf(x) = \mathrm{e}^{2x} - 6x. Find the exact coordinates of the point where the tangent to the graph of ff is horizontal.

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

  1. A horizontal tangent has gradient 00, so solve f′(x)=0f'(x) = 0.
Check yourself
The curve y=sin⁡(x2)y = \sin(x^{2}), for 0≤x≤10 \le x \le 1, has gradient 11 at exactly one point. Use your calculator to find the xx-coordinate of this point. Give your answer to 3 s.f.

The product rule

x2sin⁡xx^{2}\sin x is two functions multiplied together. Its is not the product of their derivatives. Test that idea on x×x=x2x \times x = x^{2}: the derivative is 2x2x, but 1×1=11 \times 1 = 1.

Picture u×vu \times v as the area of a rectangle with sides uu and vv. Let uu grow by a small amount δu\delta u and vv by δv\delta v.

The area gains a strip u δvu\,\delta v, a strip v δuv\,\delta u and a tiny corner δu δv\delta u\,\delta v, which is too small to matter. So the rate of change of uvuv is uu times the rate of vv, plus vv times the rate of uu.

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

This is the , and it is in the booklet. Set it out the same way every time. 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.

Worked exampleDifferentiate y=x3ln⁡xy = x^{3}\ln x, for x>0x > 0.

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

  1. Let u=x3u = x^{3} and v=ln⁡xv = \ln x.
Check yourself
Differentiate y=xexy = x\mathrm{e}^{x}.
Worked exampleLet f(x)=x2e−3xf(x) = x^{2}\mathrm{e}^{-3x}. Find the values of xx for which f′(x)=0f'(x) = 0.

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

  1. Let u=x2u = x^{2} and v=e−3xv = \mathrm{e}^{-3x}. Then dudx=2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2x, and the gives dvdx=−3e−3x\frac{\mathrm{d}v}{\mathrm{d}x} = -3\mathrm{e}^{-3x}.
Check yourself
Let f(x)=(2x+1)sin⁡xf(x) = (2x + 1)\sin x. Find f′(π)f'(\pi).
Worked exampleLet f(x)=x2cos⁡xf(x) = x^{2}\cos x, for 0<x<20 < x < 2. Find f′(x)f'(x). Hence use your calculator to find the xx-coordinate of the point where the graph of ff has a horizontal tangent. Give your answer to 3 s.f.

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

  1. Let u=x2u = x^{2} and v=cos⁡xv = \cos x, so dudx=2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2x and dvdx=−sin⁡x\frac{\mathrm{d}v}{\mathrm{d}x} = -\sin x.

The quotient rule

A fraction uv\frac{u}{v} with xx in both the top and the bottom needs the . It is in the booklet.

In the formula booklet
y=uv⇒dydx=vdudx−udvdxv2y = \dfrac{u}{v} \Rightarrow \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{v\dfrac{\mathrm{d}u}{\mathrm{d}x} - u\dfrac{\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 of the top, minus top times the derivative of the bottom, all over the bottom squared.

If only the bottom contains xx, as in 5x2+1\frac{5}{x^{2} + 1}, you can instead write 5(x2+1)−15(x^{2} + 1)^{-1} and use the chain rule. Both methods give the same answer.

Worked exampleDifferentiate y=x2x+3y = \frac{x^{2}}{x + 3}, for x≠−3x \neq -3.

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

  1. Let u=x2u = x^{2} and v=x+3v = x + 3. Then dudx=2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2x and dvdx=1\frac{\mathrm{d}v}{\mathrm{d}x} = 1.
Check yourself
Let f(x)=2x−1x+4f(x) = \frac{2x - 1}{x + 4}, for x≠−4x \neq -4. Find f′(x)f'(x).
Worked exampleLet f(x)=ln⁡xxf(x) = \frac{\ln x}{x}, for x>0x > 0. Find the exact coordinates of the point where f′(x)=0f'(x) = 0.

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

  1. Let u=ln⁡xu = \ln x and v=xv = x. Then dudx=1x\frac{\mathrm{d}u}{\mathrm{d}x} = \frac{1}{x} and dvdx=1\frac{\mathrm{d}v}{\mathrm{d}x} = 1.
Check yourself
Let g(x)=e2xx2+1g(x) = \frac{\mathrm{e}^{2x}}{x^{2} + 1}. Find the exact value of g′(1)g'(1).

Common mistakes

  • Writing the derivative of sin⁡x\sin x as −cos⁡x-\cos x. The minus sign belongs only to cos⁡x\cos x, whose derivative is −sin⁡x-\sin x.
  • Dropping the inside's derivative in the chain rule. ex2\mathrm{e}^{x^{2}} gives 2xex22x\mathrm{e}^{x^{2}}, and (3x−2)4(3x - 2)^{4} gives 12(3x−2)312(3x - 2)^{3}, not 4(3x−2)34(3x - 2)^{3}.
  • 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. Starting with udvdxu\frac{\mathrm{d}v}{\mathrm{d}x} flips the sign of the answer, so always start with vdudxv\frac{\mathrm{d}u}{\mathrm{d}x}.
  • Treating a constant as if it contained xx. In e3x\mathrm{e}^{3}x the e3\mathrm{e}^{3} is just a number, so the derivative is e3\mathrm{e}^{3}. And −x-x differentiates to −1-1, not 00.
  • Using degree mode for a trig derivative on the GDC. Set radians before you graph, solve or find a gradient.

Exam tips

  • "Find f′(x)f'(x)" and then a value: write the general derivative before you substitute. A bare value such as f′(2)=5f'(2) = 5 with no f′(x)f'(x) shown can lose the method marks.
  • On Paper 1, keep answers exact. 12ln⁡3\frac{1}{2}\ln 3, e22\frac{\mathrm{e}^{2}}{2} and 3−233 - 2\sqrt{3} are complete final answers.
  • On Paper 2, write down the equation you put into the GDC, such as 2xcos⁡x−x2sin⁡x=02x\cos x - x^{2}\sin x = 0, then give the answer to 3 s.f.

Key takeaways

In bookletf(x)=xn⇒f′(x)=nxn−1f(x) = x^{n} \Rightarrow f'(x) = nx^{n-1}
In bookletf(x)=sin⁡x⇒f′(x)=cos⁡xf(x) = \sin x \Rightarrow f'(x) = \cos x
In bookletf(x)=cos⁡x⇒f′(x)=−sin⁡xf(x) = \cos x \Rightarrow f'(x) = -\sin x
In bookletf(x)=ex⇒f′(x)=exf(x) = \mathrm{e}^{x} \Rightarrow f'(x) = \mathrm{e}^{x}
In bookletf(x)=ln⁡x⇒f′(x)=1xf(x) = \ln x \Rightarrow f'(x) = \dfrac{1}{x}
Learn thisddx[af(x)+bg(x)]=af′(x)+bg′(x)\frac{\mathrm{d}}{\mathrm{d}x}\left[a f(x) + b g(x)\right] = a f'(x) + b g'(x)
In booklety=g(u), where u=f(x)⇒dydx=dydu×dudxy = g(u), \text{ where } u = f(x) \Rightarrow \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{\mathrm{d}y}{\mathrm{d}u} \times \dfrac{\mathrm{d}u}{\mathrm{d}x}
Learn thisddx ef(x)=f′(x) ef(x)ddxln⁡(f(x))=f′(x)f(x)\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)}
Learn thisddxsin⁡(ax+b)=acos⁡(ax+b)ddxcos⁡(ax+b)=−asin⁡(ax+b)\frac{\mathrm{d}}{\mathrm{d}x}\sin(ax + b) = a\cos(ax + b) \qquad \frac{\mathrm{d}}{\mathrm{d}x}\cos(ax + b) = -a\sin(ax + b)
In booklety=uv⇒dydx=udvdx+vdudxy = uv \Rightarrow \dfrac{\mathrm{d}y}{\mathrm{d}x} = u\dfrac{\mathrm{d}v}{\mathrm{d}x} + v\dfrac{\mathrm{d}u}{\mathrm{d}x}
In booklety=uv⇒dydx=vdudx−udvdxv2y = \dfrac{u}{v} \Rightarrow \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{v\dfrac{\mathrm{d}u}{\mathrm{d}x} - u\dfrac{\mathrm{d}v}{\mathrm{d}x}}{v^{2}}
In bookletxn→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; ex→ex\mathrm{e}^{x} \to \mathrm{e}^{x}; ln⁡x→1x\ln x \to \frac{1}{x}.
Learn thisDifferentiate sums term by term and keep constant multiples. A constant on its own, like e2\mathrm{e}^{2} or ln⁡3\ln 3, gives 00.
In bookletChain rule: dydx=dydu×dudx\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}u} \times \frac{\mathrm{d}u}{\mathrm{d}x}. Differentiate the outside, then multiply by the derivative of the inside.
Learn thisef(x)→f′(x)ef(x)\mathrm{e}^{f(x)} \to f'(x)\mathrm{e}^{f(x)} and ln⁡(f(x))→f′(x)f(x)\ln\bigl(f(x)\bigr) \to \frac{f'(x)}{f(x)}.
In bookletProduct rule: ddx(uv)=udvdx+vdudx\frac{\mathrm{d}}{\mathrm{d}x}(uv) = u\frac{\mathrm{d}v}{\mathrm{d}x} + v\frac{\mathrm{d}u}{\mathrm{d}x}.
In bookletQuotient rule: ddx(uv)=vdudx−udvdxv2\frac{\mathrm{d}}{\mathrm{d}x}\left(\frac{u}{v}\right) = \frac{v\frac{\mathrm{d}u}{\mathrm{d}x} - u\frac{\mathrm{d}v}{\mathrm{d}x}}{v^{2}}. The top starts with vv.
Learn thisTrig calculus uses radians, on paper and on the GDC.

Practise this

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

Practise 5.6 →