Differentiating standard functions

Differentiating standard functions

Spec 7.2 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • ddx(ekx)=kekx\dfrac{d}{dx}(e^{kx})=ke^{kx} and ddx(akx)=k akxln⁡a\dfrac{d}{dx}(a^{kx})=k\,a^{kx}\ln a.
  • ddx(ln⁡x)=1x\dfrac{d}{dx}(\ln x)=\dfrac1x for x>0x>0.
  • ddx(sin⁡kx)=kcos⁡kx\dfrac{d}{dx}(\sin kx)=k\cos kx and ddx(cos⁡kx)=−ksin⁡kx\dfrac{d}{dx}(\cos kx)=-k\sin kx, with xx in radians.
  • ddx(tan⁡kx)=ksec⁡2kx\dfrac{d}{dx}(\tan kx)=k\sec^{2}kx.
  • Differentiate sums and differences term by term, keeping constant multiples outside.

Exponentials

The exponential function ekxe^{kx} differentiates to kekxke^{kx}; for another base aa there is an extra factor ln⁡a\ln a.

The gradient of y=ekxy=e^{kx} is always kk times its height, which is why growth and decay are modelled with it.

For other bases write akx=ekxln⁡aa^{kx}=e^{kx\ln a} and differentiate that. For example ddx(52x)=2ln⁡5×52x\frac{d}{dx}(5^{2x})=2\ln5\times5^{2x} and ddx(4e−3x)=−12e−3x\frac{d}{dx}(4e^{-3x})=-12e^{-3x}.

  • ekxe^{kx}kekxke^{kx}
  • akxa^{kx}k akxln⁡ak\,a^{kx}\ln a
−3−2−112324681012xy(0, 1)y = e^(kx)
The gradient of y = e^(kx) is k times its height. Change k and watch the curve.

Worked example

Differentiate y=73xy=7^{3x} and find the gradient at x=0x=0.

What is the derivative of 4e−3x4e^{-3x}?

The natural logarithm

ln⁡x\ln x differentiates to 1x\frac1x, for x>0x>0.

Because the natural logarithm is the inverse of exe^{x}, the gradient of y=ln⁡xy=\ln x at xx is 1x\frac1x. Constant multiples work as usual: ddx(3ln⁡x)=3x\frac{d}{dx}(3\ln x)=\frac3x.

Also ddxln⁡(kx)=1x\frac{d}{dx}\ln(kx)=\frac1x, because ln⁡(kx)=ln⁡k+ln⁡x\ln(kx)=\ln k+\ln x and ln⁡k\ln k is constant.

0.511.522.533.544.555.56−2−1123xy(1, 0)y = ln xy = 1/x
y = ln x and its gradient function 1/x (dashed).
  • ln⁡x\ln x1x\dfrac1x

Differentiate y=ln⁡x5y=\ln x^{5}.

Trigonometric functions

With xx in radians, sin⁡kx\sin kx gives kcos⁡kxk\cos kx, cos⁡kx\cos kx gives −ksin⁡kx-k\sin kx and tan⁡kx\tan kx gives ksec⁡2kxk\sec^{2}kx.

Examples: ddx(sin⁡2x)=2cos⁡2x\frac{d}{dx}(\sin2x)=2\cos2x, ddx(−cos⁡2x)=2sin⁡2x\frac{d}{dx}(-\cos2x)=2\sin2x and ddx(tan⁡3x)=3sec⁡23x\frac{d}{dx}(\tan3x)=3\sec^{2}3x.

These results only hold in radians. In degrees an extra factor of π180\frac{\pi}{180} appears.

−3−2−1123456−1.5−1−0.50.511.5xy(0, 0)(π/2, 1)y = sin xy = cos x
The gradient of sin x (solid) is cos x (dashed).
  • sin⁡kx\sin kxkcos⁡kxk\cos kx
  • cos⁡kx\cos kx−ksin⁡kx-k\sin kx
  • tan⁡kx\tan kxksec⁡2kxk\sec^{2}kx

What is ddx(cos⁡4x)\frac{d}{dx}(\cos4x)?

Sums and constant multiples

Differentiate term by term, using the standard results and keeping constant multiples outside.

Differentiate term by term. For y=e3x+sin⁡2xy=e^{3x}+\sin2x, dydx=3e3x+2cos⁡2x\frac{dy}{dx}=3e^{3x}+2\cos2x. At x=0x=0 the gradient is 3+2=53+2=5 and y=1y=1, so the tangent is y=5x+1y=5x+1.

For y=3ln⁡x−cos⁡2xy=3\ln x-\cos2x, dydx=3x+2sin⁡2x\frac{dy}{dx}=\frac3x+2\sin2x, which is positive for 0<x≤π20<x\le\frac\pi2, so the curve is increasing there.

−1−0.8−0.6−0.4−0.200.20.40.60.81−2−112345xy(0, 1)y = e^(3x) + sin 2xtangent y = 5x + 1
y = e^(3x) + sin 2x with its tangent y = 5x + 1 at (0, 1).

Worked example

Find the gradient of y=2ex−cos⁡3xy=2e^{x}-\cos3x at x=0x=0.

What is ddx(5ln⁡x+e2x)\frac{d}{dx}(5\ln x+e^{2x})?

First principles for sin x

The derivative is the limit of the chord gradient as h→0h\to0; for sin⁡x\sin x it works out as cos⁡x\cos x.

Proving a result from first principles uses the gradient of the chord, f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h}, as h→0h\to0.

For sin⁡x\sin x, the addition formula gives sin⁡x(cos⁡h−1h)+cos⁡x(sin⁡hh)\sin x\left(\frac{\cos h-1}{h}\right)+\cos x\left(\frac{\sin h}{h}\right). For small hh in radians sin⁡hh→1\frac{\sin h}{h}\to1 and cos⁡h−1h→0\frac{\cos h-1}{h}\to0, so ddx(sin⁡x)=cos⁡x\frac{d}{dx}(\sin x)=\cos x. The same method gives ddx(cos⁡x)=−sin⁡x\frac{d}{dx}(\cos x)=-\sin x.

  1. 1

    Chord gradient

    Write (sin(x+h) − sin x)/h.

  2. 2

    Expand

    Use the addition formula for sin(x+h).

  3. 3

    Small angles

    sin h ≈ h and cos h ≈ 1 − h²/2, in radians.

  4. 4

    Take the limit

    As h → 0 the gradient tends to cos x.

First principles for sin x

Why must hh be in radians for sin⁡hh→1\frac{\sin h}{h}\to1?

Try an exam question

Differentiate y=5e−2x+2ln⁡x−cos⁡3xy=5e^{-2x}+2\ln x-\cos3x with respect to xx.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find dydx\frac{dy}{dx}.

1 mark, marked against the mark scheme

Revision notes