Differentiating exponentials, logarithms and trigonometric functions

Differentiating exponentials, logarithms and trigonometric functions

Spec G2 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • ddx(ekx)=kekx\frac{d}{dx}\left(e^{kx}\right)=ke^{kx} and ddx(akx)=kln⁡a⋅akx\frac{d}{dx}\left(a^{kx}\right)=k\ln a\cdot a^{kx}.
  • ddx(ln⁡x)=1x\frac{d}{dx}(\ln x)=\frac1x, and ddx(ln⁡kx)=1x\frac{d}{dx}(\ln kx)=\frac1x too.
  • ddx(sin⁡kx)=kcos⁡kx\frac{d}{dx}(\sin kx)=k\cos kx, ddx(cos⁡kx)=−ksin⁡kx\frac{d}{dx}(\cos kx)=-k\sin kx, ddx(tan⁡kx)=ksec⁡2kx\frac{d}{dx}(\tan kx)=k\sec^2kx.
  • The trig results only hold with xx in radians.
  • For a stationary point, set dydx=0\frac{dy}{dx}=0 and take logarithms if an exponential is involved.

Exponential functions

ekxe^{kx} differentiates to kekxke^{kx}; any other base aa gives an extra factor ln⁡a\ln a.

The exponential function exe^x is its own derivative, and the chain rule supplies the factor kk in ekxe^{kx}.

For a base a>0a>0, write akx=ekxln⁡aa^{kx}=e^{kx\ln a}, so its derivative is kln⁡a⋅akxk\ln a\cdot a^{kx}. Sums, differences and constant multiples are differentiated term by term.

−3−2−11232468xy(0, 1)y = e^(kx)dy/dx = k e^(kx)
Gradient of e^(kx) is k times the curve itself. Try the slider
  • ddxekx\frac{d}{dx}e^{kx}kekxke^{kx}
  • ddxakx\frac{d}{dx}a^{kx}kln⁡a⋅akxk\ln a\cdot a^{kx}

Worked example

Differentiate y=5×20.4ty=5\times2^{0.4t}.

What is ddx(3x)\frac{d}{dx}\left(3^x\right)?

Natural logarithms

ddx(ln⁡x)=1x\frac{d}{dx}(\ln x)=\frac1x, so the gradient is steep near 00 and flatter for large xx.

The natural logarithm is the logarithm to base ee, the inverse of exe^x. Because ln⁡(kx)=ln⁡k+ln⁡x\ln(kx)=\ln k+\ln x, the derivative of ln⁡(kx)\ln(kx) is also 1x\frac1x, not 1kx\frac{1}{kx}.

Use laws of logarithms first where they simplify the work: ln⁡x3=3ln⁡x\ln x^3=3\ln x has derivative 3x\frac3x.

0.511.522.533.544.55−3−2−1123xy(1, 0)gradient 1 at x = 1y = ln xgradient = 1/x
The gradient of ln x at each point is 1/x: steep near 0, and flatter for large x
  • ddx(ln⁡x)\frac{d}{dx}(\ln x)1x\frac1x for x>0x>0

Worked example

Find the stationary point of y=x−2ln⁡xy=x-2\ln x.

What is ddx(ln⁡5x)\frac{d}{dx}\left(\ln5x\right)?

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^2kx.

With xx in radians and kk constant, the chain rule gives the factor kk.

Combinations such as y=2sin⁡3x+cos⁡2xy=2\sin3x+\cos2x are differentiated term by term: dydx=6cos⁡3x−2sin⁡2x\frac{dy}{dx}=6\cos3x-2\sin2x.

123456−3−2−1123xyy = sin(kx)dy/dx = k cos(kx)
The gradient of sin(kx) is k cos(kx). Try the slider
  • ddxsin⁡kx\frac{d}{dx}\sin kxkcos⁡kxk\cos kx
  • ddxcos⁡kx\frac{d}{dx}\cos kx−ksin⁡kx-k\sin kx
  • ddxtan⁡kx\frac{d}{dx}\tan kxksec⁡2kxk\sec^2kx

Worked example

Find the tangent to y=tan⁡2xy=\tan2x at x=π8x=\frac{\pi}{8}.

What is ddx(cos⁡3x)\frac{d}{dx}(\cos3x)?

First principles for sine

Expand sin⁡(x+h)\sin(x+h), split the chord gradient, and use sin⁡hh→1\frac{\sin h}{h}\to1 and cos⁡h−1h→0\frac{\cos h-1}{h}\to0.

The derivative is the limit of the gradient of a chord, f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}.

For sin⁡x\sin x: sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh\frac{\sin(x+h)-\sin x}{h}=\sin x\cdot\frac{\cos h-1}{h}+\cos x\cdot\frac{\sin h}{h}. As h→0h\to0 (radians), sin⁡hh→1\frac{\sin h}{h}\to1 and cos⁡h−1h→0\frac{\cos h-1}{h}\to0, so the limit is cos⁡x\cos x.

For cos⁡x\cos x the same limits give cos⁡x×0−sin⁡x×1=−sin⁡x\cos x\times0-\sin x\times1=-\sin x. This is first principles.

  1. 1

    Chord gradient

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

  2. 2

    Expand

    Use the addition formula for sin(x+h)

  3. 3

    Split

    sin x · (cos h − 1)/h + cos x · sin h / h

  4. 4

    Take the limit

    As h → 0: sin h / h → 1 and (cos h − 1)/h → 0

  5. 5

    Conclude

    The derivative of sin x is cos x

Differentiating sin x from first principles
−10−8−6−4−2246810−0.4−0.20.20.40.60.811.2xyy = 1y = sin h / h
sin h / h gets closer to 1 as h gets closer to 0 (h in radians)

As h→0h\to0, what does cos⁡h−1h\frac{\cos h-1}{h} tend to?

Using the derivatives

Substitute into dydx\frac{dy}{dx} for gradients and tangents, set it to zero for stationary points, and use logs to solve.

For gradients, substitute the xx-value into dydx\frac{dy}{dx}, then form the tangent y−y1=m(x−x1)y-y_1=m(x-x_1).

For stationary points solve dydx=0\frac{dy}{dx}=0, taking logarithms to solve equations containing an exponential.

In a growth model P=P0aktP=P_0a^{kt}, the rate of growth dPdt=kln⁡a×P\frac{dP}{dt}=k\ln a\times P is proportional to PP.

−1−0.8−0.6−0.4−0.200.20.40.60.81123456xy(0.096, 0.950)y = e^(3x) − 4x
The stationary point is a minimum

Worked example

Find the stationary point of y=e3x−4xy=e^{3x}-4x.

For P=P0aktP=P_0a^{kt}, what is dPdt\frac{dP}{dt}?

Try an exam question

Find the equation of the tangent to the curve y=3e2x−4ln⁡xy=3e^{2x}-4\ln x at the point where x=1x=1. Give your answer in exact form.

[4 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