SGSchoolKaki
Loading...

Not in G2 · G3 Additional Maths only

Chapter 13 · Additional Maths · Derivatives of trig, exponential and log functions

Differentiating sin x, cos x, tan x, eˣ and ln x

Chapter 11 gave you the rules; this chapter gives you five new standard results and shows that the same rules work on them. The derivatives of sin x, cos x, tan x, e^x and ln x are the building blocks. With the chain, product and quotient rules they unlock almost any function an exam can write, and with the gradient they find tangents, normals, stationary points and rates of change for waves, growth and decay. Angles are in radians throughout.

Your outcome tracker0 / 7
Let's go! Tick an outcome once you can pass its exam check. Saved on this device.
Chapter
13
Figure 1 · the curve y = sin x and its tangent at x = π/6: the gradient there is cos(π/6) = √3/2, so the derivative of sin x is cos x (x in radians)
Graph of y = sin(x) with its tangent at x = pi/6; the point of contact is marked P.Graph of y = sin(x) with its tangent at x = pi/6; the point of contact is marked P.xy1245−1.5−10.511.5Oy = sin xP
1 outcomes · 1 page · every step shown ✦
The five results

sin x → cos x, cos x → −sin x, tan x → sec² x, e^x → e^x, ln x → 1/x. Radians only: with x in degrees the trig results are wrong.

Composite arguments

Keep the whole argument in the outside derivative, then multiply by the derivative of the argument: d/dx sin(ax + b) = a cos(ax + b), d/dx e^(ax + b) = a e^(ax + b), d/dx ln(ax + b) = a/(ax + b).

Split logs first

ln of a product, quotient or power: use the log laws before differentiating. ln(a + b) never splits. Then use the tangent, stationary-point and rate methods of chapter 12 on the new functions.

By the end of this chapter
  • Recall and use d/dx of sin x, cos x, tan x, e^x and ln x, with constant multiples, sums and differences (x in radians).
  • Differentiate sin(ax + b), cos(ax + b), tan(ax + b), e^(ax + b) and ln(ax + b), and more general composite functions, with the chain rule.
  • Use the product and quotient rules with these functions and factorise the answer.
  • Use the laws of logarithms to split ln of a product, quotient, power or root before differentiating.
  • Find gradients, tangents and normals, stationary points and their nature, connected rates and show-that results for these functions.
  • Know that the standard results for sin, cos and tan need radians, and give exact answers using exact trigonometric values and exact logarithms.
✶
Start here

Maths In Real Life

Three situations where a wave, a cooling curve or a logarithmic fill rate decides what is measured. The pictures come first; the working in each solution comes from the same numbers.

A side view of a plain concrete sea wall with calm water beside it. A dashed level line on the wall face marks the high-water height of 5 metres and another marks the low-water height of 1 metre, each labelled with its height.high water 5 m\text{high water }5\text{ m}low water 1 m\text{low water }1\text{ m}side view\text{side view}
Maths In Real Life 1

The tide at a sea wall

Tides rise and fall in a smooth wave. Port engineers use the highest and lowest water levels to set the height of a sea wall, and the rate of rise tells them how quickly the water reaches a given mark.

The height of the water at a sea wall is yy metres above the low-tide datum, where y=2sin⁡(πx6)+3y = 2 \sin{\left(\frac{\pi x}{6} \right)} + 3, and xx is the time in hours after midnight, for 0≤x≤120 \le x \le 12. The angle is in radians.

  • (a)Find the times at which the water is highest and lowest, the height of the water at each of those times, and say which is which.
  • (b)Find how fast the water is rising at midnight, when x=0x = 0.
Show full solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
(a)
ddx(3)=0\displaystyle \frac{d}{dx}\left(3\right) = \textcolor{#010105}{0}
The derivative of a constant is 00.
ddx(2sin⁡(πx6))=2cos⁡(πx6)×π6=πcos⁡(πx6)3\displaystyle \frac{d}{dx}\left(2 \sin{\left(\frac{\pi x}{6} \right)}\right) = 2 \cos{\left(\frac{\pi x}{6} \right)} \times \frac{\pi}{6} = \textcolor{#010105}{\frac{\pi \cos{\left(\frac{\pi x}{6} \right)}}{3}}
Chain rule: the derivative of sin⁡(πx6)\sin{\left(\frac{\pi x}{6} \right)} keeps the whole argument, giving cos⁡(πx6)\cos{\left(\frac{\pi x}{6} \right)}, then multiply by the derivative of the argument, π6\frac{\pi}{6}. The constant multiplier stays in front.
dydx  =πcos⁡(πx6)3\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{\pi \cos{\left(\frac{\pi x}{6} \right)}}{3}}
Add the derivatives of the terms.
At a stationary point the gradient is 00, so set the derivative equal to 00 for 0<x<120 < x < 12.
πcos⁡(πx6)3=0\displaystyle \frac{\pi \cos{\left(\frac{\pi x}{6} \right)}}{3} = 0
A stationary point is where the gradient is zero.
x  =3 or x=9\displaystyle x\;= \textcolor{#010105}{3} \text{ or } x = \textcolor{#010105}{9}
Solve for xx in radians, keeping only the values inside the interval.
y  =2×sin⁡(π×(3)6)+3=5\displaystyle y\;= 2 \times \sin{\left(\frac{\pi \times \left(3\right)}{6} \right)} + 3 = \textcolor{#010106}{5}
Put x=3x = 3 into the curve.
y  =2×sin⁡(π×(9)6)+3=1\displaystyle y\;= 2 \times \sin{\left(\frac{\pi \times \left(9\right)}{6} \right)} + 3 = \textcolor{#010106}{1}
Put x=9x = 9 into the curve.
Differentiate the first derivative once more.
d2ydx2  =(−πsin⁡(πx6)3)×π6\displaystyle \frac{d^{2}y}{dx^{2}}\;= \left(- \frac{\pi \sin{\left(\frac{\pi x}{6} \right)}}{3}\right) \times \frac{\pi}{6}
Chain rule: the derivative of cos⁡(πx6)\cos{\left(\frac{\pi x}{6} \right)} keeps the whole argument, giving −sin⁡(πx6)- \sin{\left(\frac{\pi x}{6} \right)}, then multiply by the derivative of the argument, π6\frac{\pi}{6}. The constant multiplier stays in front.
=−π2sin⁡(πx6)18\displaystyle = \textcolor{#010106}{- \frac{\pi^{2} \sin{\left(\frac{\pi x}{6} \right)}}{18}}
Combine the factors into one term.
y′′  =−π2×sin⁡(π×(3)6)18=−π218\displaystyle y''\;= - \frac{\pi^{2} \times \sin{\left(\frac{\pi \times \left(3\right)}{6} \right)}}{18} = \textcolor{#010106}{- \frac{\pi^{2}}{18}}
Put x=3x = 3 into the second derivative. Use the exact trigonometric values; the angle is in radians.
The second derivative is negative, so the point is a maximum.
f′′  =−π2×sin⁡(π×(9)6)18=π218\displaystyle f''\;= - \frac{\pi^{2} \times \sin{\left(\frac{\pi \times \left(9\right)}{6} \right)}}{18} = \textcolor{#010106}{\frac{\pi^{2}}{18}}
Put x=9x = 9 into the second derivative. Use the exact trigonometric values; the angle is in radians.
The second derivative is positive, so the point is a minimum.
(b)
ddx(3)=0\displaystyle \frac{d}{dx}\left(3\right) = \textcolor{#010105}{0}
The derivative of a constant is 00.
ddx(2sin⁡(πx6))=2cos⁡(πx6)×π6=πcos⁡(πx6)3\displaystyle \frac{d}{dx}\left(2 \sin{\left(\frac{\pi x}{6} \right)}\right) = 2 \cos{\left(\frac{\pi x}{6} \right)} \times \frac{\pi}{6} = \textcolor{#010105}{\frac{\pi \cos{\left(\frac{\pi x}{6} \right)}}{3}}
Chain rule: the derivative of sin⁡(πx6)\sin{\left(\frac{\pi x}{6} \right)} keeps the whole argument, giving cos⁡(πx6)\cos{\left(\frac{\pi x}{6} \right)}, then multiply by the derivative of the argument, π6\frac{\pi}{6}. The constant multiplier stays in front.
dydx  =πcos⁡(πx6)3\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{\pi \cos{\left(\frac{\pi x}{6} \right)}}{3}}
Add the derivatives of the terms.
dydx  =π×cos⁡(π×(0)6)3=π3\displaystyle \frac{dy}{dx}\;= \frac{\pi \times \cos{\left(\frac{\pi \times \left(0\right)}{6} \right)}}{3} = \textcolor{#010106}{\frac{\pi}{3}}
Put x=0x = 0 into the derivative, then use the exact values of the trigonometric functions at this angle (the angle is in radians).
Answer
(a) x=3x = 3 hours after midnight, y=5y = 5 m; x=9x = 9 hours after midnight, y=1y = 1 m; high water: y=5y = 5 m at x=3x = 3 hours after midnight; low water: y=1y = 1 m at x=9x = 9 hours after midnight
(b) Rate (metres per hour): dydx=π3\frac{dy}{dx} = \frac{\pi}{3} when x=0x = 0
A front view of a plain white cup of tea on a plain table with a stick thermometer standing in the tea. A dashed level line across the thermometer marks the starting temperature of 80 °C and is labelled.start 80 °C\text{start }80\text{ °C}front view\text{front view}
Maths In Real Life 2

A cup of tea cooling

A hot drink loses heat fastest at the start and more slowly as it nears room temperature. The gradient of the cooling curve measures how fast, and its sign tells you whether the cooling is speeding up or slowing down.

A cup of tea is poured at time x=0x = 0. Its temperature is yy °C at xx minutes after pouring, where y=24+56e−x20y = 24 + 56 e^{- \frac{x}{20}}.

  • (a)Find the rate at which the temperature is changing at the instant the tea is poured, when x=0x = 0.
  • (b)Find d2ydx2\frac{d^{2}y}{dx^{2}} and its value when x=0x = 0, and say whether the cooling is speeding up or slowing down.
Show full solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
(a)
ddx(24)=0\displaystyle \frac{d}{dx}\left(24\right) = \textcolor{#010105}{0}
The derivative of a constant is 00.
ddx(56e−x20)=56e−x20×(−120)=−14e−x205\displaystyle \frac{d}{dx}\left(56 e^{- \frac{x}{20}}\right) = 56 e^{- \frac{x}{20}} \times \left(- \frac{1}{20}\right) = \textcolor{#010105}{- \frac{14 e^{- \frac{x}{20}}}{5}}
Chain rule: the derivative of e−x20e^{- \frac{x}{20}} keeps the whole argument, giving e−x20e^{- \frac{x}{20}}, then multiply by the derivative of the argument, −120- \frac{1}{20}. The constant multiplier stays in front.
dydx  =−14e−x205\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{- \frac{14 e^{- \frac{x}{20}}}{5}}
Add the derivatives of the terms.
dydx  =−14×e−(0)205=−145\displaystyle \frac{dy}{dx}\;= - \frac{14 \times e^{- \frac{\left(0\right)}{20}}}{5} = \textcolor{#010106}{- \frac{14}{5}}
Put x=0x = 0 into the derivative, then work out the exact value.
(b)
ddx(24)=0\displaystyle \frac{d}{dx}\left(24\right) = \textcolor{#010105}{0}
The derivative of a constant is 00.
ddx(56e−x20)=56e−x20×(−120)=−14e−x205\displaystyle \frac{d}{dx}\left(56 e^{- \frac{x}{20}}\right) = 56 e^{- \frac{x}{20}} \times \left(- \frac{1}{20}\right) = \textcolor{#010105}{- \frac{14 e^{- \frac{x}{20}}}{5}}
Chain rule: the derivative of e−x20e^{- \frac{x}{20}} keeps the whole argument, giving e−x20e^{- \frac{x}{20}}, then multiply by the derivative of the argument, −120- \frac{1}{20}. The constant multiplier stays in front.
dydx  =−14e−x205\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{- \frac{14 e^{- \frac{x}{20}}}{5}}
Add the derivatives of the terms.
Differentiate the first derivative once more.
d2ydx2  =(−14e−x205)×(−120)\displaystyle \frac{d^{2}y}{dx^{2}}\;= \left(- \frac{14 e^{- \frac{x}{20}}}{5}\right) \times \left(- \frac{1}{20}\right)
Chain rule: the derivative of e−x20e^{- \frac{x}{20}} keeps the whole argument, giving e−x20e^{- \frac{x}{20}}, then multiply by the derivative of the argument, −120- \frac{1}{20}. The constant multiplier stays in front.
=7e−x2050\displaystyle = \textcolor{#010106}{\frac{7 e^{- \frac{x}{20}}}{50}}
Combine the factors into one term.
d2ydx2  =7×e−(0)2050\displaystyle \frac{d^{2}y}{dx^{2}}\;= \frac{7 \times e^{- \frac{\left(0\right)}{20}}}{50}
Put x=0x = 0 into the second derivative.
=750\displaystyle = \textcolor{#010106}{\frac{7}{50}}
Work out the exact value.
The value is positive, so the gradient is increasing as xx increases through that point. In words: the gradient is negative but increasing towards 00, so the temperature falls more and more slowly: the cooling is slowing down.
Answer
(a) Rate (°C per minute): dydx=−145\frac{dy}{dx} = - \frac{14}{5} when x=0x = 0
(b) d2ydx2=7e−x2050\frac{d^{2}y}{dx^{2}} = \frac{7 e^{- \frac{x}{20}}}{50}; Second derivative (°C per minute squared): d2ydx2=750\frac{d^{2}y}{dx^{2}} = \frac{7}{50}, so the gradient is negative but increasing towards 00, so the temperature falls more and more slowly: the cooling is slowing down
A front view of a plain cylindrical rain barrel under a plain downpipe. A dashed level line inside the barrel marks the depth of the rainwater after 3 hours and is labelled.depth after 3 h\text{depth after 3 h}front view\text{front view}
Maths In Real Life 3

Rainwater in a barrel

When rain starts, a barrel fills quickly at first and then more slowly as the water gets deeper. A logarithm models this, and its gradient and second derivative describe the filling.

Rainwater collects in a barrel. The depth of water is yy cm at xx hours after the rain starts, where y=40ln⁡(x+1)y = 40 \ln{\left(x + 1 \right)}, for 0≤x≤50 \le x \le 5.

  • (a)Find how fast the depth is rising when x=3x = 3.
  • (b)Find d2ydx2\frac{d^{2}y}{dx^{2}} and its value when x=3x = 3, and explain why the depth rises more and more slowly.
Show full solutionHide solution
Colour keyfinal result
(a)
dydx  =40×1x+1\displaystyle \frac{dy}{dx}\;= 40 \times \frac{1}{x + 1}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 11, over the argument, x+1x + 1. The constant multiplier stays in front.
=40x+1\displaystyle = \textcolor{#010106}{\frac{40}{x + 1}}
Combine the factors into one term.
dydx  =40(3)+1=10\displaystyle \frac{dy}{dx}\;= \frac{40}{\left(3\right) + 1} = \textcolor{#010106}{10}
Put x=3x = 3 into the derivative, then work out the exact value.
(b)
dydx  =40×1x+1\displaystyle \frac{dy}{dx}\;= 40 \times \frac{1}{x + 1}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 11, over the argument, x+1x + 1. The constant multiplier stays in front.
=40x+1\displaystyle = \textcolor{#010106}{\frac{40}{x + 1}}
Combine the factors into one term.
Differentiate the first derivative once more.
d2ydx2  =−401(x+1)2×1\displaystyle \frac{d^{2}y}{dx^{2}}\;= -40\frac{1}{\left(x + 1\right)^{2}} \times 1
Chain rule: bring the power −1-1 down, lower it by 11 keeping the bracket, then multiply by the derivative of the bracket, 11.
=−40(x+1)2\displaystyle = \textcolor{#010106}{- \frac{40}{\left(x + 1\right)^{2}}}
Combine the factors into one term.
d2ydx2  =−40((3)+1)2\displaystyle \frac{d^{2}y}{dx^{2}}\;= - \frac{40}{\left(\left(3\right) + 1\right)^{2}}
Put x=3x = 3 into the second derivative.
=−52\displaystyle = \textcolor{#010106}{- \frac{5}{2}}
Work out the exact value.
The value is negative, so the gradient is decreasing as xx increases through that point. In words: the rate at which the depth rises is decreasing: the depth rises more and more slowly.
Answer
(a) Rate (cm per hour): dydx=10\frac{dy}{dx} = 10 when x=3x = 3
(b) d2ydx2=−40(x+1)2\frac{d^{2}y}{dx^{2}} = - \frac{40}{\left(x + 1\right)^{2}}; Second derivative (cm per hour squared): d2ydx2=−52\frac{d^{2}y}{dx^{2}} = - \frac{5}{2}, so the rate at which the depth rises is decreasing: the depth rises more and more slowly
01
Supports K341-C1-04

Derivatives of sin x, cos x and tan x

Chapter 11 gave you the rules. This chapter adds five new standard results to the list of functions you can differentiate: sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x, exe^{x} and ln⁡x\ln x. Start with the three trigonometric ones. Each result below needs xx in radians, the unit used for every calculus statement in this chapter.

The Core Idea

The three trigonometric results.

ddx(sin⁡x)=cos⁡x\displaystyle \dfrac{d}{dx}(\sin x) = \cos x ddx(cos⁡x)=−sin⁡x\displaystyle \dfrac{d}{dx}(\cos x) = -\sin x ddx(tan⁡x)=sec⁡2x\displaystyle \dfrac{d}{dx}(\tan x) = \sec^{2} x Memorise all three, including the minus sign in the result for cos⁡x\cos x. The derivative of tan⁡x\tan x is written with sec⁡2x\sec^{2} x, which means 1cos⁡2x\dfrac{1}{\cos^{2} x}.

The picture shows why the results look the way they do. On the curve y=sin⁡xy = \sin x the gradient at a point is the value of cos⁡x\cos x there; on y=cos⁡xy = \cos x the gradient is −sin⁡x-\sin x, so the cosine curve falls where the sine is positive. The three tangents below are drawn on one window, so you can compare how steep each curve is at its marked point.

Sine, cosine and tangent with the gradient at one point
FunctionDerivativeWhat the gradient doesPicture
y=sin⁡xy = \sin xcos⁡x\cos xThe gradient is positive where cos⁡x>0\cos x > 0 (the curve rises) and negative where cos⁡x<0\cos x < 0.
The curve y = sin x with a rising tangent line at the point where x is pi over 6.The curve y = sin x with a rising tangent line at the point where x is pi over 6.
tangent at x=π6x = \dfrac{\pi}{6}
y=cos⁡xy = \cos x−sin⁡x-\sin xThe gradient is negative where sin⁡x>0\sin x > 0: the cosine curve falls just after its highest point.
The curve y = cos x with a falling tangent line at the point where x is pi over 3.The curve y = cos x with a falling tangent line at the point where x is pi over 3.
tangent at x=π3x = \dfrac{\pi}{3}
y=tan⁡xy = \tan xsec⁡2x\sec^{2} xThe gradient is never negative, because sec⁡2x\sec^{2} x is a square: the tangent curve only rises.
The curve y = tan x with a steep rising tangent line at the point where x is pi over 4.The curve y = tan x with a steep rising tangent line at the point where x is pi over 4.
tangent at x=π4x = \dfrac{\pi}{4}

Constant multiples and sums work as before: the derivative of a sum is the sum of the derivatives, and a constant multiplier stays in front. Terms in xnx^{n} use the power rule of Chapter 11.

Example 1.1

The standard results in a sum

Differentiate y=x3+5sin⁡(x)−2cos⁡(x)y = x^{3} + 5 \sin{\left(x \right)} - 2 \cos{\left(x \right)} with respect to xx.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(x3)=3x2\displaystyle \frac{d}{dx}\left(x^{3}\right) = \textcolor{#010105}{3 x^{2}}
Multiply by the power 33 and lower the power by 11.
ddx(−2cos⁡(x))=2sin⁡(x)\displaystyle \frac{d}{dx}\left(- 2 \cos{\left(x \right)}\right) = \textcolor{#010105}{2 \sin{\left(x \right)}}
The derivative of cos⁡(x)\cos{\left(x \right)} is −sin⁡(x)- \sin{\left(x \right)} (for xx in radians). The constant multiplier stays in front.
ddx(5sin⁡(x))=5cos⁡(x)\displaystyle \frac{d}{dx}\left(5 \sin{\left(x \right)}\right) = \textcolor{#010105}{5 \cos{\left(x \right)}}
The derivative of sin⁡(x)\sin{\left(x \right)} is cos⁡(x)\cos{\left(x \right)} (for xx in radians). The constant multiplier stays in front.
dydx  =3x2+2sin⁡(x)+5cos⁡(x)\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{3 x^{2} + 2 \sin{\left(x \right)} + 5 \cos{\left(x \right)}}
Add the derivatives of the terms.
Answer
dydx=3x2+2sin⁡(x)+5cos⁡(x)\frac{dy}{dx} = 3 x^{2} + 2 \sin{\left(x \right)} + 5 \cos{\left(x \right)}
The derivative of cos⁡x\cos x is −sin⁡x-\sin x, with a minus sign. A term such as −2cos⁡x-2\cos x therefore has derivative −2×(−sin⁡x)-2 \times (-\sin x), which is +2sin⁡x+2\sin x: two negatives make a positive. Keep every sign visible on its own line.
Example 1.2

tan x gives sec squared

Differentiate y=3x+tan⁡(x)y = 3 x + \tan{\left(x \right)} with respect to xx.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(3x)=3\displaystyle \frac{d}{dx}\left(3 x\right) = \textcolor{#010105}{3}
The term is a multiple of xx, so its derivative is that multiple.
ddx(tan⁡(x))=sec⁡2(x)\displaystyle \frac{d}{dx}\left(\tan{\left(x \right)}\right) = \textcolor{#010105}{\sec^{2}{\left(x \right)}}
The derivative of tan⁡(x)\tan{\left(x \right)} is sec⁡2(x)\sec^{2}{\left(x \right)} (for xx in radians).
dydx  =sec⁡2(x)+3\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\sec^{2}{\left(x \right)} + 3}
Add the derivatives of the terms.
Answer
dydx=sec⁡2(x)+3\frac{dy}{dx} = \sec^{2}{\left(x \right)} + 3

When the angle is not just xx, the angle's own rate of change multiplies the result. This is the chain rule of Chapter 11: keep the whole angle inside the outside derivative, then multiply by the derivative of the angle.

The Core Idea

Linear angles.

ddxsin⁡(ax+b)=acos⁡(ax+b)\displaystyle \dfrac{d}{dx}\sin(ax + b) = a\cos(ax + b) ddxcos⁡(ax+b)=−asin⁡(ax+b)\displaystyle \dfrac{d}{dx}\cos(ax + b) = -a\sin(ax + b) ddxtan⁡(ax+b)=asec⁡2(ax+b)\displaystyle \dfrac{d}{dx}\tan(ax + b) = a\sec^{2}(ax + b) The multiplier aa comes out in front, and the constant bb disappears. Keep the minus sign for cosine.

Example 1.3

Linear angles with a constant

Differentiate y=3sin⁡(2x+1)−cos⁡(4x−3)y = 3 \sin{\left(2 x + 1 \right)} - \cos{\left(4 x - 3 \right)} with respect to xx.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(−cos⁡(4x−3))=sin⁡(4x−3)×4=4sin⁡(4x−3)\displaystyle \frac{d}{dx}\left(- \cos{\left(4 x - 3 \right)}\right) = \sin{\left(4 x - 3 \right)} \times 4 = \textcolor{#010105}{4 \sin{\left(4 x - 3 \right)}}
Chain rule: the derivative of cos⁡(4x−3)\cos{\left(4 x - 3 \right)} keeps the whole argument, giving −sin⁡(4x−3)- \sin{\left(4 x - 3 \right)}, then multiply by the derivative of the argument, 44. The constant multiplier stays in front.
ddx(3sin⁡(2x+1))=3cos⁡(2x+1)×2=6cos⁡(2x+1)\displaystyle \frac{d}{dx}\left(3 \sin{\left(2 x + 1 \right)}\right) = 3 \cos{\left(2 x + 1 \right)} \times 2 = \textcolor{#010105}{6 \cos{\left(2 x + 1 \right)}}
Chain rule: the derivative of sin⁡(2x+1)\sin{\left(2 x + 1 \right)} keeps the whole argument, giving cos⁡(2x+1)\cos{\left(2 x + 1 \right)}, then multiply by the derivative of the argument, 22. The constant multiplier stays in front.
dydx  =4sin⁡(4x−3)+6cos⁡(2x+1)\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{4 \sin{\left(4 x - 3 \right)} + 6 \cos{\left(2 x + 1 \right)}}
Add the derivatives of the terms.
Answer
dydx=4sin⁡(4x−3)+6cos⁡(2x+1)\frac{dy}{dx} = 4 \sin{\left(4 x - 3 \right)} + 6 \cos{\left(2 x + 1 \right)}
SGSchoolKaki Tip

Do not forget the multiplier. ddxsin⁡(2x)\dfrac{d}{dx}\sin(2x) is 2cos⁡(2x)2\cos(2x), not cos⁡(2x)\cos(2x): the angle changes twice as fast as xx, so the whole curve is twice as steep at the same stage of its cycle.

Example 1.4

A fractional multiplier

Differentiate y=sin⁡(x2)+2tan⁡(3x)y = \sin{\left(\frac{x}{2} \right)} + 2 \tan{\left(3 x \right)} with respect to xx.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(2tan⁡(3x))=2sec⁡2(3x)×3=6sec⁡2(3x)\displaystyle \frac{d}{dx}\left(2 \tan{\left(3 x \right)}\right) = 2 \sec^{2}{\left(3 x \right)} \times 3 = \textcolor{#010105}{6 \sec^{2}{\left(3 x \right)}}
Chain rule: the derivative of tan⁡(3x)\tan{\left(3 x \right)} keeps the whole argument, giving sec⁡2(3x)\sec^{2}{\left(3 x \right)}, then multiply by the derivative of the argument, 33. The constant multiplier stays in front.
ddx(sin⁡(x2))=cos⁡(x2)×12=cos⁡(x2)2\displaystyle \frac{d}{dx}\left(\sin{\left(\frac{x}{2} \right)}\right) = \cos{\left(\frac{x}{2} \right)} \times \frac{1}{2} = \textcolor{#010105}{\frac{\cos{\left(\frac{x}{2} \right)}}{2}}
Chain rule: the derivative of sin⁡(x2)\sin{\left(\frac{x}{2} \right)} keeps the whole argument, giving cos⁡(x2)\cos{\left(\frac{x}{2} \right)}, then multiply by the derivative of the argument, 12\frac{1}{2}.
dydx  =cos⁡(x2)2+6sec⁡2(3x)\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{\cos{\left(\frac{x}{2} \right)}}{2} + 6 \sec^{2}{\left(3 x \right)}}
Add the derivatives of the terms.
Answer
dydx=cos⁡(x2)2+6sec⁡2(3x)\frac{dy}{dx} = \frac{\cos{\left(\frac{x}{2} \right)}}{2} + 6 \sec^{2}{\left(3 x \right)}
Think About It
A student says: “The gradient of y=sin⁡xy = \sin x at the origin is 11, so the gradient of y=sin⁡(3x)y = \sin{\left(3 x \right)} at the origin is also 11.” Is the student right?
Show the full workingHide the working
dydx  =3cos⁡(3x)\displaystyle \dfrac{dy}{dx}\;= 3 \cos{\left(3 x \right)}
Chain rule: the derivative of sin⁡(3x)\sin{\left(3 x \right)} has the multiplier 33 from the angle.
m  =3cos⁡0=3×1=3\displaystyle m\;= 3 \cos 0 = 3 \times 1 = 3
The gradient mm at the origin: put x=0x = 0 into the derivative and use cos⁡0=1\cos 0 = 1.
Answer
The student is wrong: the gradient at the origin is 33, not 11. The multiplier 33 from the angle makes the curve 33 times as steep there, because the angle changes 33 times as fast as xx.

Once you have a derivative, a gradient at a given point is one substitution away. Because the angle is in radians, the angle π6\dfrac{\pi}{6} is allowed and its sine and cosine are exact: put the angle in, use the exact trigonometric values you know, and leave the answer as a fraction or a surd. A calculator set to degrees would give the wrong gradient: set it to radians, or better, use exact values.

Example 1.5

The gradient at an angle in radians

Given that f(x)=3sin⁡(2x)+cos⁡(x)f(x) = 3 \sin{\left(2 x \right)} + \cos{\left(x \right)}, find f′(x)f'(x) and the gradient of the curve y=f(x)y = f(x) at the point where x=π6x = \frac{\pi}{6}.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(3sin⁡(2x))=3cos⁡(2x)×2=6cos⁡(2x)\displaystyle \frac{d}{dx}\left(3 \sin{\left(2 x \right)}\right) = 3 \cos{\left(2 x \right)} \times 2 = \textcolor{#010105}{6 \cos{\left(2 x \right)}}
Chain rule: the derivative of sin⁡(2x)\sin{\left(2 x \right)} keeps the whole argument, giving cos⁡(2x)\cos{\left(2 x \right)}, then multiply by the derivative of the argument, 22. The constant multiplier stays in front.
ddx(cos⁡(x))=−sin⁡(x)\displaystyle \frac{d}{dx}\left(\cos{\left(x \right)}\right) = \textcolor{#010105}{- \sin{\left(x \right)}}
The derivative of cos⁡(x)\cos{\left(x \right)} is −sin⁡(x)- \sin{\left(x \right)} (for xx in radians).
f′(x)  =−sin⁡(x)+6cos⁡(2x)\displaystyle f'(x)\;= \textcolor{#010106}{- \sin{\left(x \right)} + 6 \cos{\left(2 x \right)}}
Add the derivatives of the terms.
m  =−sin⁡(π6)+6×cos⁡(2×(π6))\displaystyle m\;= - \sin{\left(\frac{\pi}{6}\right)} + 6 \times \cos{\left(2 \times \left(\frac{\pi}{6}\right) \right)}
Put x=π6x = \frac{\pi}{6} into the derivative.
=52\displaystyle = \textcolor{#010106}{\frac{5}{2}}
Use the exact values of the trigonometric functions at this angle; the angle is in radians.
Answer
f′(x)=−sin⁡(x)+6cos⁡(2x)f'(x) = - \sin{\left(x \right)} + 6 \cos{\left(2 x \right)}; m=52m = \frac{5}{2}
02
Supports K341-C1-04

Derivatives of e^x and ln x

Two more standard results complete the toolbox. The exponential function exe^{x} has the remarkable property that its gradient at any point equals its height there, and the natural logarithm ln⁡x\ln x has a gradient that gets smaller as xx grows. With a linear argument such as e3x+1e^{3x + 1} or ln⁡(2x+3)\ln(2x + 3), the chain rule brings the coefficient of xx into the answer.

The Core Idea

e^x is its own derivative; ln x gives 1/x; a linear argument brings its coefficient of x into the answer.

ddx(ex)=ex\dfrac{d}{dx}\left(e^{x}\right) = e^{x} and ddx(ln⁡x)=1x\dfrac{d}{dx}\left(\ln x\right) = \dfrac{1}{x} (for x>0x > 0). With a linear argument: ddx(eax+b)=a eax+b\dfrac{d}{dx}\left(e^{ax+b}\right) = a\,e^{ax+b} and ddxln⁡(ax+b)=aax+b\dfrac{d}{dx}\ln(ax+b) = \dfrac{a}{ax+b}. Keep the whole argument inside the exponential or the logarithm, then put the derivative of the argument in front (exponential) or on top (logarithm).

Revision. From Chapter 6 and Chapter 11. exe^{x} and ln⁡x\ln x are inverse functions, so eln⁡x=xe^{\ln x} = x and ln⁡ex=x\ln e^{x} = x; also e0=1e^{0} = 1 and ln⁡1=0\ln 1 = 0. The chain rule differentiates a function of a function, and a constant multiplier stays in front.
Example 2.1

The two basic results with a power of x

Find dydx\frac{dy}{dx} for yy given by x2+4ex−3ln⁡(x)x^{2} + 4 e^{x} - 3 \ln{\left(x \right)}, where x>0x > 0.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(x2)=2x\displaystyle \frac{d}{dx}\left(x^{2}\right) = \textcolor{#010105}{2 x}
Multiply by the power 22 and lower the power by 11.
ddx(−3ln⁡(x))=−3x\displaystyle \frac{d}{dx}\left(- 3 \ln{\left(x \right)}\right) = \textcolor{#010105}{- \frac{3}{x}}
The derivative of ln⁡(x)\ln{\left(x \right)} is 1x\frac{1}{x}. The constant multiplier stays in front.
ddx(4ex)=4ex\displaystyle \frac{d}{dx}\left(4 e^{x}\right) = \textcolor{#010105}{4 e^{x}}
The derivative of exe^{x} is exe^{x}. The constant multiplier stays in front.
dydx  =2x+4ex−3x\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{2 x + 4 e^{x} - \frac{3}{x}}
Add the derivatives of the terms.
Answer
dydx=2x+4ex−3x\frac{dy}{dx} = 2 x + 4 e^{x} - \frac{3}{x}
SGSchoolKaki Tip

The derivative of exe^{x} is exe^{x}, with nothing added and nothing removed. A constant multiple stays: ddx(4ex)=4ex\dfrac{d}{dx}\left(4e^{x}\right) = 4e^{x}. And ln⁡x\ln x is the function whose derivative is x−1x^{-1}: ddx(ln⁡x)=1x\dfrac{d}{dx}\left(\ln x\right) = \dfrac{1}{x}. The power rule never produces x−1x^{-1}, because it would need x0x^{0}, whose derivative is 00.

Example 2.2

An exponential with a negative coefficient of x

Differentiate y=2e3x+1−e−xy = 2 e^{3 x + 1} - e^{- x} with respect to xx.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(−e−x)=(−e−x)×(−1)=e−x\displaystyle \frac{d}{dx}\left(- e^{- x}\right) = \left(- e^{- x}\right) \times \left(-1\right) = \textcolor{#010105}{e^{- x}}
Chain rule: the derivative of e−xe^{- x} keeps the whole argument, giving e−xe^{- x}, then multiply by the derivative of the argument, −1-1. The constant multiplier stays in front.
ddx(2e3x+1)=2e3x+1×3=6e3x+1\displaystyle \frac{d}{dx}\left(2 e^{3 x + 1}\right) = 2 e^{3 x + 1} \times 3 = \textcolor{#010105}{6 e^{3 x + 1}}
Chain rule: the derivative of e3x+1e^{3 x + 1} keeps the whole argument, giving e3x+1e^{3 x + 1}, then multiply by the derivative of the argument, 33. The constant multiplier stays in front.
dydx  =6e3x+1+e−x\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{6 e^{3 x + 1} + e^{- x}}
Add the derivatives of the terms.
Answer
dydx=6e3x+1+e−x\frac{dy}{dx} = 6 e^{3 x + 1} + e^{- x}
Do not lose the coefficient of xx, and keep its sign. ddx(e−x)=−e−x\dfrac{d}{dx}\left(e^{-x}\right) = -e^{-x}, never e−xe^{-x}, and ddxln⁡(2x+3)=22x+3\dfrac{d}{dx}\ln(2x + 3) = \dfrac{2}{2x + 3}, never 12x+3\dfrac{1}{2x + 3}. The derivative of the argument always comes along.
Example 2.3

ln(ax + b): the coefficient goes on top

Given that y=5ln⁡(x)+ln⁡(2x+3)y = 5 \ln{\left(x \right)} + \ln{\left(2 x + 3 \right)} for x>0x > 0, find dydx\frac{dy}{dx}.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(5ln⁡(x))=5x\displaystyle \frac{d}{dx}\left(5 \ln{\left(x \right)}\right) = \textcolor{#010105}{\frac{5}{x}}
The derivative of ln⁡(x)\ln{\left(x \right)} is 1x\frac{1}{x}. The constant multiplier stays in front.
ddx(ln⁡(2x+3))=22x+3\displaystyle \frac{d}{dx}\left(\ln{\left(2 x + 3 \right)}\right) = \textcolor{#010105}{\frac{2}{2 x + 3}}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 22, over the argument, 2x+32 x + 3.
dydx  =22x+3+5x\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{2}{2 x + 3} + \frac{5}{x}}
Add the derivatives of the terms.
Answer
dydx=22x+3+5x\frac{dy}{dx} = \frac{2}{2 x + 3} + \frac{5}{x}
Example 2.4

A fractional argument and a logarithm in one function

The curve has equation y=5ex2−2ln⁡(3x+1)y = 5 e^{\frac{x}{2}} - 2 \ln{\left(3 x + 1 \right)}, where x>−13x > - \frac{1}{3}. Find dydx\frac{dy}{dx}.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(−2ln⁡(3x+1))=−2×33x+1=−63x+1\displaystyle \frac{d}{dx}\left(- 2 \ln{\left(3 x + 1 \right)}\right) = -2 \times \frac{3}{3 x + 1} = \textcolor{#010105}{- \frac{6}{3 x + 1}}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 33, over the argument, 3x+13 x + 1. The constant multiplier stays in front.
ddx(5ex2)=5ex2×12=5ex22\displaystyle \frac{d}{dx}\left(5 e^{\frac{x}{2}}\right) = 5 e^{\frac{x}{2}} \times \frac{1}{2} = \textcolor{#010105}{\frac{5 e^{\frac{x}{2}}}{2}}
Chain rule: the derivative of ex2e^{\frac{x}{2}} keeps the whole argument, giving ex2e^{\frac{x}{2}}, then multiply by the derivative of the argument, 12\frac{1}{2}. The constant multiplier stays in front.
dydx  =5ex22−63x+1\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{5 e^{\frac{x}{2}}}{2} - \frac{6}{3 x + 1}}
Add the derivatives of the terms.
Answer
dydx=5ex22−63x+1\frac{dy}{dx} = \frac{5 e^{\frac{x}{2}}}{2} - \frac{6}{3 x + 1}
e^x and ln x side by side: the tangent at one point of each curve
FunctionDerivativePicture
exe^{x}exe^{x}: the gradient equals the height
The curve y equals e to the x with its tangent y equals x plus 1 at the point where x is 0 and y is 1.The curve y equals e to the x with its tangent y equals x plus 1 at the point where x is 0 and y is 1.
tangent at x=0x = 0: height 11, gradient 11
e−xe^{-x}−e−x-e^{-x}: always negative, so the curve always falls
The curve y equals e to the minus x with its tangent y equals 1 minus x at the point where x is 0 and y is 1.The curve y equals e to the minus x with its tangent y equals 1 minus x at the point where x is 0 and y is 1.
tangent at x=0x = 0: gradient −1-1
ln⁡x\ln x (for x>0x > 0)1x\dfrac{1}{x}: positive, and smaller as xx grows
The curve y equals the natural log of x with its tangent y equals x minus 1 at the point where x is 1 and y is 0.The curve y equals the natural log of x with its tangent y equals x minus 1 at the point where x is 1 and y is 0.
tangent at x=1x = 1: gradient 11
Example 2.5

Gradient at x = 0 from exact values

The curve y=e2x−4ln⁡(x+1)y = e^{2 x} - 4 \ln{\left(x + 1 \right)} is defined at the point where x=0x = 0. Find dydx\frac{dy}{dx}, and hence the gradient of the curve at that point.

Show solutionHide solution
Colour keyderivative of a part or intermediate resultfinal result
ddx(−4ln⁡(x+1))=−4×1x+1=−4x+1\displaystyle \frac{d}{dx}\left(- 4 \ln{\left(x + 1 \right)}\right) = -4 \times \frac{1}{x + 1} = \textcolor{#010105}{- \frac{4}{x + 1}}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 11, over the argument, x+1x + 1. The constant multiplier stays in front.
ddx(e2x)=e2x×2=2e2x\displaystyle \frac{d}{dx}\left(e^{2 x}\right) = e^{2 x} \times 2 = \textcolor{#010105}{2 e^{2 x}}
Chain rule: the derivative of e2xe^{2 x} keeps the whole argument, giving e2xe^{2 x}, then multiply by the derivative of the argument, 22.
dydx  =2e2x−4x+1\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{2 e^{2 x} - \frac{4}{x + 1}}
Add the derivatives of the terms.
m  =2×e2×(0)−4(0)+1\displaystyle m\;= 2 \times e^{2 \times \left(0\right)} - \frac{4}{\left(0\right) + 1}
Put x=0x = 0 into the derivative.
=−2\displaystyle = \textcolor{#010106}{-2}
Work out the exact value.
Answer
dydx=2e2x−4x+1\frac{dy}{dx} = 2 e^{2 x} - \frac{4}{x + 1}; m=−2m = -2
SGSchoolKaki Tip

Use the exact values at x=0x = 0 and x=1x = 1. e0=1e^{0} = 1 and ln⁡1=0\ln 1 = 0, so the gradient at x=0x = 0 of a function with eaxe^{ax} and ln⁡(bx+1)\ln(bx + 1) comes out as a whole number or a fraction, with no calculator.

Think About It
A student says that the derivative of ln⁡g(x)\ln g(x) is just 1g(x)\dfrac{1}{g(x)}. Test this rule on y=ln⁡(e3x)y = \ln\left(e^{3x}\right), a function whose derivative you can find without any rule for logarithms.
Show the full workingHide the working
The logarithm and the exponential undo each other, so the function simplifies before any derivative is taken.
y  =ln⁡(e3x)=3x\displaystyle y\;= \ln\left(e^{3x}\right) = 3x
ln⁡\ln and exe^{x} are inverse functions, so the function is just a straight line.
dydx  =3\displaystyle \dfrac{dy}{dx}\;= 3
A straight line y=3xy = 3x has gradient 33 at every xx.
1e3x  =e−3x\displaystyle \dfrac{1}{e^{3x}}\;= e^{-3x}
With g(x)=e3xg(x) = e^{3x} this is what the student's rule gives for every xx.
e−3x  =e−3×0=1\displaystyle e^{-3x}\;= e^{-3 \times 0} = 1
At x=0x = 0 the student's rule gives 11, but the true gradient is 33.
g′(x)g(x)  =3e3xe3x=3\displaystyle \dfrac{g'(x)}{g(x)}\;= \dfrac{3e^{3x}}{e^{3x}} = 3
With the derivative of the argument, 3e3x3e^{3x}, on top, the gradient is 33 for every xx, as it should be.
Answer
The student's rule gives e−3xe^{-3x}, which is 11 at x=0x = 0, but the straight line y=3xy = 3x has gradient 33. The rule g′(x)g(x)\dfrac{g'(x)}{g(x)} gives 33 exactly. So the derivative of the argument must be on top: ddxln⁡g(x)=g′(x)g(x)\dfrac{d}{dx}\ln g(x) = \dfrac{g'(x)}{g(x)}, not 1g(x)\dfrac{1}{g(x)}.
Beyond the Syllabus · Good to Know

Powers with another base. For a constant a>0\textcolor{#010101}{a > 0}, ax=exln⁡aa^{x} = e^{x \ln a}, so by the chain rule ddx(ax)=axln⁡a\dfrac{d}{dx}\left(a^{x}\right) = a^{x} \ln a. For example ddx(2x)=2xln⁡2\dfrac{d}{dx}\left(2^{x}\right) = 2^{x} \ln 2. This is good to know but it is not required: if axa^{x} ever appears, write it as exln⁡ae^{x \ln a} first.

03
Supports K341-C1-04

Chain rule with trig, exponential and log functions

A composite function is a function inside another function, such as ex2e^{x^{2}} (an exponential of a quadratic) or sin⁡3x\sin^{3} x (a cube of a sine). The chain rule of Chapter 11 differentiates them: differentiate the outside, keep the inside unchanged, then multiply by the derivative of the inside.

The Core Idea

The chain rule with the five new functions.

ddxf(g(x))=f′(g(x))×g′(x).\displaystyle \dfrac{d}{dx} f\bigl(g(x)\bigr) = f'\bigl(g(x)\bigr) \times g'(x). The outside derivative keeps the whole inside: ddxeg(x)=g′(x) eg(x)\dfrac{d}{dx}e^{g(x)} = g'(x)\,e^{g(x)}, ddxln⁡g(x)=g′(x)g(x)\dfrac{d}{dx}\ln g(x) = \dfrac{g'(x)}{g(x)}, ddxsin⁡g(x)=g′(x)cos⁡g(x)\dfrac{d}{dx}\sin g(x) = g'(x)\cos g(x), and for a power, ddx(g(x))n=n (g(x))n−1g′(x)\dfrac{d}{dx}\bigl(g(x)\bigr)^{n} = n\,\bigl(g(x)\bigr)^{n-1} g'(x).

Which rule and what answer shape
The function looks likeOutside functionInside functionWhat the answer looks like
eg(x)e^{g(x)}e□e^{\square} keeps its insideg(x)g(x)g′(x) eg(x)g'(x)\,e^{g(x)}: the exponential is unchanged and is multiplied by g′(x)g'(x).
ln⁡g(x)\ln g(x)ln⁡□\ln \square becomes 1□\dfrac{1}{\square}g(x)g(x)g′(x)g(x)\dfrac{g'(x)}{g(x)}: a fraction with the inside underneath.
sin⁡g(x)\sin g(x) or cos⁡g(x)\cos g(x) or tan⁡g(x)\tan g(x)the trig function changes as in the table above, keeping the insideg(x)g(x)g′(x)cos⁡g(x)g'(x)\cos g(x), −g′(x)sin⁡g(x)-g'(x)\sin g(x) or g′(x)sec⁡2g(x)g'(x)\sec^{2} g(x).
(sin⁡x)n\bigl(\sin x\bigr)^{n}, (ex+2)n\bigl(e^{x} + 2\bigr)^{n}, (ln⁡x+1)n\bigl(\ln x + 1\bigr)^{n}the power: bring nn down and lower the power by 11the bracketn (bracket)n−1n\,(\text{bracket})^{n-1} times the derivative of the bracket.
Example 3.1

e to the power of a quadratic

Differentiate y=ex2−3xy = e^{x^{2} - 3 x} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =ex2−3x×(2x−3)\displaystyle \frac{dy}{dx}\;= e^{x^{2} - 3 x} \times \left(2 x - 3\right)
Chain rule: the derivative of ex2−3xe^{x^{2} - 3 x} keeps the whole argument, giving ex2−3xe^{x^{2} - 3 x}, then multiply by the derivative of the argument, 2x−32 x - 3.
=(2x−3)ex2−3x\displaystyle = \textcolor{#010106}{\left(2 x - 3\right) e^{x^{2} - 3 x}}
Combine the factors into one term.
Answer
dydx=(2x−3)ex2−3x\frac{dy}{dx} = \left(2 x - 3\right) e^{x^{2} - 3 x}
SGSchoolKaki Tip

The exponential factor never changes in the answer: ex2−3xe^{x^{2} - 3x} appears again after differentiating. The only new piece is the derivative of the power, 2x−32x - 3, written in front.

Example 3.2

ln of a cubic

Differentiate y=ln⁡(x3+5)y = \ln{\left(x^{3} + 5 \right)} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =3x2x3+5\displaystyle \frac{dy}{dx}\;= \textcolor{#010106}{\frac{3 x^{2}}{x^{3} + 5}}
The derivative of ln⁡f(x)\ln f(x) is f′(x)f'(x) over f(x)f(x): the derivative of the argument, 3x23 x^{2}, over the argument, x3+5x^{3} + 5.
Answer
dydx=3x2x3+5\frac{dy}{dx} = \frac{3 x^{2}}{x^{3} + 5}
The derivative of ln⁡(g(x))\ln\bigl(g(x)\bigr) is g′(x)g(x)\dfrac{g'(x)}{g(x)}, not 1g(x)\dfrac{1}{g(x)}. Writing only 1g(x)\dfrac{1}{g(x)} forgets the chain-rule factor. The same factor aa appears for ln⁡(ax+b)\ln(ax + b), whose derivative is aax+b\dfrac{a}{ax + b}.
Example 3.3

A power of a trigonometric function

Differentiate y=sin⁡3(x)y = \sin^{3}{\left(x \right)} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =3sin⁡2(x)×cos⁡(x)\displaystyle \frac{dy}{dx}\;= 3\sin^{2}{\left(x \right)} \times \cos{\left(x \right)}
Chain rule: bring the power 33 down, lower it by 11 keeping the bracket, then multiply by the derivative of the bracket, cos⁡(x)\cos{\left(x \right)}.
=3sin⁡2(x)cos⁡(x)\displaystyle = \textcolor{#010106}{3 \sin^{2}{\left(x \right)} \cos{\left(x \right)}}
Combine the factors into one term.
Answer
dydx=3sin⁡2(x)cos⁡(x)\frac{dy}{dx} = 3 \sin^{2}{\left(x \right)} \cos{\left(x \right)}
sin⁡3x\sin^{3} x means (sin⁡x)3(\sin x)^{3}, so the derivative is 3(sin⁡x)2cos⁡x3(\sin x)^{2}\cos x, which is NOT 3cos⁡2x3\cos^{2} x. The power comes down, the bracket stays as it is, and the derivative of the sine multiplies at the end. Also, sin⁡x2\sin x^{2} means the sine of x2x^{2}, a different function: a stem always shows the brackets.
Example 3.4

A power of an exponential or logarithmic bracket

Differentiate y=(ex+2)3y = \left(e^{x} + 2\right)^{3} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =3(ex+2)2×ex\displaystyle \frac{dy}{dx}\;= 3\left(e^{x} + 2\right)^{2} \times e^{x}
Chain rule: bring the power 33 down, lower it by 11 keeping the bracket, then multiply by the derivative of the bracket, exe^{x}.
=3(ex+2)2ex\displaystyle = \textcolor{#010106}{3 \left(e^{x} + 2\right)^{2} e^{x}}
Combine the factors into one term.
Answer
dydx=3(ex+2)2ex\frac{dy}{dx} = 3 \left(e^{x} + 2\right)^{2} e^{x}
Example 3.5

A trigonometric function of a quadratic

Differentiate y=2sin⁡(3x2−1)y = 2 \sin{\left(3 x^{2} - 1 \right)} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =2cos⁡(3x2−1)×6x\displaystyle \frac{dy}{dx}\;= 2 \cos{\left(3 x^{2} - 1 \right)} \times 6 x
Chain rule: the derivative of sin⁡(3x2−1)\sin{\left(3 x^{2} - 1 \right)} keeps the whole argument, giving cos⁡(3x2−1)\cos{\left(3 x^{2} - 1 \right)}, then multiply by the derivative of the argument, 6x6 x. The constant multiplier stays in front.
=12xcos⁡(3x2−1)\displaystyle = \textcolor{#010106}{12 x \cos{\left(3 x^{2} - 1 \right)}}
Combine the factors into one term.
Answer
dydx=12xcos⁡(3x2−1)\frac{dy}{dx} = 12 x \cos{\left(3 x^{2} - 1 \right)}
Think About It
Are y=sin⁡3(x)y = \sin^{3}{\left(x \right)} and y=sin⁡(x3)y = \sin{\left(x^{3} \right)} the same function? Differentiate both to compare, and use x=π2x = \dfrac{\pi}{2} as a test.
Show the full workingHide the working
ddx(sin⁡3(x))  =3sin⁡2(x)cos⁡(x)\displaystyle \dfrac{d}{dx}\left(\sin^{3}{\left(x \right)}\right)\;= 3 \sin^{2}{\left(x \right)} \cos{\left(x \right)}
Power of a bracket: bring the power down, keep the bracket, multiply by the derivative of the sine.
ddx(sin⁡(x3))  =3x2cos⁡(x3)\displaystyle \dfrac{d}{dx}\left(\sin{\left(x^{3} \right)}\right)\;= 3 x^{2} \cos{\left(x^{3} \right)}
Sine of a power: keep the whole angle, multiply by the derivative of the angle.
3sin⁡2(π2)cos⁡(π2)=3×0=0\displaystyle 3 \sin^{2}\left(\dfrac{\pi}{2}\right)\cos\left(\dfrac{\pi}{2}\right) = 3 \times 0 = 0
At x=π2x = \dfrac{\pi}{2} the sine is 11 and the cosine is 00, so the derivative of the first function is 00.
3(π2)2cos⁡((π2)3)≈−5.50\displaystyle 3\left(\dfrac{\pi}{2}\right)^{2}\cos\left(\left(\dfrac{\pi}{2}\right)^{3}\right) \approx -5.50
The derivative of the second function at x=π2x = \dfrac{\pi}{2}: put the angle in radians, so the angle inside the cosine is (π2)3\left(\dfrac{\pi}{2}\right)^{3}. The value is -5.50 to 33 significant figures, which is not 00.
Answer
No. The derivatives are different expressions, and at x=π2x = \dfrac{\pi}{2} the derivative of the first function is 00 while the derivative of the second function is about −5.50-5.50 (to 33 significant figures), which is not 00. So the two functions are different: a power of a sine and a sine of a power are not the same thing.

A function can be nested more than once. cos⁡(ex)\cos(e^{x}) is a cosine whose angle is an exponential, so the outside derivative is −sin⁡(ex)-\sin(e^{x}) with the inside kept, and the inside, exe^{x}, has its own derivative exe^{x} to multiply.

Example 3.6

A function inside a function

Differentiate y=cos⁡(ex)y = \cos{\left(e^{x} \right)} with respect to xx.

Show solutionHide solution
Colour keyfinal result
dydx  =(−sin⁡(ex))×ex\displaystyle \frac{dy}{dx}\;= \left(- \sin{\left(e^{x} \right)}\right) \times e^{x}
Chain rule: the derivative of cos⁡(ex)\cos{\left(e^{x} \right)} keeps the whole argument, giving −sin⁡(ex)- \sin{\left(e^{x} \right)}, then multiply by the derivative of the argument, exe^{x}.
=−exsin⁡(ex)\displaystyle = \textcolor{#010106}{- e^{x} \sin{\left(e^{x} \right)}}
Combine the factors into one term.
Answer
dydx=−exsin⁡(ex)\frac{dy}{dx} = - e^{x} \sin{\left(e^{x} \right)}
Locked · Chapter 13

You've read the free 28%. Unlock the rest of Chapter 13.

Still to read in this chapter:

  • Product and quotient
  • Log laws first
  • Gradient, tangent, normal
  • Stationary points, rates
  • Formula panel
  • Exercise

$9 one-time · all 17 chapters · no subscription

Worked examples, formulas and exam checks.
The whole A-Math syllabus.

Premium members get all 17 chapters included.

Notes version 1.0 · Last updated 3 Nov 2026 · Chapter 13 of 17