The product rule
In Year 12 Mathematical Methods (Queensland, QCAA), the product rule differentiates a product of two functions: if \(y=u\,v\) then \(y'=u'v+uv'\). It is used for products such as \(x^{2}e^{x}\), \(x\ln x\) and \(e^{x}\sin x\), is combined with the chain rule when a factor is composite, and the answer is written in simplest and factorised form.
The product rule is the rule for differentiating a product of two functions of \(x\). If \(y=u\,v\), where \(u=u(x)\) and \(v=v(x)\), then
\(y'=u'v+uv'.\)
In words: differentiate the first factor and multiply by the second, add the first factor times the derivative of the second. Each factor is differentiated once while the other is held unchanged, and the two terms are added.
The rule is needed whenever two functions of \(x\) are multiplied — for example \(x^{2}e^{x}\), \(x\ln x\) or \(e^{x}\cos x\). It does not say \((uv)'=u'v'\): the derivative of a product is never simply the product of the derivatives. When one of the factors is itself a composite function (such as \(e^{3x}\) or \((2x+1)^{3}\)), the product rule is combined with the chain rule to differentiate that factor.
The product rule for \(y=u\,v\) (both \(u,v\) functions of \(x\)):
The standard derivatives used with it:
When a factor is composite, differentiate it with the chain rule (keep the inner factor):
How to differentiate a product
- Name the factors. Write \(u\) and \(v\) for the two functions being multiplied.
- Differentiate each. Find \(u'\) and \(v'\). If a factor is composite, use the chain rule and keep its inner factor.
- Apply the rule. Write \(y'=u'v+uv'\) — two terms, one from each factor.
- Factorise. Take out the highest common factor so the answer is in simplest and factorised form.
Let \(u=x^{2}\), \(v=e^{x}\), so \(u'=2x\), \(v'=e^{x}\).
| \(y'\) | \(=\) | \(u'v+uv'\) |
| \(=\) | \(2x\,e^{x}+x^{2}e^{x}\) | |
| \(=\) | \(x e^{x}(x+2)\) |
Both factors are functions of \(x\): \(u=e^{x}\), \(v=\sin x\).
| \(y'\) | \(=\) | \(e^{x}\sin x+e^{x}\cos x\) |
| \(=\) | \(e^{x}(\sin x+\cos x)\) |
\(u=x\), \(v=\ln x\), so \(u'=1\), \(v'=\dfrac{1}{x}\).
| \(y'\) | \(=\) | \(1\cdot\ln x+x\cdot\dfrac{1}{x}\) |
| \(=\) | \(\ln x+1\) |
\(u=x^{2}\), \(v=e^{3x}\). By the chain rule \(v'=3e^{3x}\) (keep the inner \(3\)).
| \(y'\) | \(=\) | \(2x\,e^{3x}+x^{2}\cdot 3e^{3x}\) |
| \(=\) | \(x e^{3x}(2+3x)\) |
Common pitfalls
Frequently asked questions
What is the product rule?
If \(y=u\,v\), where \(u\) and \(v\) are both functions of \(x\), then \(y'=u'v+uv'\). Differentiate each factor once, keep the other unchanged, and add.
How do you differentiate \(x^{2}e^{x}\)?
Take \(u=x^{2}\), \(v=e^{x}\), so \(y'=2x e^{x}+x^{2}e^{x}=x e^{x}(x+2)\).
Why is \((uv)'\) not \(u'v'\)?
Because both factors change at once, so the change in \(uv\) has two parts, \(u\,dv\) and \(v\,du\). That gives \(u'v+uv'\), not the product of the derivatives.
How do you use the product rule with the chain rule?
Differentiate any composite factor with the chain rule. For \(x^{2}e^{3x}\), \(v'=3e^{3x}\), so \(y'=x e^{3x}(3x+2)\).
When do you need the product rule?
Whenever two functions of \(x\) are multiplied, such as \(x\ln x\), \(e^{x}\sin x\) or \(x^{2}e^{-x}\). A constant factor does not need it.
What does simplest and factorised form mean?
Take out the highest common factor of the two terms, e.g. write \(x e^{x}(x+2)\) rather than \(2x e^{x}+x^{2}e^{x}\).