← Back to Home

This calculus practice problem asks you to differentiate the product $f(x) \cdot g(x)$, where $f(x) = 7x^3$ and $g(x) = \cos(x)$. 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 the product rule.

Problem 1

$f(x)=7x^{3}$
$g(x)=\cos(x)$

Differentiate $(f \cdot g)(x)$

Check the wrong step
Step 1$(f \cdot g)(x) = 7x^{3} \cos(x)$
Step 2$(f \cdot g)'(x) = \dfrac{d}{dx}[7x^{3} \cos(x)]$
Step 3$(f \cdot g)'(x) = \dfrac{d}{dx}[7x^{3}] \cdot \dfrac{d}{dx}[\cos(x)]$
Step 4$(f \cdot g)'(x) = (7 \cdot 3)x^{3-1} \cdot [-\sin(x)]$
Step 5$(f \cdot g)'(x) = 21x^{2} \cdot [-\sin(x)]$
Step 6$(f \cdot g)'(x) = -21x^{2} \sin(x)$
Unlocked Solution & Analysis ▼

This question was testing your knowledge about the product rule. Check out my Calculus I Notes - Product Rule Section for more worked problems applying the product rule.

Mistake: $\dfrac{d}{dx}[f(x) \cdot g(x)] = \dfrac{d}{dx}f(x) \cdot \dfrac{d}{dx}g(x)$ is false!

$$\frac{d}{dx}[f(x) \cdot g(x)]=f'(x) \cdot g(x)+f(x) \cdot g'(x)$$

Let's go over each step until we reach the wrong one, explain why it is wrong, and then show you the proper solution.

The question starts by giving you 2 functions, $f(x)=7x^{3}$ and $g(x)=\cos(x)$. It then asks us to differentiate the result of the 2 functions getting multiplied together $(f \cdot g)(x)$ (Note: $(f \cdot g)(x)$ is the same thing as $f(x) \cdot g(x)$, they just mean that the 2 functions are multiplying with each other).

Let's start by multiplying $f(x)$ and $g(x)$ together so that we know what function we are working with:

Step 1$f(x) \cdot g(x) = 7x^{3} \cdot \cos(x) = 7x^{3}\cos(x)$

Next, we need to find the derivative of $(f \cdot g)(x)$. So,

Step 2$(f \cdot g)'(x) = \dfrac{d}{dx}[7x^{3} \cos(x)]$

Now, why is step $3$ wrong?
Why can't we just do $\dfrac{d}{dx}[f(x) \cdot g(x)] = \dfrac{d}{dx}f(x) \cdot \dfrac{d}{dx}g(x)$?

A detailed proof of the product rule and why it works will be found in my calculus notes. For the purposes of this question, here is a quick counterexample to prove that $\dfrac{d}{dx}[f(x) \cdot g(x)]=\dfrac{d}{dx}f(x) \cdot \dfrac{d}{dx}g(x)$ is false:

Start with $f(x)=x$ and $g(x)=x$. We know that $f(x) \cdot g(x)=x \cdot x = x^2$, and we know that that the $\dfrac{d}{dx}x^2=2x^{2-1}=2x^1=2x$.

So, if $\dfrac{d}{dx}[f(x) \cdot g(x)]=\dfrac{d}{dx}f(x) \cdot \dfrac{d}{dx}g(x)$ is true, then applying it on $\dfrac{d}{dx}(f \cdot g)=x \cdot x$ must give us $2x$.

Applying the (wrong) rule gives us:

  1. $\dfrac{d}{dx}x \cdot x = \dfrac{d}{dx}x \cdot \dfrac{d}{dx}x$
  2. Since $\dfrac{d}{dx}x=1$, we get: $\dfrac{d}{dx}x \cdot \dfrac{d}{dx}x=1 \cdot 1=1$
  3. And, $1 \neq 2x$ for almost every $x$ (it only works when $x=\dfrac{1}{2}$)

Hence, $\dfrac{d}{dx}[f(x) \cdot g(x)]=\dfrac{d}{dx}f(x) \cdot \dfrac{d}{dx}g(x)$ must be false.

If you have 2 functions getting multiplied together, you must always use the product rule.

Now, let's show you the correct steps (I colored $f(x)$ as red and $g(x)$ as blue for ease of reading):

Step 3$\dfrac{d}{dx} \textcolor{red}{7x^{3}} \textcolor{#33b5e5}{\cos(x)}=\textcolor{red}{[\dfrac{d}{dx}7x^{3}]} \cdot \textcolor{#33b5e5}{\cos(x)} + \textcolor{red}{7x^{3}} \cdot \textcolor{#33b5e5}{[\dfrac{d}{dx} \cos(x)]}$

Step 4Note that $\textcolor{red}{[\dfrac{d}{dx}7x^{3}]=(7 \cdot 3)x^{3-1}=21x^2}$ (This is according to the power rule: $\frac{d}{dx} (ax^n)=(a\cdot n)x^{n-1}$)
Note that $\textcolor{#33b5e5}{[\dfrac{d}{dx} \cos(x)]=-\sin(x)}$

Step 5So, $\dfrac{d}{dx} \textcolor{red}{7x^{3}} \textcolor{#33b5e5}{\cos(x)}=\textcolor{red}{21x^2}\textcolor{#33b5e5}{\cos(x)}+\textcolor{red}{7x^3}(\textcolor{#33b5e5}{-\sin(x)})$

Step 6$\dfrac{d}{dx} 7x^{3}\cos(x)=21x^2\cos(x) - 7x^3\sin(x)$

Step 7You can factor out a $7$ and $x^2$ from both terms: $21x^2\cos(x) - 7x^3\sin(x)=7x^2[3\cos(x)-x\sin(x)]$


As you can see, the correct answer is $7x^2[3\cos(x)-x\sin(x)]$, while the incorrect step resulted in $-21x^2\sin(x)$.