AP Calculus AB Unit 2 Notes: Differentiating Products and Quotients
The Product Rule
What the product rule is
When you differentiate, you’re usually trying to find the instantaneous rate of change of a quantity. Many functions you meet in calculus are built by combining simpler pieces. One very common combination is multiplication: you might have a function like h(x) = f(x)g(x) where two separate expressions both depend on x.
The product rule is the differentiation rule that tells you how to find the derivative of a product of two differentiable functions. The key idea is that when x changes, both factors can change—so the rate of change of their product comes from both contributions.
Formally, if h(x) = f(x)g(x), then
h'(x) = f'(x)g(x) + f(x)g'(x)
Why it matters (and why you can’t just “differentiate each part”)
A tempting but incorrect guess is:
\frac{d}{dx}[f(x)g(x)] \stackrel{?}{=} f'(x)g'(x)
That’s almost never true. The reason is conceptual: the product f(x)g(x) changes because f might change while g stays roughly the same _and_ because g might change while f stays roughly the same—those are two separate “sources” of change that must be added.
A quick reality check with a simple example shows the problem. Let f(x)=x and g(x)=x. Then f(x)g(x)=x^2 so the derivative should be 2x.
If you incorrectly used f'(x)g'(x) you’d get 1 \cdot 1 = 1, which is clearly not the same as 2x.
How it works (the mechanism behind the rule)
A helpful way to understand the product rule is to think in terms of small changes. Suppose x increases by a tiny amount, creating small changes \Delta f and \Delta g in the factors. Then the product changes like this:
\Delta(fg) = (f+\Delta f)(g+\Delta g) - fg
Expanding gives:
\Delta(fg) = f\Delta g + g\Delta f + \Delta f\Delta g
Now divide by \Delta x to think about rates of change:
\frac{\Delta(fg)}{\Delta x} = f\frac{\Delta g}{\Delta x} + g\frac{\Delta f}{\Delta x} + \frac{\Delta f\Delta g}{\Delta x}
As \Delta x \to 0, the terms \frac{\Delta f}{\Delta x} and \frac{\Delta g}{\Delta x} approach f'(x) and g'(x). The remaining term \frac{\Delta f\Delta g}{\Delta x} goes to 0 because both \Delta f and \Delta g become very small, making their product “extra small.” What’s left is the product rule:
\frac{d}{dx}[f(x)g(x)] = f(x)g'(x) + g(x)f'(x)
This reasoning is worth knowing because it prevents a common mistake: thinking differentiation “distributes” over multiplication the way it does over addition.
How to apply the product rule reliably
When you see a product of two functions of x, use this consistent process:
- Identify the two factors as f(x) and g(x). (If there are more than two factors, you can group them into two parts.)
- Differentiate each factor separately to get f'(x) and g'(x).
- Plug into f'(x)g(x) + f(x)g'(x).
- Simplify only after the structure is correct.
A strong habit: rewrite the result as “first times derivative of second plus second times derivative of first,” but be careful not to swap which one you differentiate in each term.
Memory aid
A common mnemonic is:
- “Left d right + right d left”
Meaning: keep the left factor, differentiate the right, then add keep the right, differentiate the left.
Worked examples
Example 1: Polynomial times trig
Differentiate:
y = (x^2 + 3x)\sin(x)
Step 1: Identify factors.
f(x) = x^2 + 3x
g(x) = \sin(x)
Step 2: Differentiate each.
f'(x) = 2x + 3
g'(x) = \cos(x)
Step 3: Apply product rule.
y' = (2x+3)\sin(x) + (x^2+3x)\cos(x)
That is already a correct final form. You can factor something if it helps later, but you should not try to combine the sine and cosine terms as “like terms” (they aren’t).
Example 2: Two algebraic expressions
Differentiate:
h(x) = (x^2 - 1)(x^3 + 2x)
You could expand first, but the product rule often reduces algebra errors.
Let
f(x)=x^2-1
g(x)=x^3+2x
Then
f'(x)=2x
g'(x)=3x^2+2
Apply product rule:
h'(x)=2x(x^3+2x)+(x^2-1)(3x^2+2)
You may expand if needed (for example, if asked to evaluate at a specific x, you might not need to fully expand).
Product rule with more than two factors (what to do)
AP problems sometimes include products like p(x)q(x)r(x). The product rule is stated for two factors, so you typically handle this by grouping:
p(x)q(x)r(x) = (p(x)q(x))r(x)
Differentiate the grouped product as one factor, then apply product rule again (or use product rule once with f=pq and g=r, and inside compute f' using product rule).
In many AB-level problems, it’s also common that one “factor” is something like x^2 and the other factor is a more complicated expression. Grouping is your friend.
Common misconceptions to watch for (woven into your process)
- Mistaking product rule for “derivative of each”: writing f'g' instead of f'g + fg'.
- Differentiating the same factor twice: for instance, writing f'g' + f'g' because you forget the “keep one, differentiate the other” structure.
- Over-expanding too early: expanding can be valid, but it often increases algebra mistakes. If you expand, do it carefully and consider whether it’s even necessary.
Exam Focus
- Typical question patterns:
- Differentiate a function that is clearly a product, often involving trig, exponential, or logarithmic expressions multiplied by a polynomial.
- Find the slope of the tangent line at a point: compute y'(a) and then write the tangent line.
- Compute a related rate or instantaneous rate of change where the given quantity is modeled as a product (for example, area or revenue modeled by multiplying two changing factors).
- Common mistakes:
- Forgetting one of the two terms in f'(x)g(x) + f(x)g'(x).
- Differentiating correctly but then making an algebra sign error when distributing or simplifying.
- Treating expressions like \sin(x) and \cos(x) as like terms and trying to combine them.
The Quotient Rule
What the quotient rule is
A second very common way functions are built is division. If
h(x) = \frac{f(x)}{g(x)}
and both f and g are differentiable (and g(x) \ne 0 where you’re evaluating), then the quotient rule tells you how to differentiate that ratio.
The quotient rule is:
h'(x) = \frac{f'(x)g(x) - f(x)g'(x)}{(g(x))^2}
The structure matters: it’s not symmetric like the product rule, and the subtraction order is important.
Why it matters (rates of change of “per” quantities)
Quotients often represent “per” measurements:
- average cost per item,
- concentration (amount per volume),
- velocity as distance per time (in some contexts),
- density as mass per volume.
When you have \frac{f(x)}{g(x)}, a change in x can change both the numerator and denominator, and those changes interact. The quotient rule captures how a changing denominator affects the overall rate—something you miss if you naively do “top derivative over bottom derivative.”
A common incorrect idea is:
\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] \stackrel{?}{=} \frac{f'(x)}{g'(x)}
That is generally false. One quick check: if f(x)=x and g(x)=x^2, then \frac{f}{g}=\frac{1}{x} and the derivative is -\frac{1}{x^2}. But \frac{f'}{g'}=\frac{1}{2x}, which does not match.
How it works (connecting it to the product rule)
One of the best ways to understand the quotient rule is to connect it to something you already know: the product rule.
Rewrite a quotient as a product using a negative exponent:
\frac{f(x)}{g(x)} = f(x)(g(x))^{-1}
Now differentiate using the product rule:
\frac{d}{dx}[f(x)(g(x))^{-1}] = f'(x)(g(x))^{-1} + f(x)\frac{d}{dx}[(g(x))^{-1}]
To proceed, you need the derivative of (g(x))^{-1} . Using the chain rule idea (differentiate u^{-1} as -u^{-2} times u'), you get:
\frac{d}{dx}[(g(x))^{-1}] = -(g(x))^{-2}g'(x)
Substitute back:
h'(x) = \frac{f'(x)}{g(x)} - f(x)\frac{g'(x)}{(g(x))^2}
Put over a common denominator (g(x))^2 :
h'(x) = \frac{f'(x)g(x) - f(x)g'(x)}{(g(x))^2}
This perspective helps you remember that the denominator gets squared because you’re effectively combining terms over a common denominator.
How to apply the quotient rule reliably
To differentiate \frac{f(x)}{g(x)} without sign mistakes, do this every time:
- Clearly label the numerator f(x) and the **denominator** g(x).
- Compute f'(x) and g'(x) separately.
- Substitute into
\frac{f'(x)g(x) - f(x)g'(x)}{(g(x))^2}
- Simplify (factor, cancel common factors) only after you’ve correctly written the quotient rule expression.
A crucial warning: you can simplify the original function before differentiating if it truly simplifies (for example, canceling a common factor that is not zero). But do not “cancel” across a plus sign, and remember that cancellations can change the domain if you aren’t careful.
Memory aid
A widely used mnemonic is:
- “Low d high minus high d low, over low squared”
Here “high” means the top (numerator) and “low” means the bottom (denominator). The phrase captures both the subtraction order and the squared denominator.
Notation reference (so you can read questions fluently)
On AP Calculus, derivatives can be written in several equivalent ways:
| Meaning | Common notation |
|---|---|
| Derivative of y with respect to x | \frac{dy}{dx} |
| Derivative of f(x) | f'(x) |
| Operator form | \frac{d}{dx}[f(x)] |
For quotient rule problems, you may see any of these, but the underlying computation is the same.
Worked examples
Example 1: Rational function
Differentiate:
y = \frac{x^2 + 1}{x - 1}
Step 1: Identify numerator and denominator.
f(x)=x^2+1
g(x)=x-1
Step 2: Differentiate each.
f'(x)=2x
g'(x)=1
Step 3: Apply quotient rule.
y' = \frac{(2x)(x-1) - (x^2+1)(1)}{(x-1)^2}
Step 4: Simplify (optional but often nice).
Expand the numerator carefully:
(2x)(x-1) = 2x^2 - 2x
So numerator becomes:
2x^2 - 2x - x^2 - 1 = x^2 - 2x - 1
Final:
y' = \frac{x^2 - 2x - 1}{(x-1)^2}
Notice how the denominator is squared exactly as the rule predicts.
Example 2: Trig over polynomial
Differentiate:
h(x) = \frac{\sin(x)}{x^2}
Here
f(x)=\sin(x)
g(x)=x^2
Then
f'(x)=\cos(x)
g'(x)=2x
Apply quotient rule:
h'(x) = \frac{\cos(x)\cdot x^2 - \sin(x)\cdot 2x}{(x^2)^2}
You can simplify:
(x^2)^2 = x^4
Factor an x from the numerator:
h'(x) = \frac{x(x\cos(x) - 2\sin(x))}{x^4}
Cancel a factor of x (valid for x \ne 0, which is already required because the original function has x^2 in the denominator):
h'(x) = \frac{x\cos(x) - 2\sin(x)}{x^3}
Both forms are acceptable unless a problem asks for a specific simplified form.
When you can avoid the quotient rule (and when you shouldn’t)
Sometimes rewriting makes differentiation easier and less error-prone. For example:
\frac{1}{x^3} = x^{-3}
Then you can use the power rule instead of quotient rule.
Similarly,
\frac{f(x)}{x^n} = f(x)x^{-n}
This turns the problem into a product, which you can differentiate using the product rule (and then chain/power rules as needed).
However, you should be cautious about rewriting when the denominator is a complicated expression like x^2+1. Writing \frac{f(x)}{x^2+1} = f(x)(x^2+1)^{-1} is valid, but differentiating (x^2+1)^{-1} requires careful chain rule work, and many students find the quotient rule more straightforward in that situation.
Common misconceptions and error traps
- Wrong subtraction order: writing f(x)g'(x) - f'(x)g(x) instead of f'(x)g(x) - f(x)g'(x). This produces the negative of the correct answer.
- Forgetting to square the denominator: writing denominator as g(x) instead of (g(x))^2.
- “Derivative of top over derivative of bottom”: writing \frac{f'(x)}{g'(x)}, which is not a rule.
- Canceling illegally before differentiating: you may cancel common factors (like an x multiplying the entire numerator and entire denominator), but you cannot cancel terms separated by addition/subtraction.
A conceptual application (why changing denominators matter)
Suppose C(x) is total cost and N(x) is number of items produced, both depending on some parameter x (like time or production setting). Average cost per item might be:
A(x) = \frac{C(x)}{N(x)}
The derivative A'(x) is not just “change in cost divided by change in items.” If N(x) increases, that can _reduce_ average cost even if C(x) also increases—because a growing denominator can pull the ratio down. The quotient rule encodes that tug-of-war through the difference C'(x)N(x) - C(x)N'(x).
Exam Focus
- Typical question patterns:
- Differentiate a rational function, especially polynomials in a quotient, sometimes followed by evaluating y'(a).
- Differentiate a quotient involving trig, exponential, or logarithmic functions in the numerator or denominator.
- Tangent line or normal line problems where the derivative comes from a quotient rule expression.
- Common mistakes:
- Dropping parentheses so that only part of the numerator is subtracted, especially with expressions like -(f(x)g'(x)).
- Squaring only part of the denominator: for instance, turning (x-1)^2 into x-1^2 (which is different).
- Simplifying too early and canceling terms that are not common factors.