Navigation

Computing derivatives

4.3 The chain rule

36 problems · hints, answers and solutions shown beside each one

Stage 1 · Conceptual

Q1Stage 1

Suppose the amount of kelp in a harbour depends on the number of urchins. Urchins eat kelp: when there are more urchins, there is less kelp, and when there are fewer urchins, there is more kelp. Suppose further that the number of urchins in the harbour depends on the number of otters, who find urchins extremely tasty: the more otters there are, the fewer urchins there are.

Let OO, UU, and KK be the populations of otters, urchins, and kelp, respectively.

  1. Is dKdU\diff{K}{U} positive or negative?

  2. Is dUdO\diff{U}{O} positive or negative?

  3. Is dKdO\diff{K}{O} positive or negative?

Remark: An urchin barren is an area where unchecked sea urchin grazing has decimated the kelp population, which in turn causes the other species that shelter in the kelp forests to leave. Introducing otters to urchin barrens is one intervention to increase biodiversity. A short video with a more complex view of otters and urchins in Canadian waters is available on YouTube: https://youtu.be/ASJ82wyHisE

Hint

For parts (a) and (b), remember the definition of a derivative:

dKdU=limh0K(U+h)K(U)h.\ds\diff{K}{U}=\ds\lim_{h \rightarrow 0}\dfrac{K(U+h)-K(U)}{h}.

When hh is positive, U+hU+h is an increased urchin population; what is the sign of K(U+h)K(U)K(U+h)-K(U)?

For part (c), use the chain rule!

Answer

(a) dKdU\diff{K}{U} is negative (b) dUdO\diff{U}{O} is negative (c) dKdO\diff{K}{O} is positive

Full solution

(a) More urchins means less kelp, and fewer urchins means more kelp. This means kelp and urchins are negatively correlated, so dKdU<0\diff{K}{U}<0.

If you aren't sure why that is, we give a more detailed explanation here, using the definition of the derivative. When hh is a positive number, U+hU+h is greater than UU, so K(U+h)K(U+h) is less than UU, hence K(U+h)K(U)<0K(U+h)-K(U)<0. Therefore:

limh0+K(U+h)K(U)h=negativepositive<0.\ds\lim_{h \rightarrow 0^+}\dfrac{K(U+h)-K(U)}{h} = \dfrac{\text{negative}}{\text{positive}}<0.

Similarly, when hh is negative, U+hU+h is less than UU, so K(U+h)K(U)>0K(U+h)-K(U)>0, and

limh0K(U+h)K(U)h=positivenegative<0.\ds\lim_{h \rightarrow 0^-}\dfrac{K(U+h)-K(U)}{h}= \dfrac{\text{positive}}{\text{negative}}<0.

Therefore:

dKdU=limh0K(U+h)K(U)h<0.\ds\diff{K}{U}=\ds\lim_{h \rightarrow 0}\dfrac{K(U+h)-K(U)}{h}<0.

(b) More otters means fewer urchins, and fewer otters means more urchins. So, otters and urchins are negatively correlated: dUdO<0\diff{U}{O}<0.
(c) Using the chain rule, dKdO=dKdUdUdO\diff{K}{O} = \diff{K}{U}\cdot\diff{U}{O}. Parts (a) and (b) tell us both these derivatives are negative, so their product is positive: dKdO>0\diff{K}{O}>0.

We can also see that dKdO>0\diff{K}{O}>0 by thinking about the relationships as described. When the otter population increases, the urchin population decreases, so the kelp population increases. That means when the otter population increases, the kelp population also increases, so kelp and otters are positively correlated. The chain rule is a formal version of this kind of reasoning.

Q2Stage 1

Suppose A, B, C, D, A,~B,~C,~D,~ and EE are functions describing an interrelated system, with the following signs: dAdB>0\diff{A}{B}>0, dBdC>0\diff{B}{C}>0, dCdD<0\diff{C}{D}<0, and dDdE>0\diff{D}{E}>0. Is dAdE\diff{A}{E} positive or negative?

Hint

Remember that Leibniz notation suggests fractional cancellation.

Answer

negative

Full solution
dAdE=dAdBdBdCdCdDdDdE<0\diff{A}{E}=\diff{A}{B}\cdot\diff{B}{C}\cdot\diff{C}{D}\cdot\diff{D}{E}<0

since we multiply three positive quantities and one negative.

Stage 2 · Procedural

Q3Stage 2

Evaluate the derivative of f(x)=cos(5x+3)f(x)=\cos(5x+3).

Hint

If g(x)=cosxg(x)=\cos x and h(x)=5x+3h(x)=5x+3, then f(x)=g(h(x))f(x)=g(h(x)). So we apply the chain rule, with “outside" function cosx\cos x and “inside" function 5x+35x+3.

Answer

5sin(5x+3)-5\sin(5x+3)

Full solution

Applying the chain rule:

ddx{cos(5x+3)}=sin(5x+3)ddx{5x+3}=sin(5x+3)5\begin{align*} \diff{}{x}\{\cos(5x+3)\}&=-\sin(\textcolor{red}{5x+3})\cdot\diff{}{x}\{\textcolor{red}{5x+3}\}\\ &=-\sin(5x+3)\cdot 5 \end{align*}
Q4Stage 2

Evaluate the derivative of f(x)=(x2+2)5f(x)=\left({x^2+2}\right)^5.

Hint

You can expand this into a polynomial, but it's easier to use the chain rule. If g(x)=x5g(x)=x^5, and h(x)=x2+2h(x)=x^2+2, then f(x)=g(h(x))f(x)=g(h(x)).

Answer

10x(x2+2)410x(x^2+2)^4

Full solution

Using the chain rule,

f(x)=ddx{(x2+2)5}=5(x2+2)4ddx{x2+2}=5(x2+2)42x=10x(x2+2)4\begin{align*} f'(x)&=\diff{}{x}\left\{\left({x^2+2}\right)^5\right\}\\ &=5\left(\textcolor{red}{x^2+2}\right)^4\cdot\diff{}{x}\{\textcolor{red}{x^2+2}\}\\ &=5(x^2+2)^4 \cdot 2x\\ &=10x(x^2+2)^4 \end{align*}
Q5Stage 2

Evaluate the derivative of T(k)=(4k4+2k2+1)17T(k)=\left({4k^4+2k^2+1}\right)^{17}.

Hint

You can expand this into a polynomial, but it's easier to use the chain rule. If g(k)=k17g(k)=k^{17}, and h(k)=4k4+2k2+1h(k)=4k^4+2k^2+1, then T(k)=g(h(k))T(k)=g(h(k)).

Answer

17(4k4+2k2+1)16(16k3+4k)17(4k^4+2k^2+1)^{16}\cdot(16k^3+4k)

Full solution

Using the chain rule,

T(k)=ddk{(4k4+2k2+1)17}=17(4k4+2k2+1)16ddk{4k4+2k2+1}=17(4k4+2k2+1)16(16k3+4k)\begin{align*} T'(k)&=\diff{}{k}\left\{\left({4k^4+2k^2+1}\right)^{17}\right\}\\ &=17(\textcolor{red}{4k^4+2k^2+1})^{16}\cdot\diff{}{k}\{\textcolor{red}{4k^4+2k^2+1}\}\\ &=17(4k^4+2k^2+1)^{16}\cdot(16k^3+4k) \end{align*}
Q6Stage 2

Evaluate the derivative of f(x)=x2+1x21f(x)=\sqrt{\dfrac{x^2+1}{x^2-1}}.

Hint

If we define g(x)=xg(x)=\sqrt{x} and h(x)=x2+1x21h(x)=\dfrac{x^2+1}{x^2-1}, then f(x)=g(h(x))f(x)=g(h(x)).
To differentiate the square root function: ddx{x}=ddx{x1/2}=12x1/2=12x\ds\diff{}{x}\{\sqrt{x}\}=\ds\diff{}{x}\left\{x^{1/2}\right\}=\dfrac{1}{2}x^{-1/2}=\dfrac{1}{2\sqrt{x}}.

Answer

2x(x21)x41\frac{-2x}{({x^2-1})\sqrt{x^4-1}}

Full solution

Using the chain rule:

ddx{x2+1x21}=12x2+1x21ddx{x2+1x21}=12x21x2+1ddx{x2+1x21}\begin{align*}\diff{}{x}\left\{\sqrt{\frac{x^2+1}{x^2-1}}\right\}&=\frac{1}{2\sqrt{\textcolor{red}{\frac{x^2+1}{x^2-1}}}}\cdot \diff{}{x}\left\{\textcolor{red}{\frac{x^2+1}{x^2-1}}\right\}\\ &=\frac{1}{2}\sqrt{\frac{x^2-1}{x^2+1}}\cdot\diff{}{x}\left\{\frac{x^2+1}{x^2-1}\right\}\end{align*}

And now, the quotient rule:

=12x21x2+1((x21)(2x)(x2+1)2x(x21)2)=12x21x2+1(4x(x21)2)=x21x2+1(2x(x21)2)=2x(x21)x41\begin{align*}&=\frac{1}{2}\sqrt{\frac{x^2-1}{x^2+1}}\cdot\left(\frac{(x^2-1)(2x)-(x^2+1)2x}{(x^2-1)^2}\right)\\ &=\frac{1}{2}\sqrt{\frac{x^2-1}{x^2+1}}\cdot\left(\frac{-4x}{(x^2-1)^2}\right)\\ &=\sqrt{\frac{x^2-1}{x^2+1}}\cdot\left(\frac{-2x}{(x^2-1)^2}\right)\\ &=\frac{-2x}{({x^2-1})\sqrt{x^4-1}}\end{align*}
Q7Stage 2

Evaluate the derivative of f(x)=ecos(x2)f(x)=e^{\cos(x^2)}.

Hint

You'll need to use the chain rule twice.

Answer

ecos(x2)sin(x2)2x-e^{\cos(x^2)}\cdot \sin(x^2)\cdot 2x

Full solution

If we let g(x)=exg(x)=e^x and h(x)=cos(x2)h(x)=\cos(x^2), then f(x)=g(h(x))f(x)=g(h(x)), so f(x)=g(h(x))h(x)f'(x)=g'(h(x))\cdot h'(x).

f(x)=ecos(x2)ddx{cos(x2)}\begin{align*}f'(x)&=e^{\textcolor{red}{\cos(x^2)}}\cdot \diff{}{x}\{\textcolor{red}{\cos(x^2)}\}\end{align*}

In order to evaluate ddx{cos(x2)}\diff{}{x}\{{\cos(x^2)}\}, we'll need the chain rule again.

=ecos(x2)[sin(x2)]ddx{x2}=ecos(x2)sin(x2)2x\begin{align*}&=e^{\cos(x^2)}\cdot [-\sin(\textcolor{orange}{x^2})]\cdot\diff{}{x}\{\textcolor{orange}{x^2}\}\\ &=-e^{\cos(x^2)}\cdot \sin(x^2)\cdot 2x\end{align*}
Q8Stage 2Past exam · 2006H

Evaluate f(2)f'(2) if f(x)=g(x/h(x))f(x) = g\big(x/h(x)\big), h(2)=2h(2) = 2, h(2)=3h'(2) = 3, g(1)=4g'(1) = 4.

Hint

Use the chain rule.

Answer

4-4

Full solution

We use the chain rule, followed by the quotient rule:

f(x)=g(xh(x))ddx{xh(x)}=g(xh(x))h(x)xh(x)h(x)2\begin{align*}f'(x) &=g'\left(\textcolor{red}{\frac{x}{h(x)}}\right)\cdot\diff{}{x}\left\{\textcolor{red}{\frac{x}{h(x)}} \right\} \\&= g'\left(\frac{x}{h(x)}\right)\cdot\frac{h(x)-xh'(x)}{h(x)^2}\end{align*}

When x=2x=2:

f(2)=g(2h(2))h(2)2h(2)h(2)2=422×322=4\begin{align*}f'(2) &= g'\left(\frac{2}{h(2)}\right)\frac{h(2)-2h'(2)}{h(2)^2}\\ &= 4\frac{2-2\times3}{2^2} =-4\end{align*}
Q9Stage 2Past exam · 2006D

Find the derivative of excos(x)e^{x\cos(x)}.

Hint

Use the chain rule.

Answer

[cosxxsinx]excos(x)[\cos x -x\sin x]e^{x\cos(x)}

Full solution

Using the chain rule, followed by the product rule:

ddx{excos(x)}=excosxddx{xcosx}=[cosxxsinx]excos(x)\begin{align*} \diff{}{x}\left\{e^{x\cos(x)}\right\}&=e^{\textcolor{red}{x\cos x}}\diff{}{x}\left\{ \textcolor{red}{x\cos x}\right\} \\&=[\cos x -x\sin x]e^{x\cos(x)} \end{align*}
Q10Stage 2Past exam · 2009H

Evaluate f(x)f'(x) if f(x)=ex2+cosxf(x) = e^{x^2+\cos x}.

Hint

Use the chain rule.

Answer

[2xsinx]ex2+cos(x)[2x-\sin x]e^{x^2+\cos(x)}

Full solution

Using the chain rule:

ddx{ex2+cos(x)}=ex2+cosxddx{x2+cosx}=[2xsinx]ex2+cos(x)\begin{align*} \diff{}{x}\left\{e^{x^2+\cos(x)}\right\}&=e^{\textcolor{red}{x^2+\cos x}}\diff{}{x}\left\{ \textcolor{red}{x^2+\cos x}\right\} \\&=[2x-\sin x]e^{x^2+\cos(x)} \end{align*}
Q11Stage 2Past exam · 2009H

Evaluate f(x)f'(x) if f(x)=x1x+2f(x) = \sqrt{\dfrac{x-1}{x+2}}.

Hint

Use the chain rule.

Answer

32x1x+23\frac{3}{2\sqrt{x-1}\sqrt{x+2}^3}

Full solution

Using the chain rule, followed by the quotient rule:

ddx{x1x+2}=12x1x+2ddx{x1x+2}=x+22x1(x+2)(x1)(x+2)2=32x1x+23\begin{align*} \diff{}{x}\left\{ \sqrt{\dfrac{x-1}{x+2}}\right\}&=\frac{1}{2\sqrt{\textcolor{red}{\dfrac{x-1}{x+2}}}}\diff{}{x}\left\{ \textcolor{red}{\dfrac{x-1}{x+2}}\right\} \\&=\frac{\sqrt{x+2}}{2\sqrt{x-1}}\cdot \frac{(x+2)-(x-1)}{(x+2)^2}\\ &=\frac{3}{2\sqrt{x-1}\sqrt{x+2}^3} \end{align*}
Q12Stage 2Past exam · 2010H

Differentiate the function

f(x)=1x2+x21f(x)=\frac{1}{x^2}+\sqrt{x^2-1}

and give the domain where the derivative exists.

Hint

Recall 1x2=x2\dfrac{1}{x^2}=x^{-2} and x21=(x21)1/2\sqrt{x^2-1}=(x^2-1)^{1/2}.

Answer

f(x)=2x3+xx21f'(x)= -\dfrac{2}{x^3}+\dfrac{x}{\sqrt{x^2-1}} is defined for xx in (,1)(1,)(-\infty,1) \cup (1,\infty).

Full solution

First, we manipulate our function to make it easier to differentiate:

f(x)=x2+(x21)1/2\begin{align*}f(x)&=x^{-2}+(x^2-1)^{1/2}\end{align*}

Now, we can use the power rule to differentiate 1x2\dfrac{1}{x^2}. This will be easier than differentiating 1x2\dfrac{1}{x^2} using quotient rule, but if you prefer, quotient rule will also work.

f(x)=2x3+12(x21)1/2ddx{x21}=2x3+12(x21)1/2(2x)=2x3+xx21\begin{align*}f'(x)&=-2x^{-3}+\frac{1}{2}(\textcolor{red}{x^2-1})^{-1/2}\cdot\diff{}{x}\{\textcolor{red}{x^2-1}\}\\ &=-2x^{-3}+\frac{1}{2}({x^2-1})^{-1/2}(2x)\\ &=\frac{-2}{x^3}+\frac{x}{\sqrt{x^2-1}}\end{align*}

The function f(x)f(x) is only defined when x0x \neq 0 and when x210x^2-1 \geq 0. That is, when xx is in (,1][1,)(-\infty,-1] \cup [1,\infty). We have an added restriction on the domain of f(x)f'(x): x21x^2-1 must not be zero. So, the domain of f(x)f'(x) is (,1)(1,)(-\infty,-1)\cup(1,\infty).

Q13Stage 2Past exam · 1998H

Evaluate the derivative of f(x)=sin5x1+x2f(x)=\dfrac{\sin 5x}{1+x^2}

Answer

f(x)=(1+x2)(5cos5x)(sin5x)(2x)(1+x2)2f'(x)=\dfrac{(1+x^2)(5\cos 5x)-(\sin 5x)(2x)}{{(1+x^2)}^2}

Full solution

We use the quotient rule, noting that ddx{sin5x}=5cos5x\ds\diff{}{x}\{\sin 5x\}=5\cos 5x:

f(x)=(1+x2)(5cos5x)(sin5x)(2x)(1+x2)2\begin{align*} f'(x)&=\frac{(1+x^2)(5\cos 5x)-(\sin 5x)(2x)}{{(1+x^2)}^2} \end{align*}
Q14Stage 2

Evaluate the derivative of f(x)=sec(e2x+7)f(x)=\sec(e^{2x+7}).

Hint

If we let g(x)=secxg(x)=\sec x and h(x)=e2x+7{h(x)}=e^{2x+7}, then f(x)=g(h(x))f(x)=g(h(x)), so by the chain rule, f(x)=g(h(x))h(x)f'(x)=g'(h(x))\cdot h'(x). However, in order to evaluate h(x)h'(x), we'll need to use the chain rule again.

Answer

2e2x+7sec(e2x+7)tan(e2x+7)2e^{2x+7}\sec(e^{2x+7})\tan(e^{2x+7})

Full solution

If we let g(x)=secxg(x)=\sec x and h(x)=e2x+7h(x)=e^{2x+7}, then f(x)=g(h(x))f(x)=g(h(x)), so by the chain rule, f(x)=g(h(x))h(x)f'(x)=g'(h(x))\cdot h'(x). Since g(x)=secxtanxg'(x)=\sec x \tan x:

f(x)=g(h(x))h(x)=sec(h(x))tan(h(x))h(x)=sec(e2x+7)tan(e2x+7)ddx{e2x+7}\begin{align*}f'(x)&=g'(h(x))\cdot h'(x)\\ &=\sec(h(x))\tan(h(x)) \cdot h'(x)\\ &=\sec(e^{2x+7})\tan(e^{2x+7}) \cdot \diff{}{x}\left\{e^{2x+7}\right\}\end{align*}

Here, we need the chain rule again:

=sec(e2x+7)tan(e2x+7)[e2x+7ddx{2x+7}]=sec(e2x+7)tan(e2x+7)[e2x+72]=2e2x+7sec(e2x+7)tan(e2x+7)\begin{align*}&=\sec(e^{2x+7})\tan(e^{2x+7}) \cdot \left[e^{\textcolor{red}{2x+7}}\cdot \diff{}{x}\{\textcolor{red}{2x+7}\}\right]\\ &=\sec(e^{2x+7})\tan(e^{2x+7}) \cdot \left[e^{2x+7}\cdot2\right]\\ &=2e^{2x+7}\sec(e^{2x+7})\tan(e^{2x+7})\end{align*}
Q15Stage 2

Find the tangent line to the curve y=(tan2x+1)(cos2x)y=\left(\tan^2 x +1\right)\left(\cos^2 x\right) at the point x=π4x=\dfrac{\pi}{4}.

Hint

What trig identity can you use to simplify the first factor in the equation?

Answer

y=1y=1

Full solution

It is possible to start in on this problem with the product rule and then the chain rule, but it's easier if we simplify first. Since tan2x+1=sec2x=1cos2x\tan^2x+1=\sec^2 x=\frac{1}{\cos^2x}, we see

f(x)=cos2xcos2x=1f(x)=\frac{\cos^2 x}{\cos^2 x}=1

for all values of xx for which cosx\cos x is nonzero. That is, f(x)=1f(x)=1 for every xx that is not an integer multiple of π/2\pi/2 (and f(x)f(x) is not defined when xx is an integer multiple of π/2\pi/2). Therefore, f(x)=0f'(x)=0 for every xx on which ff exists, and in particular f(π/4)=0f'(\pi/4)=0. Also, f(π/4)=1f(\pi/4)=1, so the tangent line to ff at x=π/4x=\pi/4 is the line with slope 0, passing through the point (π/4,1)(\pi/4,1):

y=1y=1
Q16Stage 2

The position of a particle at time tt is given by s(t)=et37t2+8ts(t)=e^{t^3-7t^2+8t}. For which values of tt is the velocity of the particle zero?

Hint

Velocity is the derivative of position with respect to time. In this case, the velocity of the particle is given by s(t)s'(t).

Answer

t=23t=\frac{2}{3} and t=4t=4

Full solution

Velocity is the derivative of position with respect to time. So, the velocity of the particle is given by s(t)s'(t). We need to find s(t)s'(t), and determine when it is zero.

To differentiate, we us the chain rule.

s(t)=et37t2+8tddt{t37t2+8t}=et37t2+8t(3t214t+8)\begin{align*}s'(t)&=e^{\textcolor{red}{t^3-7t^2+8t}}\cdot\diff{}{t}\{\textcolor{red}{t^3-7t^2+8t}\}\\ &=e^{{t^3-7t^2+8t}}\cdot(3t^2-14t+8)\end{align*}

To determine where this function is zero, we factor:

=et37t2+8t(3t2)(t4)\begin{align*}&=e^{{t^3-7t^2+8t}}\cdot(3t-2)(t-4)\end{align*}

So, the velocity is zero when et37t2+8t=0e^{{t^3-7t^2+8t}}=0, when 3t2=03t-2=0, and when t4=0t-4=0. Since et37t2+8te^{{t^3-7t^2+8t}} is never zero, this tells us that the velocity is zero precisely when t=23t=\frac{2}{3} or t=4t=4.

Q17Stage 2

What is the slope of the tangent line to the curve y=tan(ex2)y=\tan\left(e^{x^2}\right) at the point x=1x=1?

Hint

The slope of the tangent line is the derivative.
You'll need to use the chain rule twice.

Answer

2esec2(e)2e\sec^2(e)

Full solution

The slope of the tangent line is the derivative. If we let f(x)=tanxf(x)=\tan x and g(x)=ex2g(x)=e^{x^2}, then f(g(x))=tan(ex2)f(g(x))=\tan(e^{x^2}), so y=f(g(x))g(x)y'=f'(g(x)) \cdot g'(x):

y=sec2(ex2)ddx{ex2}\begin{align*}y'&=\sec^2(\textcolor{red}{e^{x^2}})\cdot\diff{}{x}\{\textcolor{red}{e^{x^2}}\}\end{align*}

We find ourselves once more in need of the chain rule:

=sec2(ex2)ex2ddx{x2}=sec2(ex2)ex22x\begin{align*}&=\sec^2({e^{x^2}})\cdot{e^{\textcolor{red}{x^2}}}\diff{}{x}\{\textcolor{red}{x^2}\}\\ &=\sec^2(e^{x^2})\cdot e^{x^2}\cdot 2x\end{align*}

Finally, we evaluate this derivative at the point x=1x=1:

y(1)=sec2(e)e2=2esec2e\begin{align*}y'(1)&=\sec^2(e)\cdot e \cdot 2\\ &=2e\sec^2e\end{align*}
Q18Stage 2Past exam · 1997A

Differentiate y=e4xtanxy=e^{4x}\tan x. You do not need to simplify your answer.

Hint

Start with the product rule, then use the chain rule to differentiate e4xe^{4x}.

Answer

y=4e4xtanx+e4xsec2xy'=4e^{4x}\tan x+e^{4x}\sec^2 x

Full solution

Using the Product rule,

y=ddx{e4x}tanx+e4xsec2x\begin{align*}y'&=\diff{}{x}\{e^{4x}\}\tan x+e^{4x}\sec^2 x\end{align*}

and the chain rule:

=e4xddx{4x}tanx+e4xsec2x=4e4xtanx+e4xsec2x\begin{align*}&=e^{\textcolor{red}{4x}}\cdot\diff{}{x}\{\textcolor{red}{4x}\}\cdot\tan x+e^{4x}\sec^2 x\\ &=4e^{4x}\tan x+e^{4x}\sec^2 x\end{align*}
Q19Stage 2Past exam · 1997D

Evaluate the derivative of the following function at x=1x=1: f(x)=x31+e3xf(x)=\dfrac{x^3}{1+e^{3x}}.

Hint

Start with the quotient rule; you'll need the chain rule only to differentiate e3xe^{3x}.

Answer

3(1+e3)2\dfrac{3}{{(1+e^{3})}^2}

Full solution

Using the quotient rule,

f(x)=(3x2)(1+e3x)(x3)ddx{1+e3x}(1+e3x)2\begin{align*}f'(x)&=\frac{(3x^2)(1+e^{3x})-(x^3)\cdot\diff{}{x}\{1+e^{3x}\}}{{(1+e^{3x})}^2}\end{align*}

Now, the chain rule:

=(3x2)(1+e3x)(x3)(3e3x)(1+e3x)2\begin{align*}&=\frac{(3x^2)(1+e^{3x})-(x^3)(3e^{3x})}{{(1+e^{3x})}^2}\end{align*}

So, when x=1x=1:

f(1)=3(1+e3)3e3(1+e3)2=3(1+e3)2\begin{align*}f'(1)&=\frac{3(1+e^{3})-3e^{3}}{{(1+e^{3})}^2}=\frac{3}{{(1+e^{3})}^2}\end{align*}
Q20Stage 2Past exam · 2015Q

Differentiate esin2(x)e^{\sin^2(x)}.

Hint

More than one chain rule needed here.

Answer

2sin(x)cos(x)esin2(x)2 \sin(x) \cdot \cos(x) \cdot e^{\sin^2(x)}

Full solution

This requires us to apply the chain rule twice.

ddx{esin2(x)}=esin2(x)ddx{sin2(x)}=esin2(x)(2sin(x))ddxsin(x)=esin2(x)(2sin(x))cos(x)\begin{align*} \diff{}{x} \left\{ e^{\sin^2(x)} \right\} &= e^{\sin^2(x)} \cdot \diff{}{x} \left\{ \sin^2(x)\right\}\\ &= e^{\sin^2(x)} (2\sin(x)) \cdot \diff{}{x} \sin(x) \\ &= e^{\sin^2(x)} (2\sin(x)) \cdot \cos(x) \end{align*}
Q21Stage 2Past exam · 2015Q

Compute the derivative of y=sin(e5x)y=\sin\left(e^{5x}\right)

Hint

More than one chain rule application is needed here.

Answer

cos(e5x)e5x5\cos\left(e^{5x}\right)\cdot e^{5x}\cdot 5

Full solution

This requires us to apply the chain rule twice.

ddx{sin(e5x)}=cos(e5x)ddx{e5x}=cos(e5x)(e5x)ddx{5x}=cos(e5x)(e5x)5\begin{align*} \diff{}{x} \left\{\sin(e^{5x}) \right\} &= {\cos\left(\textcolor{red}{e^{5x}}\right)} \cdot \diff{}{x} \left\{ \textcolor{red}{e^{5x}}\right\}\\ &= \cos(e^{5x}) (e^{\textcolor{orange}{5x}}) \cdot \diff{}{x}\{\textcolor{orange}{5x}\} \\ &= \cos(e^{5x}) (e^{5x}) \cdot5 \end{align*}
Q22Stage 2Past exam · 2007H

Find the derivative of ecos(x2)e^{\cos(x^2)}.

Hint

More than one chain rule application is needed here.

Answer

ecos(x2)sin(x2)2x-e^{\cos(x^2)}\cdot \sin(x^2) \cdot 2x

Full solution

We'll use the chain rule twice.

ddx{ecos(x2)}=ecos(x2)ddx{cos(x2)}=ecos(x2)(sin(x2))ddx{x2}=ecos(x2)sin(x2)2x\begin{align*} \diff{}{x}\left\{e^{\cos(x^2)}\right\}&= e^{\textcolor{red}{\cos(x^2)}}\cdot\diff{}{x}\{\textcolor{red}{\cos(x^2)}\}\\ &=e^{\cos(x^2)} \cdot(-\sin(\textcolor{orange}{x^2}))\cdot \diff{}{x}\{\textcolor{orange}{x^2}\}\\ &=-e^{\cos(x^2)}\cdot \sin(x^2) \cdot 2x \end{align*}
Q23Stage 2Past exam · 1997A

Compute the derivative of y=cos(x2+x2+1)y=\cos\big(x^2+\sqrt{x^2+1}\big)

Hint

More than one chain rule application is needed here.

Answer

y=sin(x2+x2+1)(2x+xx2+1)y'=-\sin\big(x^2+\sqrt{x^2+1}\big)\left(2x+\dfrac{x}{\sqrt{x^2+1}}\right)

Full solution

We start with the chain rule:

y=sin(x2+x2+1)ddx{x2+x2+1}=sin(x2+x2+1)(2x+ddx{x2+1})\begin{align*}y'&=-\sin\big(\textcolor{red}{x^2+\sqrt{x^2+1}}\big)\cdot\diff{}{x}\left\{\textcolor{red}{x^2+\sqrt{x^2+1}}\right\}\\ &=-\sin\big(x^2+\sqrt{x^2+1}\big)\cdot\left(2x+\diff{}{x}\left\{\sqrt{x^2+1}\right\}\right)\end{align*}

and find ourselves in need of chain rule a second time:

=sin(x2+x2+1)(2x+12x2+1ddx{x2+1})=sin(x2+x2+1)(2x+2x2x2+1)\begin{align*}&=-\sin\big(x^2+\sqrt{x^2+1}\big)\cdot\left(2x+\dfrac{1}{2\sqrt{\textcolor{red}{x^2+1}}}\cdot\diff{}{x}\left\{\textcolor{red}{x^2+1}\right\}\right)\\ &=-\sin\big(x^2+\sqrt{x^2+1}\big)\cdot\left(2x+\dfrac{2x}{2\sqrt{x^2+1}}\right)\end{align*}
Q24Stage 2Past exam · 1996D

Evaluate the derivative.

y=(1+x2)cos2xy=(1+x^2)\cos^2 x
Hint

What rule do you need, besides chain? Also, remember that cos2x=[cosx]2\cos^2x = [\cos x]^2.

Answer

y=2xcos2x2(1+x2)sinxcosxy'=2x\cos^2x-2(1+x^2) \sin x\cos x

Full solution
y=(1+x2)cos2x\begin{align*}y&=(1+x^2)\cos^2 x\end{align*}

Using the product rule,

y=(2x)cos2x+(1+x2)ddx{cos2x}\begin{align*}y'&=(2x)\cos^2 x + (1+x^2)\diff{}{x}\{\cos^2 x\}\end{align*}

Here, we'll need to use the chain rule. Remember cos2x=[cosx]2\cos^2 x = [\cos x]^2.

=2xcos2x+(1+x2)2cosxddx{cosx}=2xcos2x+(1+x2)2cosx(sinx)=2xcos2x2(1+x2)sinxcosx\begin{align*}&=2x\cos^2x+(1+x^2) 2\textcolor{red}{\cos x} \cdot \diff{}{x}\{\textcolor{red}{\cos x}\}\\ &=2x\cos^2x+(1+x^2) 2\cos x \cdot (-\sin x)\\ &=2x\cos^2x-2(1+x^2) \sin x\cos x\end{align*}
Q25Stage 2Past exam · 1996D

Evaluate the derivative.

y=e3x1+x2y=\frac{e^{3x}}{1+x^2}
Answer

y=e3x(3x22x+3)(1+x2)2y'=\dfrac{e^{3x}(3x^2-2x+3)}{(1+x^2)^2}

Full solution

We use the quotient rule, noting by the chain rule that ddx{e3x}=3e3x\diff{}{x}\{e^{3x}\}=3e^{3x}:

y=(1+x2)3e3xe3x(2x)(1+x2)2=e3x(3x22x+3)(1+x2)2\begin{align*} y'&=\frac{(1+x^2)\cdot3e^{3x}-e^{3x}(2x)}{(1+x^2)^2}\\ &=\frac{e^{3x}(3x^2-2x+3)}{(1+x^2)^2} \end{align*}
Q26Stage 2Past exam · 1999H

Find g(2)g'(2) if g(x)=x3h(x2)g(x)=x^3h(x^2), where h(4)=2h(4)=2 and h(4)=2h'(4)=-2.

Answer

40-40

Full solution

By the chain rule,

ddx{h(x2)}=h(x2)2x\begin{align*} \diff{}{x}\left\{h\left(x^2\right)\right\}&=h'(x^2)\cdot 2x \end{align*}

Using the product rules and the result above,

g(x)=3x2h(x2)+x3h(x2)2x\begin{align*}g'(x)&=3x^2h(x^2)+x^3h'(x^2)2x\end{align*}

Plugging in x=2x=2:

g(2)=3(22)h(22)+23h(22)2×2=12h(4)+32h(4)=12×232×2=40\begin{align*}g'(2)&=3(2^2)h(2^2)+2^3h'(2^2)2\times 2\cr &=12h(4)+32h'(4)=12\times 2-32\times 2\cr &=-40\end{align*}
Q27Stage 2Past exam · 1999H

At what points (x,y)(x,y) does the curve y=xe(x21)/2y=xe^{-(x^2-1)/2} have a horizontal tangent?

Hint

The product of two functions is zero exactly when at least one of the functions is zero.

Answer

(1,1)(1,1) and (1,1)(-1,-1).

Full solution

Let f(x)=xe(x21)/2=xe(1x2)/2f(x)=xe^{-(x^2-1)/2}=xe^{(1-x^2)/2}. Then, using the product rule,

f(x)=e(1x2)/2+xddx{e(1x2)/2}\begin{align*}f'(x)&=e^{(1-x^2)/2}+x\cdot\diff{}{x}\left\{e^{(1-x^2)/2}\right\}\end{align*}

Here, we need the chain rule:

=e(1x2)/2+xe(1x2)/2ddx{12(1x2)}=e(1x2)/2+xe(1x2)/2(x)=(1x2)e(1x2)/2\begin{align*}&=e^{(1-x^2)/2}+x\cdot e^{\textcolor{red}{(1-x^2)/2}}\diff{}{x}\left\{\textcolor{red}{\frac{1}{2}(1-x^2)}\right\}\\ &=e^{(1-x^2)/2}+x\cdot e^{{(1-x^2)/2}}\cdot (-x)\\ &=(1-x^2)e^{(1-x^2)/2}\end{align*}

There is no power of ee that is equal to zero; so if the product above is zero, it must be that 1x2=01-x^2=0. This happens for x=±1x=\pm 1. On the curve, when x=1x=1, y=1y=1, and when x=1x=-1, y=1y=-1. So the points are (1,1)(1,1) and (1,1)(-1,-1).

Q28Stage 2

A particle starts moving at time t=1t=1, and its position thereafter is given by

s(t)=sin(1t).s(t)=\sin\left(\frac{1}{t}\right).

When is the particle moving in the negative direction?

Hint

If t1t \ge 1, then 0<1t10<\frac{1}{t} \leq 1.

Answer

Always

Full solution

The question asks when s(t)s'(t) is negative. So, we start by differentiating. Using the chain rule:

s(t)=cos(1t)ddt{1t}=cos(1t)1t2\begin{align*} s'(t)&=\cos\left(\textcolor{red}{\frac{1}{t}}\right)\cdot\diff{}{t}\left\{\textcolor{red}{\frac{1}{t}}\right\}\\ &=\cos\left({\frac{1}{t}}\right)\cdot\frac{-1}{t^2} \end{align*}

When t1t\ge1, 1t\frac{1}{t} is between 0 and 1. Since cosθ\cos \theta is positive for 0θ<π/20 \leq \theta < \pi/2, and π/2>1\pi/2 >1, we see that cos(1t)\cos\left(\frac{1}{t}\right) is positive for the entire domain of s(t)s(t). Also, 1t2\frac{-1}{t^2} is negative for the entire domain of the function. We conclude that s(t)s'(t) is negative for the entire domain of s(t)s(t), so the particle is always moving in the negative direction.

Q29Stage 2

Compute the derivative of f(x)=excos3(5x7)f(x)=\dfrac{e^{x}}{\cos^3 (5x-7)}.

Hint

The notation cos3(5x7)\cos^3(5x-7) means [cos(5x7)]3\left[\cos(5x-7)\right]^3. So, if g(x)=x3g(x)=x^3 and h(x)=cos(5x7)h(x)=\cos(5x-7), then g(h(x))=[cos(5x+7)]3=cos3(5x+7)g(h(x))=\left[\cos(5x+7)\right]^3=\cos^3(5x+7).

Answer

exsec3(5x7)(1+15tan(5x7))e^x\sec^3(5x-7)(1+15\tan(5x-7))

Full solution

We present two solutions: one where we dive right in and use the quotient rule, and another where we simplify first and use the product rule.

  • Solution 1: We begin with the quotient rule:

    f(x)=cos3(5x7)ddx{ex}exddx{cos3(5x7)}cos6(5x7)=cos3(5x7)exexddx{cos3(5x7)}cos6(5x7)\begin{align*}f'(x) &= \frac{\cos^3(5x-7)\diff{}{x}\{e^x\}-e^x\diff{}{x}\{\cos^3(5x-7)\}}{\cos^6(5x-7)}\\ &= \frac{\cos^3(5x-7)e^x-e^x\diff{}{x}\{\cos^3(5x-7)\}}{\cos^6(5x-7)}\end{align*}

    Now, we use the chain rule. Since cos3(5x7)=[cos(5x7)]3\cos^3(5x-7)=[\cos(5x-7)]^3, our “outside" function is g(x)=x3g(x)=x^3, and our “inside" function is h(x)=cos(5x1)h(x)=\cos(5x-1).

    =cos3(5x7)exex3cos2(5x7)ddx{cos(5x7)}cos6(5x7)\begin{align*}&= \frac{\cos^3(5x-7)e^x-e^x\cdot3\textcolor{red}{\cos}^2\textcolor{red}{(5x-7)} \cdot \diff{}{x}\{\textcolor{red}{\cos(5x-7)}\}}{\cos^6(5x-7)}\end{align*}

    We need the chain rule again!

    =cos3(5x7)exex3cos2(5x7)[sin(5x7)ddx{5x7}]cos6(5x7)=cos3(5x7)exex3cos2(5x7)[sin(5x7)5]cos6(5x7)\begin{align*}&= \frac{\cos^3(5x-7)e^x-e^x\cdot3{\cos}^2{(5x-7)} \cdot[{-\sin(\textcolor{red}{5x-7})\cdot \diff{}{x}\{\textcolor{red}{5x-7}\}}]}{\cos^6(5x-7)}\\ &= \frac{\cos^3(5x-7)e^x-e^x\cdot3{\cos}^2{(5x-7)} \cdot[{-\sin({5x-7})\cdot5}]}{\cos^6(5x-7)}\end{align*}

    We finish by simplifying:

    =excos2(5x7)(cos(5x7)+15sin(5x7))cos6(5x7)=excos(5x7)+15sin(5x7)cos4(5x7)=ex(sec3(5x7)+15tan(5x7)sec3(5x7))=exsec3(5x7)(1+15tan(5x7))\begin{align*}&= \frac{e^x\cos^2(5x-7)\left(\cos(5x-7)+15\sin(5x-7)\right)}{\cos^6(5x-7)}\\ &=e^x \frac{\cos(5x-7)+15\sin(5x-7)}{\cos^4(5x-7)}\\ &=e^x(\sec^3(5x-7)+15\tan(5x-7)\sec^3(5x-7))\\ &=e^x\sec^3(5x-7)(1+15\tan(5x-7))\end{align*}
  • Solution 2: We simplify to avoid the quotient rule:

    f(x)=excos3(5x7)=exsec3(5x7)\begin{align*}f(x)&=\dfrac{e^{x}}{\cos^3 (5x-7)}\\ &=e^x\sec^3(5x-7)\end{align*}

    Now we use the product rule to differentiate:

    f(x)=exsec3(5x7)+exddx{sec3(5x7)}\begin{align*}f'(x)&=e^x\sec^3(5x-7)+e^x\diff{}{x}\{\sec^3(5x-7)\}\end{align*}

    Here, we'll need the chain rule. Since sec3(5x7)=[sec(5x7)]3\sec^3(5x-7)=[\sec (5x-7)]^3, our “outside" function is g(x)=x3g(x)=x^3 and our “inside" function is h(x)=sec(5x7)h(x)=\sec(5x-7), so that g(h(x))=[sec(5x7)]3=sec3(5x7)g(h(x))=[\sec(5x-7)]^3=\sec^3(5x-7).

    =exsec3(5x7)+ex3 sec2(5x7)ddx{sec(5x7)}\begin{align*}&=e^x\sec^3(5x-7)+e^x\cdot3~\textcolor{red}{\sec}^2\textcolor{red}{(5x-7)} \cdot \diff{}{x}\{\textcolor{red}{\sec(5x-7)}\}\end{align*}

    We need the chain rule again! Recall ddx{secx}=secxtanx\diff{}{x}\{\sec x\}=\sec x \tan x.

    =exsec3(5x7)+ex3 sec2(5x7)sec(5x7)tan(5x7)ddx{5x7}=exsec3(5x7)+ex3 sec2(5x7)sec(5x7)tan(5x7)5\begin{align*}&=e^x\sec^3(5x-7)+e^x\cdot3~{\sec}^2{(5x-7)} \cdot {\sec(\textcolor{orange}{5x-7})\tan(\textcolor{orange}{5x-7})\cdot\diff{}{x}\{\textcolor{orange}{5x-7}\}}\\ &=e^x\sec^3(5x-7)+e^x\cdot3~{\sec}^2{(5x-7)} \cdot {\sec({5x-7})\tan({5x-7})\cdot 5}\end{align*}

    We finish by simplifying:

    =exsec3(5x7)(1+15tan(5x7))\begin{align*}&=e^x\sec^3(5x-7)(1+15\tan({5x-7}))\end{align*}
Q30Stage 2Past exam · 2011H

Evaluate ddx{xe2xcos4x}\ds\diff{}{x}\left\{x e^{2x} \cos 4x\right\}.

Hint

In Example 4.1.11, we generalized the product rule to three factors:

ddx{f(x)g(x)h(x)}=f(x)g(x)h(x)+f(x)g(x)h(x)+f(x)g(x)h(x)\diff{}{x}\{f(x)g(x)h(x)\}=f'(x)g(x)h(x)+f(x)g'(x)h(x)+f(x)g(x)h'(x)

This isn't strictly necessary, but it will simplify your computations.

Answer

e2xcos4x+2xe2xcos4x4xe2xsin4xe^{2x} \cos 4x + 2x e^{2x} \cos 4x -4 x e^{2x} \sin 4x

Full solution
  • Solution 1: In Example 4.1.11, we generalized the product rule to three factors:

    ddx{f(x)g(x)h(x)}=f(x)g(x)h(x)+f(x)g(x)h(x)+f(x)g(x)h(x)\diff{}{x}\{f(x)g(x)h(x)\}=f'(x)g(x)h(x)+f(x)g'(x)h(x)+f(x)g(x)h'(x)

    Using this rule:

    ddx{(x)(e2x)(cos4x)}=ddx{x}e2xcos4x+xddx{e2x}cos4x+xe2xddx{cos4x}=e2xcos4x+x(2e2x)cos4x+xe2x(4sin4x)=e2xcos4x+2xe2xcos4x4xe2xsin4x\begin{align*} \diff{}{x}\left\{(x) \left(e^{2x}\right)( \cos 4x)\right\}&=\diff{}{x}\{x\}\cdot e^{2x} \cos 4x + x\cdot\diff{}{x}\left\{e^{2x}\right\}\cdot\cos 4x + xe^{2x}\cdot\diff{}{x}\{\cos 4x\}\\ &=e^{2x}\cos4x+x\left(2e^{2x}\right)\cos4x+ xe^{2x}(-4\sin 4x)\\ &=e^{2x}\cos4x+2xe^{2x}\cos4x-4xe^{2x}\sin 4x \end{align*}
  • Solution 2: We can use the product rule twice. In the first step, we split the function xe2xcos4xx e^{2x} \cos 4x into the product of two functions.

    ddx{(xe2x)(cos4x)}=ddx{xe2x}cos4x+xe2xddx{cos4x}=(ddx{x}e2x+xddx{e2x})cos4x+xe2xddx{cos4x}=(e2x+x(2e2x))cos4x+xe2x(4sin4x)=e2xcos4x+2xe2xcos4x4xe2xsin4x\begin{align*} \diff{}{x}\left\{\left(x e^{2x}\right) (\cos 4x)\right\}&= \diff{}{x}\left\{xe^{2x}\right\}\cdot\cos4x + xe^{2x}\cdot\diff{}{x}\left\{ \cos 4x\right\}\\ &= \left( \diff{}{x}\left\{x\right\}\cdot e^{2x}+ x\cdot\diff{}{x}\left\{e^{2x}\right\} \right)\cdot\cos4x + xe^{2x}\cdot\diff{}{x}\left\{ \cos 4x\right\}\\ &= \left( e^{2x}+ x\left(2e^{2x}\right) \right)\cdot\cos4x + xe^{2x}(-4\sin 4x)\\ &=e^{2x}\cos4x+2xe^{2x}\cos4x-4xe^{2x}\sin4x \end{align*}

Stage 3 · Application

Q31Stage 3

A particle moves along the Cartesian plane from time t=π/2t=-\pi/2 to time t=π/2t=\pi/2. The xx-coordinate of the particle at time tt is given by x=costx=\cos t, and the yy-coordinate is given by y=sinty=\sin t, so the particle traces a curve in the plane. When does the tangent line to that curve have slope 1-1?

Hint

At time tt, the particle is at the point (x(t),y(t))\big(x(t),y(t)\big), with x(t)=costx(t)=\cos t and y(t)=sinty(t)=\sin t. Over time, the particle traces out a curve; let's call that curve y=f(x)y=f(x). Then y(t)=f(x(t))y(t) = f\big(x(t)\big), so the slope of the curve at the point (x(t),y(t))\big(x(t),y(t)\big) is f(x(t))f'\big(x(t)\big). You are to determine the values of tt for which f(x(t))=1f'\big(x(t)\big)=-1.

Answer

t=π4t=\dfrac{\pi}{4}

Full solution

At time tt, the particle is at the point (x(t),y(t))\big(x(t),y(t)\big), with x(t)=costx(t)=\cos t and y(t)=sinty(t)=\sin t. Over time, the particle traces out a curve; let's call that curve y=f(x)y=f(x). Then y(t)=f(x(t))y(t) = f\big(x(t)\big), so the slope of the curve at the point (x(t),y(t))\big(x(t),y(t)\big) is f(x(t))f'\big(x(t)\big). You are to determine the values of tt for which f(x(t))=1f'\big(x(t)\big)=-1.

By the chain rule

y(t)=f(x(t))x(t)\begin{align*} y'(t) = f'\big(x(t)\big) \cdot x'(t) \end{align*}

Substituting in x(t)=costx(t)=\cos t and y(t)=sinty(t)=\sin t gives

cost=f(x(t))(sint)\begin{align*} \cos t = f'\big(x(t)\big) \cdot \big(-\sin t\big) \end{align*}

so that

f(x(t))=costsint\begin{align*} f'\big(x(t)\big) = -\frac{\cos t}{\sin t} \end{align*}

is 1-1 precisely when sint=cost\sin t = \cos t. This happens whenever t=π4t = \frac{\pi}{4}.

Remark: the path traced by the particle is a semicircle. You can think about the point on the unit circle with angle t, or you can notice that x2+y2=sin2t+cos2t=1x^2 + y^2 = \sin^2t + \cos^2t = 1.

Q32Stage 3Past exam · test

Show that, for all x>0x>0, ex+x2>1+xe^{x+x^2}>1+x.

Hint

Set f(x)=ex+x2f(x) = e^{x+x^2} and g(x)=1+xg(x)=1+x. Compare f(0)f(0) and g(0)g(0), and compare f(x)f'(x) and g(x)g'(x).

Answer

Let f(x)=ex+x2f(x)=e^{x+x^2} and g(x)=1+xg(x)=1+x. Then f(0)=g(0)=1f(0)=g(0)=1.

f(x)=(1+2x)ex+x2f'(x)=(1+2x)e^{x+x^2} and g(x)=1g'(x)=1. When x>0x>0,

f(x)=(1+2x)ex+x2>1ex+x2=ex+x2>e0+02=1=g(x).f'(x)=(1+2x)e^{x+x^2}>1\cdot e^{x+x^2}=e^{x+x^2}>e^{0+0^2}=1=g'(x).

Since f(0)=g(0)f(0)=g(0), and f(x)>g(x)f'(x)>g'(x) for all x>0x>0, that means ff and gg start at the same place, but ff always grows faster. Therefore, f(x)>g(x)f(x)>g(x) for all x>0x>0.

Full solution

Let f(x)=ex+x2f(x)=e^{x+x^2} and g(x)=1+xg(x)=1+x. Then f(0)=g(0)=1f(0)=g(0)=1.

f(x)=(1+2x)ex+x2f'(x)=(1+2x)e^{x+x^2} and g(x)=1g'(x)=1. When x>0x>0,

f(x)=(1+2x)ex+x2>1ex+x2=ex+x2>e0+02=1=g(x).f'(x)=(1+2x)e^{x+x^2}>1\cdot e^{x+x^2}=e^{x+x^2}>e^{0+0^2}=1=g'(x).

Since f(0)=g(0)f(0)=g(0), and f(x)>g(x)f'(x)>g'(x) for all x>0x>0, that means ff and gg start at the same place, but ff always grows faster. Therefore, f(x)>g(x)f(x)>g(x) for all x>0x>0.

Q33Stage 3

We know that sin(2x)=2sinxcosx\sin (2x) = 2\sin x \cos x. What other trig identity can you derive from this, using differentiation?

Hint

If sin2x\sin 2x and 2sinxcosx2\sin x \cos x are the same, then they also have the same derivatives.

Answer

cos(2x)=cos2xsin2x\cos(2x)=\cos^2x-\sin^2x

Full solution

Since sin2x\sin 2x and 2sinxcosx2\sin x \cos x are the same function, they have the same derivative.

sin2x=2sinxcosxddx{sin2x}=ddx{2sinxcosx}2cos2x=2[cos2xsin2x]cos2x=cos2xsin2x\begin{align*} \sin 2x &= 2\sin x \cos x\\ \Rightarrow \diff{}{x}\{\sin 2x\}&=\diff{}{x}\{2\sin x \cos x\}\\ 2\cos 2x &=2[\cos^2x-\sin^2x]\\ \cos 2x &=\cos^2x-\sin^2 x \end{align*}

We conclude cos2x=cos2xsin2x\cos 2x =\cos^2x-\sin^2 x, which is another common trig identity.

Remark: if we differentiate both sides of this equation, we get the original identity back.

Q34Stage 3

Evaluate the derivative of f(x)=ecscx2x39tanx3f(x)=\sqrt[3]{\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}. You do not have to simplify your answer.

Hint

This is a long, nasty problem, but it doesn't use anything you haven't seen before. Be methodical, and break the question into as many parts as you have to. At the end, be proud of yourself for your problem-solving abilities and tenaciousness!

Answer
f(x)=13(x39tanxecscx2)23 (x39tanx(2x)ecscx2csc(x2)cot(x2)ecscx2(3x2tanx2x39+x39sec2x)(tan2x)(x39))\begin{align*} f'(x)&= \frac{1}{3}\left( \dfrac{ \sqrt{x^3-9} \tan x }{e^{\csc x^2}} \right)^{\frac{2}{3}}\cdot\\ &~\left(\frac{ \sqrt{x^3-9}\tan x {(-2x)e^{\csc x^2}\csc(x^2)\cot(x^2)}-e^{\csc x^2}{\left(\frac{3x^2\tan x}{2\sqrt{{x^3-9}}}+\sqrt{x^3-9}\sec^2 x\right)}}{(\tan^2 x)(x^3-9) }\right) \end{align*}
Full solution
f(x)=ecscx2x39tanx3=(ecscx2x39tanx)13\begin{align*}f(x)&=\sqrt[3]{\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}\\ &=\left({\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}\right)^{\frac{1}{3}}\end{align*}

To begin the differentiation, we can choose our “outside" function to be g(x)=x13g(x)=x^{\frac{1}{3}}, and our “inside" function to be h(x)=ecscx2x39tanxh(x)=\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }. Then f(x)=g(h(x))f(x)=g(h(x)), so f(x)=g(h(x))h(x)=13(h(x))23h(x)f'(x)=g'(h(x))\cdot h'(x)=\frac{1}{3}(h(x))^{-\frac{2}{3}}h'(x):

f(x)=13(ecscx2x39tanx)23ddx{ecscx2x39tanx}=13(x39tanxecscx2)23ddx{ecscx2x39tanx}\begin{align*}f'(x)&=\frac{1}{3}\left(\textcolor{red}{\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}\right)^{\frac{-2}{3}}\cdot\diff{}{x}\left\{\textcolor{red}{\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}\right\}\\ &=\frac{1}{3} \left( \dfrac{ \sqrt{x^3-9} \tan x }{e^{\csc x^2}} \right)^{\frac{2}{3}} \cdot \diff{}{x}\left\{\textcolor{red}{\dfrac{e^{\csc x^2}}{ \sqrt{x^3-9} \tan x }}\right\}\end{align*}

This leads us to use the quotient rule:

=13(x39tanxecscx2)23(x39tanxddx{ecscx2}ecscx2ddx{x39tanx}(tan2x)(x39))\begin{align*}&=\frac{1}{3}\left( \dfrac{ \sqrt{x^3-9} \tan x }{e^{\csc x^2}} \right)^{\frac{2}{3}} \left(\frac{ \sqrt{x^3-9}\tan x \diff{}{x}\left\{e^{\csc x^2}\right\}-e^{\csc x^2}\diff{}{x}\left\{\sqrt{x^3-9}\tan x \right\}}{(\tan^2 x)(x^3-9) }\right)\end{align*}

Let's figure out those two derivatives on their own, then plug them in. Using the chain rule twice:

ddx{ecscx2}=ecscx2ddx{cscx2}=ecscx2(csc(x2)cot(x2))ddx{x2}=2xecscx2csc(x2)cot(x2)\begin{align*}\diff{}{x}\left\{e^{\csc x^2}\right\}&=e^{\textcolor{red}{\csc x^2}}\diff{}{x}\left\{\textcolor{red}{\csc x^2}\right\}=e^{\csc x^2}\cdot (-\csc(\textcolor{orange}{x^2})\cot(\textcolor{orange}{x^2}))\cdot\diff{}{x}\{\textcolor{orange}{x^2}\}\\&=-2xe^{\csc x^2}\csc(x^2)\cot(x^2)\end{align*}

For the other derivative, we start with the product rule, then chain:

ddx{x39tanx}=ddx{x39}tanx+x39sec2x=12x39ddx{x39}tanx+x39sec2x=3x2tanx2x39+x39sec2x\begin{align*}\diff{}{x}\left\{ \sqrt{x^3-9} \tan x \right\}&= \diff{}{x}\left\{\sqrt{x^3-9}\right\}\cdot\tan x+\sqrt{x^3-9}\sec^2 x\\ &=\frac{1}{2\sqrt{\textcolor{red}{x^3-9}}}\diff{}{x}\left\{\textcolor{red}{x^3-9}\right\}\cdot \tan x+\sqrt{x^3-9}\sec^2 x\\ &=\frac{3x^2 \tan x}{2\sqrt{{x^3-9}}}+\sqrt{x^3-9}\sec^2 x\end{align*}

Now, we plug these into our equation for f(x)f'(x):

f(x)=13(x39tanxecscx2)23(x39tanxddx{ecscx2}ecscx2ddx{x39tanx}(tan2x)(x39))=13(x39tanxecscx2)23 (x39tanx(2x)ecscx2csc(x2)cot(x2)ecscx2(3x2tanx2x39+x39sec2x)(tan2x)(x39))\begin{align*}f'(x)&=\frac{1}{3}\left( \dfrac{ \sqrt{x^3-9} \tan x }{e^{\csc x^2}} \right)^{\frac{2}{3}} \left(\frac{ \sqrt{x^3-9}\tan x \textcolor{blue}{\diff{}{x}\left\{e^{\csc x^2}\right\}}-e^{\csc x^2}\textcolor{blue}{\diff{}{x}\left\{\sqrt{x^3-9}\tan x \right\}}}{(\tan^2 x)(x^3-9) }\right)\\ &=\frac{1}{3}\left( \dfrac{ \sqrt{x^3-9} \tan x }{e^{\csc x^2}} \right)^{\frac{2}{3}}\cdot\\ &~\left(\frac{ \sqrt{x^3-9}\tan x \textcolor{blue}{(-2x)e^{\csc x^2}\csc(x^2)\cot(x^2)}-e^{\csc x^2}\textcolor{blue}{\left(\frac{3x^2\tan x}{2\sqrt{{x^3-9}}}+\sqrt{x^3-9}\sec^2 x\right)}}{(\tan^2 x)(x^3-9) }\right)\end{align*}
Q35Stage 3

Suppose a particle is moving in the Cartesian plane over time. For any real number t0t \geq 0, the coordinate of the particle at time tt is given by (sint,cos2t)(\sin t, \cos^2 t).

  1. Sketch a graph of the curve traced by the particle in the plane by plotting points, and describe how the particle moves along it over time.

  2. What is the slope of the curve traced by the particle at time t=10π3t=\dfrac{10\pi}{3}?

Hint

To sketch the curve, you can start by plotting points. Alternately, consider x2+yx^2+y.

Answer

(a)

Figure from prob_s2.9, line 1

Figure from prob_s2.9, line 1

The particle traces the curve y=1x2y=1-x^2 restricted to domain [1,1][-1,1]. At t=0t=0, the particle is at the top of the curve, (1,0)(1,0). Then it moves to the right, and goes back and forth along the curve, repeating its path every 2π2\pi units of time.
(b) 3\sqrt{3}

Full solution

(a) The table below gives us a number of points on our graph, and the times they occur.

tt(sint,cos2t)(\sin t,\cos^2 t)
00(0,1)(0,1)
π/4\pi/4(12,12)(\frac{1}{\sqrt{2}},\frac{1}{2})
π/2\pi/2(1,0)(1,0)
3π/43\pi/4(12,12)(\frac{1}{\sqrt{2}},\frac{1}{2})
π\pi(0,1)(0,1)
5π/45\pi/4(12,12)(-\frac{1}{\sqrt{2}},\frac{1}{2})
3π/23\pi/2(1,0)(-1,0)
7π/47\pi/4(12,12)(-\frac{1}{\sqrt{2}},\frac{1}{2})
2π2\pi(0,1)(0,1)

These points will repeat with a period of 2π2\pi. With this information, we have a pretty good idea of the particle's motion:

Figure from prob_s2.9, line 21

Figure from prob_s2.9, line 21

The particle traces out an arc, pointing down. It starts at t=0t=0 at the top part of the graph at (1,0)(1,0), then is moves to the right until it hits (1,0)(1,0) at time t=π/2t=\pi/2. From there it reverses direction and moves along the curve to the left, hitting the top at time t=πt=\pi and reaching (1,0)(-1,0) at time t=3π/2t=3\pi/2. Then it returns to the top at t=2πt=2\pi and starts again.

So, it starts at the top of the curve, then moves back for forth along the length of the curve. If goes right first, and repeats its cycle every 2π2\pi units of time. (b) Let y=f(x)y=f(x) be the curve the particle traces in the xyxy-plane. Since xx is a function of tt, y(t)=f(x(t))y(t)=f(x(t)). What we want to find is dfdx\ds\diff{f}{x} when t=(10π3)t=\left(\dfrac{10\pi}{3}\right). Since dfdx\ds\diff{f}{x} is a function of xx, we note that when t=(10π3)t=\left(\dfrac{10\pi}{3}\right), x=sin(10π3)=sin(4π3)=32x=\sin\left(\dfrac{10\pi}{3}\right)=\sin\left(\dfrac{4\pi}{3}\right)=-\dfrac{\sqrt{3}}{2}. So, the quantity we want to find (the slope of the tangent line to the curve y=f(x)y=f(x) traced by the particle at the time t=(10π3)t=\left(\dfrac{10\pi}{3}\right) is given by dfdx(32)\ds\diff{f}{x}\left(-\dfrac{\sqrt{3}}{2}\right).

Using the chain rule:

y(t)=f(x(t))dydt=ddt{f(x(t))}=dfdxdxdtso, dfdx=dydt÷dxdt\begin{align*}y(t)&=f(x(t))\\ \diff{y}{t}=\diff{}{t}\left\{f(x(t))\right\}&=\diff{f}{x}\cdot\diff{x}{t}\\ \text{so, }\qquad\diff{f}{x}&=\diff{y}{t}\div \diff{x}{t}\end{align*}

Using y(t)=cos2ty(t)=\cos^2 t and x(t)=sintx(t)=\sin t:

dfdx=(2costsint)÷(cost)=2sint=2x\begin{align*}\diff{f}{x}&=\left(-2\cos t \sin t \right)\div\left( \cos t \right)=-2\sin t=-2x\end{align*}

So, when t=10π3t=\dfrac{10\pi}{3} and x=32,x=-\dfrac{\sqrt{3}}{2},

dfdx(32)=232=3.\begin{align*}\diff{f}{x}\left(\dfrac{-\sqrt{3}}{2}\right)&=-2\cdot\frac{-\sqrt{3}}{2}=\sqrt{3}.\end{align*}

Remark: The standard way to write this problem is to omit the notation f(x)f(x), and let the variable yy stand for two functions. When tt is the variable, y(t)=cos2ty(t)=\cos^2t gives the yy-coordinate of the particle at time tt. When xx is the variable, y(x)y(x) gives the yy-coordinate of the particle given its position along the xx-axis. This is an abuse of notation, because if we write y(1)y(1), it is not clear whether we are referring to the yy-coordinate of the particle when t=1t=1 (in this case, y=cos2(1)0.3y=\cos^2 (1) \approx 0.3), or the yy-coordinate of the particle when x=1x=1 (in this case, looking at our table of values, y=0y=0). Although this notation is not strictly “correct," it is very commonly used. So, you might see a solution that looks like this:

The slope of the curve is dydx\ds\diff{y}{x}. To find dydx\ds\diff{y}{x}, we use the chain rule:

dydt=dydxdxdtddt{cos2t}=dydxddt{sint}2costsint=dydxcostdydx=2sint\begin{align*}\diff{y}{t}&=\diff{y}{x}\cdot\diff{x}{t}\\ \diff{}{t}\left\{\cos^2 t\right\}&=\diff{y}{x}\cdot\diff{}{t}\{\sin t\}\\ -2\cos t \sin t &= \diff{y}{x} \cdot \cos t\\ \diff{y}{x}&=-2\sin t\end{align*}

So, when t=10π3t=\dfrac{10\pi}{3},

dydx=2sin(10π3)=2(32)=3.\begin{align*}\diff{y}{x}&=-2\sin\left(\frac{10\pi}{3}\right)=-2\left(-\frac{\sqrt{3}}{2}\right)=\sqrt{3}.\end{align*}

In this case, it is up to the reader to understand when yy is used as a function of tt, and when it is used as a function of xx. This notation (using yy to be two functions, y(t)y(t) and y(x)y(x)) is actually the accepted standard, so you should be able to understand it.

Q36Stage 3Past exam · 1999H
f(x)=ex+x2h(x)=1+x+32x2f(x)=e^{x+x^2}\qquad \qquad \qquad h(x)=1+x+\frac{3}{2}x^2
  1. Find the first and second derivatives of both functions

  2. Evaluate both functions and their first and second derivatives at 0.

  3. Show that for all x>0x>0, f(x)>h(x)f(x)>h(x).

Remark: for some applications, we only need to know that a function is “big enough." Since f(x)f(x) is a difficult function to evaluate, it may be useful in some circumstances to know that it is bigger than h(x)h(x) when xx is positive.

Hint

Use a similar method to Question 32, Section 4.3.

Answer

(a) f(x)=(1+2x)ex+x2f'(x)=(1+2x)e^{x+x^2} f(x)=(4x2+4x+3)ex+x2f''(x)=(4x^2+4x+3)e^{x+x^2} h(x)=1+3xh'(x)=1+3x h(x)=3h''(x)=3
(b) f(0)=h(0)=1f(0)=h(0)=1; f(0)=h(0)=1f'(0)=h'(0)=1; f(0)=h(0)=3f''(0)=h''(0)=3
(c) ff and hh “start at the same place," since f(0)=h(0)f(0)=h(0). Also f(0)=h(0)f'(0)=h'(0), and f(x)=(4x2+4x+3)ex+x2>3ex+x2>3=h(x)f''(x)=(4x^2+4x+3)e^{x+x^2} > 3e^{x+x^2}>3=h''(x) when x>0x>0. Since f(0)=h(0)f'(0)=h'(0), and since ff' grows faster than hh' for positive xx, we conclude f(x)>h(x)f'(x)>h'(x) for all positive xx. Now we can conclude that (since f(0)=h(0)f(0)=h(0) and ff grows faster than hh when x>0x>0) also f(x)>h(x)f(x)>h(x) for all positive xx.

Full solution

(a) Using the chain rule for f(x)f(x):

f(x)=(1+2x)ex+x2f(x)=(1+2x)(1+2x)ex+x2+(2)ex+x2=(4x2+4x+3)ex+x2h(x)=1+3xh(x)=3\begin{align*} f'(x)&=(1+2x)e^{x+x^2}\\ f''(x)&=(1+2x)(1+2x)e^{x+x^2}+(2)e^{x+x^2}=(4x^2+4x+3)e^{x+x^2}\\ h'(x)&=1+3x\\ h''(x)&=3 \end{align*}

(b) f(0)=h(0)=1f(0)=h(0)=1; f(0)=h(0)=1f'(0)=h'(0)=1; f(0)=h(0)=3f''(0)=h''(0)=3
(c) ff and hh “start at the same place," since f(0)=h(0)f(0)=h(0). If it were clear that f(x)f'(x) were greater than h(x)h'(x) for x>0x>0, then we would know that ff grows faster than hh, so we could conclude that f(x)>h(x)f(x)>h(x), as desired. Unfortunately, it is not obvious whether (1+2x)ex+x2(1+2x)e^{x+x^2} is always greater than 1+3x1+3x for positive xx. So, we look to the second derivative. f(0)=h(0)f'(0)=h'(0), and f(x)=(4x2+4x+3)ex+x2>3ex+x2>3=h(x)f''(x)=(4x^2+4x+3)e^{x+x^2} > 3e^{x+x^2}>3=h''(x) when x>0x>0. Since f(0)=h(0)f'(0)=h'(0), and since ff' grows faster than hh' for positive xx, we conclude f(x)>h(x)f'(x)>h'(x) for all positive xx. Now we can conclude that (since f(0)=h(0)f(0)=h(0) and ff grows faster than hh when x>0x>0) also f(x)>h(x)f(x)>h(x) for all positive xx.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.