← Back to Home

This calculus practice problem asks you to differentiate $x^3 \cdot \log_5\left(\frac{x}{5}\right)$. A worked solution is shown below, but one of its steps contains a mistake. Tick the step you think is wrong and press Check. If you are right, the full explanation unlocks: why that step is wrong and how to solve the problem correctly. It practices differentiating logarithms.

Problem 4

Differentiate $x^{3}\log_{5}\left(\frac{x}{5}\right)$

Check the wrong step
Step 1Let $\textcolor{red}{f(x)=x^{3}}$ and $\textcolor{#33b5e5}{g(x)=\log_{5}\left(\frac{x}{5}\right)}$.
Step 2Since two functions are multiplied together: apply the product rule.

$\dfrac{d}{dx}(f \cdot g)(x)$
$=\textcolor{red}{f'(x)} \cdot \textcolor{#33b5e5}{g(x)} + \textcolor{red}{f(x)} \cdot \textcolor{#33b5e5}{g'(x)}$
Step 3Note that:
$\textcolor{#33b5e5}{g(x)=\log_{5}x-\log_{5}5}$
$\textcolor{#33b5e5}{=\log_{5}x-1}$
Step 4Note that $\textcolor{red}{f'(x)=3x^{3-1}=3x^{2}}$
Step 5Note that:
$\textcolor{#33b5e5}{g'(x)=\dfrac{d}{dx}[\log_{5}x-1]}$
$\textcolor{#33b5e5}{=\dfrac{1}{x}-0}$
Step 6So, plugging into the product rule from Step 2:

$=\textcolor{red}{3x^{2}}\textcolor{#33b5e5}{\log_{5}\left(\frac{x}{5}\right)}+\textcolor{red}{x^{3}}\left(\textcolor{#33b5e5}{\dfrac{1}{x}-0}\right)$
Step 7$=3x^{2}\log_{5}\left(\frac{x}{5}\right)+x^{2}$
Step 8$=x^{2}\left[3\log_{5}\left(\frac{x}{5}\right)+1\right]$
Unlocked Solution & Analysis ▼

This question was testing your knowledge about differentiating logarithms. Check out my Calculus I Notes - Differentiation and Logs Section for more worked problems about differentiating logarithms.

Mistake: The derivative of $\log_{5}x$ is $\dfrac{1}{x \cdot \ln 5}$, not just $\dfrac{1}{x}$

This mistake is based on believing that $\dfrac{d}{dx}\ln x=\dfrac{1}{x}$ applies to logs of any base (that's not true!).

In fact, $\dfrac{d}{dx}\ln x=\dfrac{1}{x}$ is a specific case that helped derive the more general formula: $\dfrac{d}{dx}\log_{a}x=\dfrac{1}{x \cdot \ln(a)}$. Here is how $\dfrac{d}{dx}\ln x=\dfrac{1}{x}$ fits into that general formula.

Note that $\ln x = \log_{e} x$ (this is just something to memorize)

So, $\dfrac{d}{dx}\log_{e} x=\dfrac{1}{x \cdot \ln e}$

Note: Any $\log_{a}a=1$. So, $\ln e = \log_{e} e = 1$

Hence, $\dfrac{1}{x \cdot \ln e}=\dfrac{1}{x}$

If you are wondering how $\log_{5} \dfrac{x}{5}$ is the same thing as $\log_{5} x - \log_{5} 5$, you need to recall the change of base formula for logs:

$\log_{a}\dfrac{M}{N}=\log_{a}M - \log_{a}N$

In this case, our $M=x$ and $N=5$, giving us: $\log_{5} \dfrac{x}{5}=\log_{5} x - \log_{5} 5$.

Now, here is the correct solution to the problem:

Step 1Let $\textcolor{red}{f(x)=x^{3}}$ and $\textcolor{#33b5e5}{g(x)=\log_{5}\left(\frac{x}{5}\right)}$.

Step 2Since two functions are multiplied together: apply the product rule.

$\dfrac{d}{dx}(f \cdot g)(x)$
$=\textcolor{red}{f'(x)} \cdot \textcolor{#33b5e5}{g(x)} + \textcolor{red}{f(x)} \cdot \textcolor{#33b5e5}{g'(x)}$

Step 3Note that:
$\textcolor{#33b5e5}{g(x)=\log_{5}x-\log_{5}5}$
$\textcolor{#33b5e5}{=\log_{5}x-1}$

Step 4Note that $\textcolor{red}{f'(x)=3x^{3-1}=3x^{2}}$

Step 5Note that:
$\textcolor{#33b5e5}{g'(x)=\dfrac{d}{dx}[\log_{5}x-1]}$
$\textcolor{#33b5e5}{=\dfrac{1}{x \cdot \ln 5}-0}$

Step 6So, plugging into the product rule from Step 2:

$=\textcolor{red}{3x^{2}}\textcolor{#33b5e5}{\log_{5}\left(\frac{x}{5}\right)}+\textcolor{red}{x^{3}}\left(\textcolor{#33b5e5}{\dfrac{1}{x \cdot \ln 5}-0}\right)$

Step 7$=3x^{2}\log_{5}\left(\frac{x}{5}\right)+\dfrac{x^{3}}{x \cdot \ln 5}$
$=3x^{2}\log_{5}\left(\frac{x}{5}\right)+\dfrac{x^{2}}{\ln 5}$

Step 8$=x^{2}\left[3\log_{5}\left(\frac{x}{5}\right)+\dfrac{1}{\ln 5}\right]$
$x^{2}$ was factored out of both terms.


As you can see, the correct answer is $x^{2}\left[3\log_{5}\left(\frac{x}{5}\right)+\dfrac{1}{\ln 5}\right]$, while the incorrect step resulted in $x^{2}\left[3\log_{5}\left(\frac{x}{5}\right)+1\right]$ (the second term was missing the factor $\dfrac{1}{\ln 5}$).