Product and quotient rules
When functions are multiplied or divided, their derivatives combine in a specific pattern, and it is not simply the product or quotient of the derivatives.
Why not just multiply the derivatives?
It is tempting to guess that the derivative of \(f(x)g(x)\) is \(f'(x)g'(x)\). Test it: \(x \cdot x = x^2\) has derivative \(2x\), but multiplying the derivatives of \(x\) and \(x\) gives \(1 \cdot 1 = 1\). The guess fails. Products need their own rule, which comes from thinking about how a rectangle's area changes when both sides grow.
The product rule
Picture a rectangle with sides \(f\) and \(g\). If \(f\) grows by a little and \(g\) grows by a little, the area gains a strip along each side, of size \(f'g\) and \(fg'\), plus a tiny corner that vanishes in the limit. So the derivative of a product is 'first times derivative of second, plus second times derivative of first'.
(fg)' = f'g + fg'Worked example: a polynomial times an exponential
Differentiate \(y = x^3 e^x\). Let \(f = x^3\) and \(g = e^x\), so \(f' = 3x^2\) and \(g' = e^x\). Then \(y' = 3x^2 e^x + x^3 e^x = x^2 e^x(3 + x)\). Factoring at the end makes it easy to see where \(y' = 0\): at \(x = 0\) and \(x = -3\).
\frac{d}{dx}(x^3 e^x) = x^2 e^x (x + 3)Worked example: a trig product
Differentiate \(y = x \sin x\). Here \(f = x\), \(g = \sin x\), so \(f' = 1\) and \(g' = \cos x\). The product rule gives \(y' = \sin x + x\cos x\). Notice how one function's derivative pairs with the other function's original form in each term.
Products of three functions
For three factors, differentiate one at a time and keep the other two: \((fgh)' = f'gh + fg'h + fgh'\). Each term has exactly one prime. The pattern extends to any number of factors.
The quotient rule
For a fraction, the rule is 'low d-high minus high d-low, over low squared', where 'high' is the numerator and 'low' is the denominator. The order in the numerator matters: reversing it flips the sign of your answer. The denominator is squared, never just copied.
\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}Worked example: a rational function
Differentiate \(y = \frac{x^2 + 1}{x - 3}\). High \(= x^2 + 1\), so its derivative is \(2x\); low \(= x - 3\), derivative \(1\). Then \(y' = \frac{2x(x-3) - (x^2+1)(1)}{(x-3)^2} = \frac{x^2 - 6x - 1}{(x-3)^2}\). Expand carefully, combine like terms, and leave the denominator factored.
\frac{d}{dx}\frac{x^2+1}{x-3} = \frac{x^2 - 6x - 1}{(x-3)^2}Worked example: deriving tan x
Write \(\tan x = \frac{\sin x}{\cos x}\). The quotient rule gives \(\frac{\cos x \cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x}\). Using \(\sin^2 x + \cos^2 x = 1\), this is \(\frac{1}{\cos^2 x} = \sec^2 x\). This is where the rule for tangent comes from.
When to avoid the quotient rule
Sometimes simplifying first is faster. \(\frac{x^3 + 2x}{x}\) is just \(x^2 + 2\) for \(x \neq 0\), with derivative \(2x\). A constant numerator like \(\frac{5}{x^4}\) is easier as \(5x^{-4}\), giving \(-20x^{-5}\). Look for simplifications before reaching for heavy rules.
Interpreting a product rule answer
Suppose revenue is \(R = p \cdot q\), price times quantity sold. If both change over time, \(R' = p'q + pq'\): revenue changes because the price changes (with the current quantity) and because sales change (at the current price). The product rule is a precise way to split a combined change into its two causes.
Common mistakes
Writing \((fg)' = f'g'\). Reversing the order in the quotient rule numerator. Forgetting to square the denominator. Dropping parentheses so that \(-(x^2+1)\) becomes \(-x^2 + 1\). Using the quotient rule when a quick rewrite would avoid it.
Try it yourself
Differentiate \(y = \frac{e^x}{x^2}\). Answer: \(y' = \frac{e^x \cdot x^2 - e^x \cdot 2x}{x^4} = \frac{e^x(x - 2)}{x^3}\). Then differentiate \(y = x^2 \ln x\): \(y' = 2x\ln x + x^2 \cdot \frac{1}{x} = 2x \ln x + x\).
Key takeaways
Product rule: \(f'g + fg'\), one prime per term. Quotient rule: \(\frac{f'g - fg'}{g^2}\), with the order mattering and the denominator squared. Simplify before differentiating when you can. Factor your final answer when you need to find where the derivative is zero.
Flashcard
Product rule
Check your understanding
Differentiate y = x^2 e^x.
