Navigation

Computing derivatives

4.4 Logarithmic differentiation

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

Reminder: in these notes, we use logx\log x to mean logex\log_e x, which is also commonly written elsewhere as lnx\ln x.

Stage 1 · Conceptual

Q1Stage 1

The volume in decibels (dB) of a sound is given by the formula:

V(P)=10log10(PS)V(P)=10\log_{10}\left(\frac{P}{S}\right)

where PP is the intensity of the sound and SS is the intensity of a standard baseline sound. (That is: SS is some constant.)

How much noise will ten speakers make, if each speaker produces 3dB of noise? What about one hundred speakers?

Hint

Each speaker produces 3dB of noise, so if PP is the power of one speaker, 3=V(P)=10log10(PS)3=V(P)=10\log_{10}\left(\frac{P}{S}\right). Use this to find V(10P)V(10P) and V(100P)V(100P).

Answer

Ten speakers: 13 dB. One hundred speakers: 23 dB.

Full solution

We are given that one speaker produces 3dB. So if PP is the power of one speaker,

3=V(P)=10log10(PS).\begin{align*}3=V(P)&=10\log_{10}\left(\frac{P}{S}\right).\end{align*}

So, for ten speakers:

V(10P)=10log10(10PS)=10log10(PS)+10log10(10)=3+10(1)=13dB\begin{align*}V(10P)&=10\log_{10}\left(\frac{10P}{S}\right)=10\log_{10}\left(\frac{P}{S}\right)+10\log_{10}\left(10\right)\\ &=3+10(1)=13 \mathrm{dB}\end{align*}

and for one hundred speakers:

V(100P)=10log10(100PS)=10log10(PS)+10log10(100)=3+10(2)=23dB\begin{align*}V(100P)&=10\log_{10}\left(\frac{100P}{S}\right)=10\log_{10}\left(\frac{P}{S}\right)+10\log_{10}\left(100\right)\\ &=3+10(2)=23 \mathrm{dB}\end{align*}
Q2Stage 1

An investment of $1000 with an interest rate of 5% per year grows to

A(t)=1000et/20A(t)=1000e^{t/20}

dollars after tt years. When will the investment double?

Hint

The question asks you when A(t)=2000A(t)=2000. So, solve 2000=1000et/202000=1000e^{t/20} for tt.

Answer

20log21420\log2 \approx 14 years

Full solution

The investment doubles when it hits $2000. So, we find the value of tt that gives A(t)=2000A(t)=2000:

2000=A(t)2000=1000et/202=et/20log2=t2020log2=t\begin{align*} 2000&=A(t)\\ 2000&=1000e^{t/20}\\ 2&=e^{t/20}\\ \log 2 &=\frac{t}{20}\\ 20\log2&=t \end{align*}
Q3Stage 1

Which of the following expressions, if any, is equivalent to log(cos2x)\log\left(\cos^2 x\right)?

(a) 2log(cosx)(b) 2logcosx(c) log2(cosx)(d) log(cosx2))(\text{a})~ 2\log(\cos x) \qquad (\text{b})~ 2\log|\cos x | \qquad (\text{c})~ \log^2(\cos x) \qquad (\text{d})~\log(\cos x^2))
Hint

What happens when cosx\cos x is a negative number?

Answer

(b)

Full solution

From our logarithm rules, we know that when yy is positive, log(y2)=2logy\log (y^2)=2\log y. However, the expression cosx\cos x does not always take on positive values, so (a) is not correct. (For instance, when x=πx=\pi, log(cos2x)=log(cos2π)=log((1)2)=log(1)=0\log(\cos^2 x)=\log(\cos^2\pi)=\log\left((-1)^2\right) = \log(1)=0, while 2log(cosπ)=2log(1)2\log (\cos \pi)=2\log(-1), which does not exist.)

Because cos2x\cos^2 x is never negative, we notice that cos2x=cosx2\cos^2 x = |\cos x|^2. When cosx\cos x is nonzero, cosx|\cos x| is positive, so our logarithm rules tell us log(cosx2)=2logcosx\log\left(|\cos x|^2\right) =2\log|\cos x |. When cosx\cos x is exactly zero, then both log(cos2x)\log(\cos^2x) and 2logcosx2\log|\cos x| do not exist. So, log(cos2x)=2logcosx\log(\cos^2x) = 2\log|\cos x|.

Stage 2 · Procedural

Q4Stage 2

Differentiate f(x)=log(10x)f(x)=\log(10x).

Hint

There are two easy ways: use the chain rule, or simplify first.

Answer

f(x)=1xf'(x)=\dfrac{1}{x}

Full solution
  • Solution 1: Using the chain rule, ddx{log(10x)}=110x10=1x\ds\diff{}{x}\left\{\log(10x)\right\}=\dfrac{1}{10x}\cdot 10=\frac{1}{x}.

  • Solution 2: Simplifying, ddx{log(10x)}=ddx{log(10)+logx}=0+1x=1x\ds\diff{}{x}\left\{\log(10x)\right\}=\ds\diff{}{x}\left\{\log(10)+\log x\right\} = 0+\frac{1}{x}=\frac{1}{x}.

Q5Stage 2

Differentiate f(x)=log(x2)f(x)=\log(x^2).

Hint

There are two easy ways: use the chain rule, or simplify first.

Answer

f(x)=2xf'(x)=\dfrac{2}{x}

Full solution
  • Solution 1: Using the chain rule, ddx{log(x2)}=1x22x=2x\ds\diff{}{x}\left\{\log(x^2)\right\}=\frac{1}{x^2}\cdot 2x = \frac{2}{x}.

  • Solution 2: Simplifying, ddx{log(x2)}=ddx{2log(x)}=2x\ds\diff{}{x}\left\{\log(x^2)\right\}= \ds\diff{}{x}\left\{2\log(x)\right\}= \frac{2}{x}.

Q6Stage 2

Differentiate f(x)=log(x2+x)f(x)=\log(x^2+x).

Hint

Don't be fooled by a common mistake: log(x2+x)\log(x^2+x) is not the same as log(x2)+logx\log(x^2)+\log x.

Answer

f(x)=2x+1x2+xf'(x)=\dfrac{2x+1}{x^2+x}

Full solution

Don't be fooled by a common mistake: log(x2+x)\log(x^2+x) is not the same as log(x2)+logx\log(x^2)+\log x.
We differentiate using the chain rule: ddx{log(x2+x)}=1x2+x(2x+1)=2x+1x2+x\ds\diff{}{x}\left\{\log(x^2+x)\right\}=\dfrac{1}{x^2+x}\cdot(2x+1) = \dfrac{2x+1}{x^2+x}.

Q7Stage 2

Differentiate f(x)=log10xf(x)=\log_{10}x.

Hint

Use the base-change formula to convert this to natural logarithm (base ee).

Answer

f(x)=1xlog10f'(x) = \dfrac{1}{x\log10}

Full solution

We know the derivative of the natural logarithm (base ee), so we use the base-change formula:

f(x)=log10x=logxlog10\begin{align*}f(x)=\log_{10}x&=\frac{\log x}{\log 10}\end{align*}

Since log10\log 10 is a constant:

f(x)=1xlog10.\begin{align*}f'(x)&=\frac{1}{x\log 10}.\end{align*}
Q8Stage 2Past exam · 1997A

Find the derivative of y=logxx3y=\dfrac{\log x}{x^3}.

Answer

y=13logxx4y'=\dfrac{1-3\log x}{x^4}

Full solution
  • Solution 1: Using the quotient rule,

    y=x31x(logx)3x2x6=x23x2logxx6=13logxx4.y'=\frac{x^3\frac{1}{x}-(\log x)\cdot 3x^2}{x^6}= \frac{x^2-3x^2\log x}{x^6}=\frac{1-3\log x}{x^4}.
  • Solution 2: Using the product rule with y=logxx3y=\log x \cdot x^{-3},

    y=1xx3+logx(3)x4=x4(13logx)y'=\frac{1}{x}x^{-3}+\log x \cdot(-3)x^{-4}=x^{-4}(1-3\log x)
Q9Stage 2

Evaluate ddθlog(secθ)\ds\diff{}{\theta} \log(\sec \theta).

Hint

Use the chain rule.

Answer

ddθlog(secθ)=tanθ\ds\diff{}{\theta} \log(\sec \theta) = \tan \theta

Full solution

Using the chain rule,

ddθlog(secθ)=1secθ(secθtanθ)=tanθ\begin{align*} \ds\diff{}{\theta} \log(\sec \theta)&=\frac{1}{\sec \theta}\cdot (\sec \theta \cdot \tan \theta)\\ &=\tan\theta \end{align*}

Remark: the domain of the function log(secθ)\log(\sec \theta) is those values of θ\theta for which secθ\sec\theta is positive: so, the intervals ((2n12)π,(2n+12)π)\left(\left(2n-\frac{1}{2}\right)\pi,\left(2n+\frac{1}{2}\right)\pi\right) where nn is any integer. Certainly the tangent function has a larger domain than this, but outside the domain of log(secθ)\log(\sec \theta), tanθ\tan \theta is not the derivative of log(secθ)\log(\sec \theta).

Q10Stage 2

Differentiate the function f(x)=ecos(logx)f(x)=e^{\cos\left(\log x\right)}.

Hint

Use the chain rule twice.

Answer

f(x)=ecos(logx)sin(logx)xf'(x)=\dfrac{-e^{\cos(\log x)}\sin(\log x)}{x}

Full solution

Let's start in with the chain rule.

f(x)=ecos(logx)ddx{cos(logx)}\begin{align*}f'(x) &= e^{\textcolor{red}{\cos\left(\log x\right)}} \cdot \diff{}{x} \left\{ \textcolor{red}{\cos\left( \log x \right)}\right\}\end{align*}

We'll need the chain rule again:

=ecos(logx)(sin(logx))ddx{logx}=ecos(logx)(sin(logx))1x=ecos(logx)sin(logx)x\begin{align*}&= e^{\cos\left(\log x\right)} (-\sin(\textcolor{orange}{\log x})) \cdot \diff{}{x}\{\textcolor{orange}{ \log x} \}\\ &= e^{\cos\left(\log x\right)} (-\sin(\log x)) \cdot \frac{1}{x}\\ &=\frac{-e^{\cos(\log x)}\sin(\log x)}{x}\end{align*}

Remark: Although we have a logarithm in the exponent, we can't cancel. The expression ecos(logx)e^{\cos (\log x)} is not the same as the expression xcosxx^{\cos x}, or cosx\cos x.

Q11Stage 2Past exam · 1996D

Evaluate the derivative. You do not need to simplify your answer.

y=log(x2+x4+1)y=\log(x^2+\sqrt{x^4+1})
Hint

You'll need to use the chain rule twice.

Answer

y=2x+4x32x4+1x2+x4+1y'=\dfrac{2x+\frac{4x^3}{2\sqrt{x^4+1}}}{x^2+\sqrt{x^4+1}}

Full solution
y=log(x2+x4+1)\begin{align*}y&=\log(x^2+\sqrt{x^4+1})\end{align*}

So, we'll need the chain rule:

y=ddx{x2+x4+1}x2+x4+1=2x+ddx{x4+1}x2+x4+1\begin{align*}y'&=\frac{\diff{}{x}\left\{\textcolor{red}{x^2+\sqrt{x^4+1}}\right\}}{\textcolor{red}{x^2+\sqrt{x^4+1}}}\\ &=\frac{2x+\diff{}{x}\left\{\sqrt{x^4+1}\right\}}{x^2+\sqrt{x^4+1}}\end{align*}

We need the chain rule again:

=2x+ddx{x4+1}2x4+1x2+x4+1=2x+4x32x4+1x2+x4+1.\begin{align*}&=\frac{2x+\frac{\diff{}{x}\left\{\textcolor{red}{x^4+1}\right\}}{2\sqrt{\textcolor{red}{x^4+1}}}}{x^2+\sqrt{x^4+1}}\\ &=\frac{2x+\frac{4x^3}{2\sqrt{x^4+1}}}{x^2+\sqrt{x^4+1}}.\end{align*}
Q12Stage 2Past exam · 2015Q

Differentiate log(cosx)\sqrt{-\log(\cos x)}.

Hint

Use the chain rule.

Answer

tanx2log(cosx)\dfrac{\tan x}{2\sqrt{-\log(\cos x)}}

Full solution

This requires us to apply the chain rule twice.

ddx{log(cosx)}=12log(cosx)ddx{log(cosx)}=12log(cosx)1cosxddx{cosx}=12log(cosx)1cosx(sinx)=tanx2log(cosx)\begin{align*} \diff{}{x} \left\{ \sqrt{-\log(\cos x)} \right\} &= \frac{1}{2\sqrt{\textcolor{red}{-\log(\cos x)}}} \cdot \diff{}{x} \left\{ \textcolor{red}{-\log\left(\cos x\right)} \right\}\\ &= -\frac{1}{2\sqrt{-\log(\cos x)}} \cdot \frac{1}{\textcolor{orange}{\cos x}} \diff{}{x} \left\{\textcolor{orange}{\cos x} \right\}\\ &= -\frac{1}{2\sqrt{-\log(\cos x)}} \cdot \frac{1}{\cos x} \cdot \left(-\sin x\right)\\ &=\frac{\tan x}{2\sqrt{-\log(\cos x)}} \end{align*}

Remark: it looks strange to see a negative sign in the argument of a square root. Since the cosine function always gives values that are at most 1, log(cosx)\log(\cos x) is always negative or zero over its domain. So, log(cosx)\sqrt{\log(\cos x)} is only defined for the points where cosx=1\cos x=1 (and so log(cosx)=0\log(\cos x) = 0–this isn't a very interesting function! In contrast, log(cosx)-\log(\cos x) is always positive or zero over its domain – and therefore we can always take its square root.

Q13Stage 2Past exam · 1999H

Calculate and simplify the derivative of log(x+x2+4)\log\big(x+\sqrt{x^2+4}\big).

Hint

Use the chain rule to differentiate.

Answer

$\dfrac{\sqrt{x^2+4}+x}{x\sqrt{x^2+4}+x^2+4}= \dfrac{1}{\sqrt{x^2+4}}$

Full solution

Under the chain rule, ddxlogf(x)=1f(x)f(x)\diff{}{x}\log f(x)=\frac{1}{f(x)}f'(x). So

ddx{log(x+x2+4)}=1x+x2+4ddx{x+x2+4}=1x+x2+4(1+2x2x2+4)=1x+x2+4(2x2+4+2x2x2+4)=1x2+4\begin{align*} \diff{}{x}\left\{\log\big(x+\sqrt{x^2+4}\big)\right\} &=\frac{1}{\textcolor{red}{x+\sqrt{x^2+4}}} \cdot \diff{}{x}\left\{\textcolor{red}{x+\sqrt{x^2+4}}\right\} \\ &=\frac{1}{x+\sqrt{x^2+4}}\cdot\left(1+\frac{2x}{2\sqrt{x^2+4}}\right)\\ &=\frac{1}{\textcolor{red}{x+\sqrt{x^2+4}}}\cdot \left(\frac{\textcolor{blue}{2}\textcolor{red}{\sqrt{x^2+4}} +\textcolor{blue}{2}\textcolor{red}{x}} {\textcolor{blue}{2}\sqrt{x^2+4}}\right)\\ &=\frac{1}{\sqrt{x^2+4}} \end{align*}
Q14Stage 2Past exam · 1998H

Evaluate the derivative of g(x)=log(ex2+1+x4)g(x)=\log (e^{x^2}+\sqrt{1+x^4}).

Hint

You can differentiate this by using the chain rule several times.

Answer

g(x)=2xex21+x4+2x3ex21+x4+1+x4g'(x)=\dfrac{2xe^{x^2}\sqrt{1+x^4}+2x^3}{e^{x^2}\sqrt{1+x^4}+1+x^4}

Full solution

Using the chain rule,

g(x)=ddx{ex2+1+x4}ex2+1+x4=2xex2+4x321+x4ex2+1+x4(1+x41+x4)=2xex21+x4+2x3ex21+x4+1+x4\begin{align*} g'(x)&=\frac{\diff{}{x}\{e^{x^2}+\sqrt{1+x^4}\}}{e^{x^2}+\sqrt{1+x^4}}\\ &=\frac{2xe^{x^2}+\frac{4x^3}{2\sqrt{1+x^4}}}{e^{x^2}+\sqrt{1+x^4}}\left(\frac{\sqrt{1+x^4}}{\sqrt{1+x^4}}\right)\\ &=\frac{2xe^{x^2}\sqrt{1+x^4}+2x^3}{e^{x^2}\sqrt{1+x^4}+1+x^4} \end{align*}
Q15Stage 2Past exam · 1997D

Evaluate the derivative of the following function at x=1x=1: g(x)=log(2x12x+1)g(x)=\log\Big(\dfrac{2x-1}{2x+1}\Big).

Hint

Using logarithm rules before you differentiate will make this easier.

Answer

43\dfrac{4}{3}

Full solution

Using logarithm rules makes this an easier problem:

g(x)=log(2x1)log(2x+1)So,  g(x)=22x122x+1and  g(1)=2123=43\begin{align*} g(x) &= \log(2x-1) -\log(2x+1)\\ \text{So, }~ g'(x) &= \dfrac{2}{2x-1} -\dfrac{2}{2x+1}\\ \text{and }~ g'(1) &= \dfrac{2}{1} -\dfrac{2}{3}=\dfrac{4}{3} \end{align*}
Q16Stage 2

Evaluate the derivative of the function f(x)=log((x2+5)3x4+10)f(x) = \log\left(\sqrt{\dfrac{(x^2+5)^3}{x^4+10}}\right).

Hint

Using logarithm rules before you differentiate will make this easier.

Answer

f(x)=3xx2+52x3x4+10f'(x)=\dfrac{3x}{x^2+5}-\dfrac{2x^3}{x^4+10}

Full solution

We begin by simplifying:

f(x)=log((x2+5)3x4+10)=log(((x2+5)3x4+10)1/2)=12log((x2+5)3x4+10)=12[log((x2+5)3)log(x4+10)]=12[3log((x2+5))log(x4+10)]\begin{align*}f(x) &= \log\left(\sqrt{\dfrac{(x^2+5)^3}{x^4+10}}\right)\\ &=\log\left(\left({\dfrac{(x^2+5)^3}{x^4+10}}\right)^{1/2}\right)\\ &=\frac{1}{2}\log\left(\dfrac{(x^2+5)^3}{x^4+10}\right)\\ &=\frac{1}{2}\left[\log\left({(x^2+5)^3}\right)-\log({x^4+10})\right] \\ &=\frac{1}{2}\left[3\log\left({(x^2+5)}\right)-\log({x^4+10})\right]\end{align*}

Now, we differentiate using the chain rule:

f(x)=12[32xx2+54x3x4+10]=3xx2+52x3x4+10\begin{align*}f'(x)&=\frac{1}{2}\left[ 3\frac{2x}{x^2+5}-\frac{4x^3}{x^4+10} \right]\\ &=\frac{3x}{x^2+5}-\frac{2x^3}{x^4+10}\end{align*}

Remark: it is a common mistake to write log(x2+4)\log(x^2+4) as log(x2)+log(4)\log(x^2)+\log(4). These expressions are not equivalent!

Q17Stage 2

Evaluate f(2)f'(2) if f(x)=log(g(xh(x)))f(x) = \log\big(g\big(xh(x)\big)\big), h(2)=2h(2) = 2, h(2)=3h'(2) = 3, g(4)=3g(4) = 3, g(4)=5g'(4) = 5.

Hint

First, differentiate using the chain rule and any other necessary rules. Then, plug in x=2x=2.

Answer

403\dfrac{40}{3}

Full solution

We use the chain rule twice, followed by the product rule:

f(x)=1g(xh(x))ddx{g(xh(x))}=1g(xh(x))g(xh(x))ddx{xh(x)}=1g(xh(x))g(xh(x))[h(x)+xh(x)]\begin{align*}f'(x) &= \frac{1}{\textcolor{red}{g(xh(x))}}\cdot\diff{}{x}\{\textcolor{red}{g(xh(x))}\}\\ &=\frac{1}{g(xh(x))}\cdot g'(\textcolor{orange}{xh(x)})\cdot\diff{}{x}\{\textcolor{orange}{xh(x)}\} \\ &=\dfrac{1}{g\big(xh(x)\big)}\cdot g'\big(xh(x)\big)\cdot\big[h(x)+xh'(x)\big]\end{align*}

In particular, when x=2x=2:

f(2)=1g(2h(2))g(2h(2))[h(2)+2h(2)]=g(4)g(4)[2+2×3]=53[2+2×3]=403\begin{align*}f'(2) &= \dfrac{1}{g\big(2h(2)\big)}\cdot g'\big(2h(2)\big)\cdot \big[h(2)+2h'(2)\big]\\ &= \dfrac{g'(4)}{g(4)}\big[2+2\times 3\big] = \dfrac{5}{3}\big[2+2\times 3\big]\\ &=\dfrac{40}{3}\end{align*}
Q18Stage 2Past exam · 2010H

Differentiate the function

g(x)=πx+xπ.g(x)=\pi^x+x^\pi.
Hint

In the text, you are given the derivative ddxax\ds\diff{}{x} a^x, where aa is a constant.

Answer

g(x)=πxlogπ+πxπ1g'(x)=\pi^x\log \pi+\pi x^{\pi -1}

Full solution

In the text, we saw that ddx{ax}=axloga\ds\diff{}{x}\left\{a^x\right\}=a^x\log a for any constant aa. So, ddx{πx}=πxlogπ\ds\diff{}{x}\left\{\pi^x\right\}=\pi^x\log \pi.

By the power rule, ddx{xπ}=πxπ1\ds\diff{}{x}\left\{x^{\pi}\right\}=\pi x^{\pi-1}.

Therefore, g(x)=πxlogπ+πxπ1g'(x)=\pi^x\log \pi+\pi x^{\pi-1}.

Remark: we had to use two different rules for the two different terms in g(x)g(x). Although the functions πx\pi^x and xπx^\pi look superficially the same, they behave differently, as do their derivatives. A function of the form (constant)x(\text{constant})^{x} is an exponential function and not eligible for the power rule, while a function of the form xconstantx^{\text{constant}} is exactly the class of function the power rule applies to.

Q19Stage 2

Differentiate f(x)=xxf(x)=x^x.

Hint

You'll need to use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x.

Answer

f(x)=xx(logx+1)f'(x) = x^x(\log x + 1)

Full solution

We have the power rule to tell us the derivative of functions of the form xnx^n, where nn is a constant. However, here our exponent is not a constant. Similarly, in this section we learned the derivative of functions of the form axa^x, where aa is a constant, but again, our base is not a constant! Although the result ddxax=axloga\ds\diff{}{x} a^x=a^x\log a is not what we need, the method used to differentiate axa^x will tell us the derivative of xxx^x.

We'll set g(x)=log(xx)g(x)=\log(x^x), because now we can use logarithm rules to simplify:

g(x)=log(f(x))=xlogx\begin{align*}g(x)=\log(f(x))&=x\log x\end{align*}

Now, we can use the product rule to differentiate the right side, and the chain rule to differentiate log(f(x))\log(f(x)):

g(x)=f(x)f(x)=logx+x1x=logx+1\begin{align*}g'(x)=\frac{f'(x)}{f(x)}&=\log x +x\frac{1}{x}=\log x +1\end{align*}

Finally, we solve for f(x)f'(x):

f(x)=f(x)(logx+1)=xx(logx+1)\begin{align*}f'(x)&=f(x)(\log x + 1) = x^x(\log x + 1)\end{align*}
Q20Stage 2Past exam · 2011H

Find f(x)f'(x) if f(x)=xx+log10xf(x) = x^x+\log_{10}x.

Hint

Use Question 19 and the base-change formula, logb(a)=logalogb\log_b(a)=\dfrac{\log a}{\log b}.

Answer

xx(logx+1)+1xlog10x^x(\log x+1)+\dfrac{1}{x\log 10}

Full solution

In Question 19, we saw ddx{xx}=xx(logx+1)\ds\diff{}{x}\left\{x^x\right\}=x^x(\log x+1). Using the base-change formula, log10(x)=logxlog10\log_{10}(x)=\dfrac{\log x}{\log 10}. Since log10\log_{10} is a constant,

f(x)=ddx{xx+logxlog10}=xx(logx+1)+1xlog10\begin{align*} f'(x)&=\diff{}{x}\left\{x^x+\frac{\log x}{\log 10}\right\}\\ &=x^x(\log x+1)+\frac{1}{x\log 10} \end{align*}
Q21Stage 2

Differentiate f(x)=(x4+12)(x4x2+2)x34f(x) = \sqrt[4]{\dfrac{(x^4+12)(x^4-x^2+2)}{x^3}}.

Hint

To make this easier, use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x, and again in Question 19.

Answer

$f'(x)=\dfrac{1}{4}\left( {\sqrt[4]{\dfrac{(x^4+12)(x^4-x^2+2)}{x^3}}}\right)\left(\dfrac{4x^3}{x^4+12}+\dfrac{4x^3-2x}{x^4-x^2+2}-\dfrac{3}{x}\right)$

Full solution

Rather than set in with a terrible chain rule problem, we'll use logarithmic differentiation. Instead of differentiating f(x)f(x), we differentiate a new function log(f(x))\log(f(x)), after simplifying.

log(f(x))=log(x4+12)(x4x2+2)x34=14log((x4+12)(x4x2+2)x3)=14(log(x4+12)+log(x4x2+2)3logx)\begin{align*}\log(f(x))&=\log\sqrt[4]{\dfrac{(x^4+12)(x^4-x^2+2)}{x^3}}\\ &=\frac{1}{4}\log\left(\frac{(x^4+12)(x^4-x^2+2)}{x^3}\right)\\ &=\frac{1}{4}\left(\log(x^4+12)+\log(x^4-x^2+2)-3\log x\right)\end{align*}

Now that we've simplified, we can efficiently differentiate both sides. It is important to remember that we aren't differentiating f(x)f(x) directly–we're differentiating log(f(x))\log(f(x)).

f(x)f(x)=14(4x3x4+12+4x32xx4x2+23x)\begin{align*}\frac{f'(x)}{f(x)}&=\frac{1}{4}\left(\frac{4x^3}{x^4+12}+\frac{4x^3-2x}{x^4-x^2+2}-\frac{3}{x}\right)\end{align*}

Our final step is to solve for f(x)f'(x):

f(x)=f(x)14(4x3x4+12+4x32xx4x2+23x)=14((x4+12)(x4x2+2)x34)(4x3x4+12+4x32xx4x2+23x)\begin{align*}{f'(x)}&=f(x)\frac{1}{4}\left(\frac{4x^3}{x^4+12}+\frac{4x^3-2x}{x^4-x^2+2}-\frac{3}{x}\right) \\ &=\frac{1}{4}\left( {\sqrt[4]{\dfrac{(x^4+12)(x^4-x^2+2)}{x^3}}}\right)\left(\frac{4x^3}{x^4+12}+\frac{4x^3-2x}{x^4-x^2+2}-\frac{3}{x}\right)\end{align*}

It was possible to differentiate this function without logarithms, but the logarithms make it more efficient.

Q22Stage 2

Differentiate f(x)=(x+1)(x2+1)2(x3+1)3(x4+1)4(x5+1)5f(x)=(x+1)(x^2+1)^2(x^3+1)^3(x^4+1)^4(x^5+1)^5.

Hint

To make this easier, use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x, and again in Question 19.

Answer

$f'(x)=(x+1)(x^2+1)^2(x^3+1)^3(x^4+1)^4(x^5+1)^5 \left[\frac{1}{x+1}+\frac{4x}{x^2+1} +\frac{9x^2}{x^3+1}+\frac{16x^3}{x^4+1}+\frac{25x^4}{x^5+1}\right]$

Full solution

It's possible to do this using the product rule a number of times, but it's easier to use logarithmic differentiation. Set

g(x)=log(f(x))=log[(x+1)(x2+1)2(x3+1)3(x4+1)4(x5+1)5]\begin{align*}g(x)=\log(f(x))&=\log\left[(x+1)(x^2+1)^2(x^3+1)^3(x^4+1)^4(x^5+1)^5\right]\end{align*}

Now we can use logarithm rules to change g(x)g(x) into a form that is friendlier to differentiate:

=log(x+1)+log(x2+1)2+log(x3+1)3+log(x4+1)4+log(x5+1)5=log(x+1)+2log(x2+1)+3log(x3+1)+4log(x4+1)+5log(x5+1)\begin{align*}&=\log(x+1)+\log(x^2+1)^2+\log(x^3+1)^3+\log(x^4+1)^4+\log(x^5+1)^5\\ &=\log(x+1)+2\log(x^2+1)+3\log(x^3+1)+4\log(x^4+1)+5\log(x^5+1)\end{align*}

Now, we differentiate g(x)g(x) using the chain rule:

g(x)=f(x)f(x)=1x+1+4xx2+1+9x2x3+1+16x3x4+1+25x4x5+1\begin{align*}g'(x)=\frac{f'(x)}{f(x)}&=\frac{1}{x+1}+\frac{4x}{x^2+1} +\frac{9x^2}{x^3+1}+\frac{16x^3}{x^4+1}+\frac{25x^4}{x^5+1}\end{align*}

Finally, we solve for f(x)f'(x):

f(x)=f(x)[1x+1+4xx2+1+9x2x3+1+16x3x4+1+25x4x5+1]=(x+1)(x2+1)2(x3+1)3(x4+1)4(x5+1)5   [1x+1+4xx2+1+9x2x3+1+16x3x4+1+25x4x5+1]\begin{align*}f'(x)&=f(x)\left[\frac{1}{x+1}+\frac{4x}{x^2+1} +\frac{9x^2}{x^3+1}+\frac{16x^3}{x^4+1}+\frac{25x^4}{x^5+1}\right]\\ &=(x+1)(x^2+1)^2(x^3+1)^3(x^4+1)^4(x^5+1)^5\\ &~~~\cdot\left[\frac{1}{x+1}+\frac{4x}{x^2+1} +\frac{9x^2}{x^3+1}+\frac{16x^3}{x^4+1}+\frac{25x^4}{x^5+1}\right]\end{align*}
Q23Stage 2

Differentiate f(x)=(5x2+10x+153x4+4x3+5)(110(x+1))f(x) = \left(\dfrac{5x^2+10x+15}{3x^4+4x^3+5}\right)\left(\dfrac{1}{10(x+1)}\right).

Hint

It's not going to come out nicely, but there's a better way than blindly applying quotient and product rules, or expanding giant polynomials.

Answer

(x2+2x+33x4+4x3+5)(1x2+2x+36x23x4+4x3+512(x+1)2)\left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right)\left(\dfrac{1}{x^2+2x+3}-\dfrac{6x^2}{3x^4+4x^3+5}-\dfrac{1}{2(x+1)^2}\right)

Full solution

We could do this with quotient and product rules, but it would be pretty painful. Insteady, let's use a logarithm.

f(x)=(5x2+10x+153x4+4x3+5)(110(x+1))=(x2+2x+33x4+4x3+5)(12(x+1))log(f(x))=log[(x2+2x+33x4+4x3+5)(12(x+1))]=log(x2+2x+33x4+4x3+5)+log(12(x+1))=log(x2+2x+3)log(3x4+4x3+5)log(x+1)log(2)\begin{align*}f(x) &= \left(\dfrac{5x^2+10x+15}{3x^4+4x^3+5}\right)\left(\dfrac{1}{10(x+1)}\right) = \left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right)\left(\dfrac{1}{2(x+1)}\right) \\ \log(f(x)) &= \log\left[\left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right)\left(\dfrac{1}{2(x+1)}\right)\right]\\ &=\log\left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right) + \log\left(\dfrac{1}{2(x+1)}\right) \\&=\log\left({x^2+2x+3}\right)- \log\left({3x^4+4x^3+5}\right) -\log(x+1)-\log(2)\end{align*}

Now we have a function that we can differentiate more cleanly than our original function.

ddx{log(f(x))}=ddx{log(x2+2x+3)log(3x4+4x3+5)log(x+1)log(2)}f(x)f(x)=2x+2x2+2x+312x3+12x23x4+4x3+51x+1=2(x+1)x2+2x+312x2(x+1)3x4+4x3+51x+1\begin{align*}\diff{}{x}\left\{\log(f(x))\right\}&=\diff{}{x}\left\{ \log\left({x^2+2x+3}\right)- \log\left({3x^4+4x^3+5}\right) - \log\left({x+1}\right)- \log\left({2}\right) \right\}\\ \frac{f'(x)}{f(x)}&=\frac{2x+2}{x^2+2x+3}-\frac{12x^3+12x^2}{3x^4+4x^3+5}-\frac{1}{x+1}\\ &=\frac{2(x+1)}{x^2+2x+3}-\frac{12x^2(x+1)}{3x^4+4x^3+5}-\frac{1}{x+1}\end{align*}

Finally, we solve for f(x)f(x):

f(x)=f(x)(2(x+1)x2+2x+312x2(x+1)3x4+4x3+51x+1)=(x2+2x+33x4+4x3+5)(12(x+1))(2(x+1)x2+2x+312x2(x+1)3x4+4x3+51x+1)=(x2+2x+33x4+4x3+5)(1x2+2x+36x23x4+4x3+512(x+1)2)\begin{align*}f'(x)&=f(x)\left(\frac{2(x+1)}{x^2+2x+3}-\frac{12x^2(x+1)}{3x^4+4x^3+5}-\frac{1}{x+1}\right)\\ &= \left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right)\left(\dfrac{1}{2(x+1)}\right)\left(\frac{2(x+1)}{x^2+2x+3}-\frac{12x^2(x+1)}{3x^4+4x^3+5}-\frac{1}{x+1}\right)\\ &= \left(\dfrac{x^2+2x+3}{3x^4+4x^3+5}\right)\left(\frac{1}{x^2+2x+3}-\frac{6x^2}{3x^4+4x^3+5}-\frac{1}{2(x+1)^2}\right)\end{align*}
Q24Stage 2Past exam · 2007H

Let f(x)=(cosx)sinxf(x) = (\cos x)^{\sin x}, with domain 0<x<π20<x<\tfrac{\pi}{2}. Find f(x)f'(x).

Hint

You'll need to use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x, and again in Question (19).

Answer

f(x)=(cosx)sinx[(cosx)log(cosx)sinxtanx]f'(x)=(\cos x)^{\sin x}\left[(\cos x) \log (\cos x) - \sin x \tan x\right]

Full solution

Since f(x)f(x) has the form of a function raised to a functional power, we will use logarithmic differentiation.

log(f(x))=log((cosx)sinx)=sinxlog(cosx)\begin{align*}\log(f(x))&=\log\left( (\cos x)^{\sin x}\right)=\sin x \cdot \log (\cos x)\end{align*}

Logarithm rules allowed us to simplify. Now, we differentiate both sides of this equation:

f(x)f(x)=(cosx)log(cosx)+sinxsinxcosx=(cosx)log(cosx)sinxtanx\begin{align*}\frac{f'(x)}{f(x)}&=(\cos x ) \log(\cos x)+ \sin x \cdot \frac{-\sin x}{\cos x}\\ &=(\cos x) \log (\cos x) - \sin x \tan x\end{align*}

Finally, we solve for f(x)f'(x):

f(x)=f(x)[(cosx)log(cosx)sinxtanx]=(cosx)sinx[(cosx)log(cosx)sinxtanx]\begin{align*}f'(x)&=f(x)\left[(\cos x) \log (\cos x) - \sin x \tan x\right]\\ &= (\cos x)^{\sin x}\left[(\cos x) \log (\cos x) - \sin x \tan x\right]\end{align*}

Remark: negative numbers behave in a complicated manner when they are the base of an exponential expression. For example, the expression (1)x(-1)^x is defined when xx is the reciprocal of an odd number (like x=15x=\frac{1}{5} or x=17x=\frac{1}{7}), but not when xx is the reciprocal of an even number (like x=12x=\frac{1}{2}). Since the domain of f(x)f(x) was restricted to (0,π2)(0,\tfrac{\pi}{2}), cosx\cos x is always positive, and we avoid these complications.

Q25Stage 2Past exam · 2006H

Find the derivative of (tan(x))x(\tan(x))^x, when xx is in the interval (0,π/2)(0,\pi/2).

Hint

You'll need to use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x, and again in Question (19).

Answer

ddx{(tanx)x}=(tanx)x(log(tanx)+xsinxcosx){\ds\diff{}{x}\left\{(\tan x)^x\right\}}={(\tan x)^x}\left(\log(\tan x) + \dfrac{x}{\sin x \cos x}\right)

Full solution

Since f(x)f(x) has the form of a function raised to a functional power, we will use logarithmic differentiation. We take the logarithm of the function, and make use of logarithm rules:

log((tanx)x)=xlog(tanx)\begin{align*}\log\left((\tan x)^x\right)&=x\log(\tan x)\end{align*}

Now, we can differentiate:

ddx{(tanx)x}(tanx)x=log(tanx)+xsec2xtanx=log(tanx)+xsinxcosx\begin{align*}\frac{\diff{}{x}\left\{(\tan x)^x\right\}}{(\tan x)^x}&=\log(\tan x) + x\cdot\frac{\sec^2 x}{\tan x}\\ &=\log(\tan x) + \frac{x}{\sin x \cos x}\end{align*}

Finally, we solve for the derivative we want, ddx{(tanx)x}\ds\diff{}{x}\{(\tan x)^x\}:

ddx{(tanx)x}=(tanx)x(log(tanx)+xsinxcosx)\begin{align*}{\diff{}{x}\left\{(\tan x)^x\right\}}&={(\tan x)^x}\left(\log(\tan x) + \frac{x}{\sin x \cos x}\right)\end{align*}

Remark: the restricted domain (0,π/2)(0,\pi/2) ensures that tanx\tan x is a positive number, so we avoid the problems that arise by raising a negative number to a variety of powers.

Q26Stage 2Past exam · 2015Q

Find f(x)f'(x) if f(x)=(x2+1)(x2+1)f(x)= (x^2+1)^{(x^2+1)}

Hint

You'll need to use logarithmic differentiation. Set g(x)=log(f(x))g(x)=\log(f(x)), and find g(x)g'(x). Then, use that to find f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x, and again in Question (19).

Answer

2x(x2+1)x2+1(1+log(x2+1))2x(x^2+1)^{x^2+1} (1+\log(x^2+1))

Full solution

We use logarithmic differentiation.

logf(x)=log(x2+1)(x2+1)\begin{align*}\log f(x) &= \log(x^2+1) \cdot (x^2+1)\end{align*}

We differentiate both sides to obtain:

f(x)f(x)=ddx{log(x2+1)(x2+1)}=2xx2+1(x2+1)+2xlog(x2+1)=2x(1+log(x2+1))\begin{align*}\dfrac{f'(x)}{f(x)} &= \diff{}{x} \left\{ \log(x^2+1) \cdot (x^2+1) \right\}\\ &= \frac{2x}{x^2+1}(x^2+1)+2x\log(x^2+1)\\&=2x(1+\log(x^2+1))\end{align*}

Now, we solve for f(x)f'(x):

f(x)=f(x)2x(1+log(x2+1))=(x2+1)x2+12x(1+log(x2+1))\begin{align*}f'(x) &= f(x) \cdot 2x(1+\log(x^2+1)) \\ &= (x^2+1)^{x^2+1} \cdot 2x(1+\log(x^2+1))\end{align*}
Q27Stage 2Past exam · 2015Q

Differentiate f(x)=(x2+1)sin(x)f(x)= (x^2+1)^{\sin(x)}.

Hint

You'll need to use logarithmic differentiation. Differentiate log(f(x))\log(f(x)), then solve for f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x.

Answer

$f'(x)= (x^2+1)^{\sin(x)} \cdot \left( \cos x \cdot \log(x^2+1) + \frac{2x\sin x}{x^2+1} \right)$

Full solution

We use logarithmic differentiation: we modify our function to consider

logf(x)=log(x2+1)sinx\begin{align*}\log f(x) &= \log(x^2+1) \cdot \sin x\end{align*}

We differentiate using the product and chain rules:

f(x)f(x)=ddx{log(x2+1)sinx}=cosxlog(x2+1)+2xsinxx2+1\begin{align*}\dfrac{f'(x)}{f(x)} &= \diff{}{x} \left\{ \log(x^2+1) \cdot \sin x \right\} = \cos x \cdot \log(x^2+1) + \frac{2x\sin x}{x^2+1}\end{align*}

Finally, we solve for f(x)f'(x)

f(x)=f(x)(cosxlog(x2+1)+2xsinxx2+1)=(x2+1)sin(x)(cosxlog(x2+1)+2xsinxx2+1)\begin{align*}f'(x) &= f(x) \cdot \left( \cos x \cdot \log(x^2+1) + \frac{2x\sin x}{x^2+1} \right) \\ &= (x^2+1)^{\sin(x)} \cdot \left( \cos x \cdot \log(x^2+1) + \frac{2x\sin x}{x^2+1} \right)\end{align*}
Q28Stage 2

Evaluate d3dx3{log(5x212)}\ds\ddiff{3}{}{x}\{\log(5x^2-12)\}.

Hint

Remember to use the chain rule.

Answer

d3dx3{log(5x212)}=100x(5x2+36)(5x212)3\ds\ddiff{3}{}{x}\{\log(5x^2-12)\}=\frac{100x(5x^2+36)}{(5x^2-12)^3}

Full solution

We differentiate using the chain rule.

ddx{log(5x212)}=10x5x212\begin{align*}\diff{}{x}\{\log(5x^2-12)\}&=\frac{10x}{5x^2-12}\end{align*}

Using the quotient rule:

d2dx2{log(5x212)}=ddx{10x5x212}=(5x212)(10)10x(10x)(5x212)2=10(5x2+12)(5x212)2\begin{align*}\ddiff{2}{}{x}\{\log(5x^2-12)\}&=\diff{}{x}\left\{\frac{10x}{5x^2-12}\right\}\\ &=\frac{(5x^2-12)(10)-10x(10x)}{(5x^2-12)^2}\\ &=\frac{-10(5x^2+12)}{(5x^2-12)^2}\end{align*}

Using the quotient rule one last time:

d3dx3{log(5x212)}=ddx{10(5x2+12)(5x212)2}=(5x212)2(10)(10x)+10(5x2+12)(2)(5x212)(10x)(5x212)4=(5x212)(100x)+(200x)(5x2+12)(5x212)3=100x(5x2+12+10x2+24)(5x212)3=100x(5x2+36)(5x212)3\begin{align*}\ddiff{3}{}{x}\{\log(5x^2-12)\}&=\diff{}{x}\left\{ \frac{-10(5x^2+12)}{(5x^2-12)^2} \right\}\\ &=\frac{(5x^2-12)^2(-10)(10x)+10(5x^2+12)(2)(5x^2-12)(10x)}{(5x^2-12)^4}\\ &=\frac{(5x^2-12)(-100x)+(200x)(5x^2+12)}{(5x^2-12)^3}\\ &=\frac{100x(-5x^2+12+10x^2+24)}{(5x^2-12)^3}\\ &=\frac{100x(5x^2+36)}{(5x^2-12)^3}\end{align*}
Q29Stage 2Past exam · 2015Q

Let f(x)=xcos3(x)f(x)= x^{\cos^3(x)}, with domain (0,)(0,\infty). Find f(x)f'(x).

Hint

You'll need to use logarithmic differentiation. Differentiate log(f(x))\log(f(x)), then solve for f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x.

Answer

xcos3(x)(3cos2(x)sin(x)log(x)+cos3(x)x)x^{\cos^3(x)} \cdot \left( -3\cos^2(x)\sin(x) \log(x) + \dfrac{\cos^3(x)}{x} \right)

Full solution

We use logarithmic differentiation; so we modify our function to consider

logf(x)=log(x)cos3(x)\begin{align*}\log f(x) &= \log(x) \cdot \cos^3(x)\end{align*}

Differentiating, we find:

f(x)f(x)=ddx{log(x)cos3(x)}=3cos2(x)(sin(x))log(x)+cos3(x)x\begin{align*}\dfrac{f'(x)}{f(x)} &= \diff{}{x} \left\{ \log(x) \cdot \cos^3(x) \right\} = 3\cos^2(x)\cdot (-\sin(x)) \cdot \log(x) + \frac{\cos^3(x)}{x}\end{align*}

Finally, we solve for f(x)f'(x):

f(x)=f(x)(3cos2(x)sin(x)log(x)+cos3(x)x)=xcos3(x)(3cos2(x)sin(x)log(x)+cos3(x)x)\begin{align*}f'(x) &= f(x) \cdot \left( -3\cos^2(x)\sin(x) \log(x) + \frac{\cos^3(x)}{x} \right) \\ &= x^{\cos^3(x)} \cdot \left( -3\cos^2(x)\sin(x) \log(x) + \frac{\cos^3(x)}{x} \right)\end{align*}

Remark: negative numbers behave in a complicated manner when they are the base of an exponential expression. For example, the expression (1)x(-1)^x is defined when xx is the reciprocal of an odd number (like x=15x=\frac{1}{5} or x=17x=\frac{1}{7}), but not when xx is the reciprocal of an even number (like x=12x=\frac{1}{2}). Since the domain of f(x)f(x) was restricted so that xx is always positive, we avoid these complications.

Q30Stage 2Past exam · 2015Q

Differentiate f(x)=(3+sin(x))x23f(x)= (3+\sin(x))^{x^2-3}.

Hint

You'll need to use logarithmic differentiation. Differentiate log(f(x))\log(f(x)), then solve for f(x)f'(x). This is the method used in the text to find ddxax\ds\diff{}{x} a^x.

Answer

(3+sin(x))x23[2xlog(3+sin(x))+(x23)cos(x)3+sin(x)](3+\sin(x))^{x^2-3}\cdot \left[ 2x\log(3+\sin(x)) + \dfrac{(x^2-3)\cos(x)}{3+\sin(x)}\right]

Full solution

We use logarithmic differentiation. So, we modify our function and consider

logf(x)=(x23)log(3+sin(x)).\begin{align*}\log f(x) &= (x^2-3)\cdot \log(3+\sin(x))\,.\end{align*}

We differentiate:

f(x)f(x)=ddx{(x23)log(3+sin(x))}=2xlog(3+sin(x))+(x23)cos(x)3+sin(x)\begin{align*}\frac{f'(x)}{f(x)} &= \diff{}{x} \left\{(x^2-3)\cdot \log(3+\sin(x)) \right\}\\ &=2x\log(3+\sin(x)) + (x^2-3)\frac{\cos(x)}{3+\sin(x)}\end{align*}

Finally, we solve for f(x)f'(x):

f(x)=f(x)[2xlog(3+sin(x))+(x23)cos(x)3+sin(x)]=(3+sin(x))x23[2xlog(3+sin(x))+(x23)cos(x)3+sin(x)]\begin{align*}f'(x)&= f(x)\cdot \left[ 2x\log(3+\sin(x)) + \frac{(x^2-3)\cos(x)}{3+\sin(x)}\right]\\ &= (3+\sin(x))^{x^2-3}\cdot \left[ 2x\log(3+\sin(x)) + \frac{(x^2-3)\cos(x)}{3+\sin(x)}\right]\end{align*}

Stage 3 · Application

Q31Stage 3

Let f(x)f(x) and g(x)g(x) be differentiable functions, with f(x)>0f(x)>0. Evaluate ddx{[f(x)]g(x)}\ds\diff{}{x}\left\{[f(x)]^{g(x)}\right\}.

Hint

Evaluate ddx{log([f(x)]g(x))}\ds\diff{}{x}\left\{\log\left(\left[f(x)\right]^{g(x)}\right)\right\}.

Answer

$\ds\diff{}{x}\left{[f(x)]^{g(x)}\right}=\left[f(x)\right]^{g(x)}\left[ g'(x)\log(f(x))+ \dfrac{g(x)f'(x)}{f(x)} \right]$

Full solution

We will use logarithmic differentiation. First, we take the logarithm of our function, so we can use logarithm rules.

log([f(x)]g(x))=g(x)log(f(x))\begin{align*}\log\left([f(x)]^{g(x)}\right)&=g(x)\log(f(x))\end{align*}

Now, we differentiate. On the left side we use the chain rule, and on the right side we use product and chain rules.

ddx{log([f(x)]g(x))}=ddx{g(x)log(f(x))}ddx{[f(x)]g(x)}[f(x)]g(x)=g(x)log(f(x))+g(x)f(x)f(x)\begin{align*}\ds\diff{}{x}\left\{\log\left([f(x)]^{g(x)}\right)\right\}&=\ds\diff{}{x}\left\{g(x)\log(f(x))\right\}\\ \frac{\diff{}{x}\{[f(x)]^{g(x)}\}}{[f(x)]^{g(x)}}&= g'(x)\log(f(x))+g(x)\cdot\frac{f'(x)}{f(x)}\end{align*}

Finally, we solve for the derivative of our original function.

ddx{[f(x)]g(x)}=[f(x)]g(x)(g(x)log(f(x))+g(x)f(x)f(x))\begin{align*}{\diff{}{x}\{[f(x)]^{g(x)}\}}&={[f(x)]^{g(x)}}\left( g'(x)\log(f(x))+g(x)\cdot\frac{f'(x)}{f(x)}\right)\end{align*}

Remark: in this section, we have differentiated problems of this type several times–for example, Questions 24

through 30.

Q32Stage 3

Let f(x)f(x) be a function whose range includes only positive numbers. Show that the curves y=f(x)y=f(x) and y=log(f(x))y=\log(f(x)) have horizontal tangent lines at the same values of xx.

Hint

Differentiate y=log(f(x))y=\log(f(x)). When is the derivative equal to zero?

Answer

Let g(x):=log(f(x))g(x):=\log(f(x)). Notice g(x)=f(x)f(x)g'(x)=\frac{f'(x)}{f(x)}.
In order to show that the two curves have horizontal tangent lines at the same values of xx, we will show two things: first, that if f(x)f(x) has a horizontal tangent line at some value of xx, then also g(x)g(x) has a horizontal tangent line at that value of xx. Second, we will show that if g(x)g(x) has a horizontal tangent line at some value of xx, then also f(x)f(x) has a horizontal tangent line at that value of xx.

Suppose f(x)f(x) has a horizontal tangent line where x=x0x=x_0 for some point x0x_0. This means f(x0)=0f'(x_0)=0. Then g(x0)=f(x0)f(x0)g'(x_0)=\frac{f'(x_0)}{f(x_0)}. Since f(x0)0f(x_0) \neq 0, f(x0)f(x0)=0f(x0)=0\frac{f'(x_0)}{f(x_0)}=\frac{0}{f(x_0)}=0, so g(x)g(x) also has a horizontal tangent line when x=x0x=x_0. This shows that whenever ff has a horizontal tangent line, gg has one too.

Now suppose g(x)g(x) has a horizontal tangent line where x=x0x=x_0 for some point x0x_0. This means g(x0)=0g'(x_0)=0. Then g(x0)=f(x0)f(x0)=0g'(x_0)=\frac{f'(x_0)}{f(x_0)}=0, so f(x0)f'(x_0) exists and is equal to zero. Therefore, f(x)f(x) also has a horizontal tangent line when x=x0x=x_0. This shows that whenever gg has a horizontal tangent line, ff has one too.

Full solution

Let g(x):=log(f(x))g(x):=\log(f(x)). Notice g(x)=f(x)f(x)g'(x)=\frac{f'(x)}{f(x)}.
In order to show that the two curves have horizontal tangent lines at the same values of xx, we will show two things: first, that if f(x)f(x) has a horizontal tangent line at some value of xx, then also g(x)g(x) has a horizontal tangent line at that value of xx. Second, we will show that if g(x)g(x) has a horizontal tangent line at some value of xx, then also f(x)f(x) has a horizontal tangent line at that value of xx.

Suppose f(x)f(x) has a horizontal tangent line where x=x0x=x_0 for some point x0x_0. This means f(x0)=0f'(x_0)=0. Then g(x0)=f(x0)f(x0)g'(x_0)=\frac{f'(x_0)}{f(x_0)}. Since f(x0)0f(x_0) \neq 0, f(x0)f(x0)=0f(x0)=0\frac{f'(x_0)}{f(x_0)}=\frac{0}{f(x_0)}=0, so g(x)g(x) also has a horizontal tangent line when x=x0x=x_0. This shows that whenever ff has a horizontal tangent line, gg has one too.

Now suppose g(x)g(x) has a horizontal tangent line where x=x0x=x_0 for some point x0x_0. This means g(x0)=0g'(x_0)=0. Then g(x0)=f(x0)f(x0)=0g'(x_0)=\frac{f'(x_0)}{f(x_0)}=0, so f(x0)f'(x_0) exists and is equal to zero. Therefore, f(x)f(x) also has a horizontal tangent line when x=x0x=x_0. This shows that whenever gg has a horizontal tangent line, ff has one too.

Remark: if we were not told that f(x)f(x) gives only positive numbers, it would not necessarily be true that f(x)f(x) and log(f(x))\log(f(x)) have horizontal tangent lines at the same values of xx. If f(x)f(x) had a horizontal tangent line at an xx-value where f(x)f(x) were negative, then log(f(x))\log(f(x)) would not exist there, let alone have a horizontal tangent line.

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.