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)h(x) = f(x)g(x) where two separate expressions both depend on xx.

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 xx 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)h(x) = f(x)g(x), then

h(x)=f(x)g(x)+f(x)g(x)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:

ddx[f(x)g(x)]=?f(x)g(x)\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)f(x)g(x) changes because ff might change while gg stays roughly the same _and_ because gg might change while ff 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)=xf(x)=x and g(x)=xg(x)=x. Then f(x)g(x)=x2f(x)g(x)=x^2 so the derivative should be 2x2x.

If you incorrectly used f(x)g(x)f'(x)g'(x) you’d get 11=11 \cdot 1 = 1, which is clearly not the same as 2x2x.

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 xx increases by a tiny amount, creating small changes Δf\Delta f and Δg\Delta g in the factors. Then the product changes like this:

Δ(fg)=(f+Δf)(g+Δg)fg\Delta(fg) = (f+\Delta f)(g+\Delta g) - fg

Expanding gives:

Δ(fg)=fΔg+gΔf+ΔfΔg\Delta(fg) = f\Delta g + g\Delta f + \Delta f\Delta g

Now divide by Δx\Delta x to think about rates of change:

Δ(fg)Δx=fΔgΔx+gΔfΔx+ΔfΔgΔx\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 Δx0\Delta x \to 0, the terms ΔfΔx\frac{\Delta f}{\Delta x} and ΔgΔx\frac{\Delta g}{\Delta x} approach f(x)f'(x) and g(x)g'(x). The remaining term ΔfΔgΔx\frac{\Delta f\Delta g}{\Delta x} goes to 00 because both Δf\Delta f and Δg\Delta g become very small, making their product “extra small.” What’s left is the product rule:

ddx[f(x)g(x)]=f(x)g(x)+g(x)f(x)\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 xx, use this consistent process:

  1. Identify the two factors as f(x)f(x) and g(x)g(x). (If there are more than two factors, you can group them into two parts.)
  2. Differentiate each factor separately to get f(x)f'(x) and g(x)g'(x).
  3. Plug into f(x)g(x)+f(x)g(x)f'(x)g(x) + f(x)g'(x).
  4. 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=(x2+3x)sin(x)y = (x^2 + 3x)\sin(x)

Step 1: Identify factors.

f(x)=x2+3xf(x) = x^2 + 3x

g(x)=sin(x)g(x) = \sin(x)

Step 2: Differentiate each.

f(x)=2x+3f'(x) = 2x + 3

g(x)=cos(x)g'(x) = \cos(x)

Step 3: Apply product rule.

y=(2x+3)sin(x)+(x2+3x)cos(x)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)=(x21)(x3+2x)h(x) = (x^2 - 1)(x^3 + 2x)

You could expand first, but the product rule often reduces algebra errors.

Let

f(x)=x21f(x)=x^2-1

g(x)=x3+2xg(x)=x^3+2x

Then

f(x)=2xf'(x)=2x

g(x)=3x2+2g'(x)=3x^2+2

Apply product rule:

h(x)=2x(x3+2x)+(x21)(3x2+2)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 xx, 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)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)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=pqf=pq and g=rg=r, and inside compute ff' using product rule).

In many AB-level problems, it’s also common that one “factor” is something like x2x^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 fgf'g' instead of fg+fgf'g + fg'.
  • Differentiating the same factor twice: for instance, writing fg+fgf'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)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)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)\sin(x) and cos(x)\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)=f(x)g(x)h(x) = \frac{f(x)}{g(x)}

and both ff and gg are differentiable (and g(x)0g(x) \ne 0 where you’re evaluating), then the quotient rule tells you how to differentiate that ratio.

The quotient rule is:

h(x)=f(x)g(x)f(x)g(x)(g(x))2h'(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 f(x)g(x)\frac{f(x)}{g(x)}, a change in xx 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:

ddx[f(x)g(x)]=?f(x)g(x)\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)=xf(x)=x and g(x)=x2g(x)=x^2, then fg=1x\frac{f}{g}=\frac{1}{x} and the derivative is 1x2-\frac{1}{x^2}. But fg=12x\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:

f(x)g(x)=f(x)(g(x))1\frac{f(x)}{g(x)} = f(x)(g(x))^{-1}

Now differentiate using the product rule:

ddx[f(x)(g(x))1]=f(x)(g(x))1+f(x)ddx[(g(x))1]\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(g(x))^{-1}. Using the chain rule idea (differentiate u1u^{-1} as u2-u^{-2} times uu'), you get:

ddx[(g(x))1]=(g(x))2g(x)\frac{d}{dx}[(g(x))^{-1}] = -(g(x))^{-2}g'(x)

Substitute back:

h(x)=f(x)g(x)f(x)g(x)(g(x))2h'(x) = \frac{f'(x)}{g(x)} - f(x)\frac{g'(x)}{(g(x))^2}

Put over a common denominator (g(x))2(g(x))^2:

h(x)=f(x)g(x)f(x)g(x)(g(x))2h'(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 f(x)g(x)\frac{f(x)}{g(x)} without sign mistakes, do this every time:

  1. Clearly label the numerator f(x)f(x) and the **denominator** g(x)g(x).
  2. Compute f(x)f'(x) and g(x)g'(x) separately.
  3. Substitute into

f(x)g(x)f(x)g(x)(g(x))2\frac{f'(x)g(x) - f(x)g'(x)}{(g(x))^2}

  1. 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:

MeaningCommon notation
Derivative of yy with respect to xxdydx\frac{dy}{dx}
Derivative of f(x)f(x)f(x)f'(x)
Operator formddx[f(x)]\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=x2+1x1y = \frac{x^2 + 1}{x - 1}

Step 1: Identify numerator and denominator.

f(x)=x2+1f(x)=x^2+1

g(x)=x1g(x)=x-1

Step 2: Differentiate each.

f(x)=2xf'(x)=2x

g(x)=1g'(x)=1

Step 3: Apply quotient rule.

y=(2x)(x1)(x2+1)(1)(x1)2y' = \frac{(2x)(x-1) - (x^2+1)(1)}{(x-1)^2}

Step 4: Simplify (optional but often nice).

Expand the numerator carefully:

(2x)(x1)=2x22x(2x)(x-1) = 2x^2 - 2x

So numerator becomes:

2x22xx21=x22x12x^2 - 2x - x^2 - 1 = x^2 - 2x - 1

Final:

y=x22x1(x1)2y' = \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)=sin(x)x2h(x) = \frac{\sin(x)}{x^2}

Here

f(x)=sin(x)f(x)=\sin(x)

g(x)=x2g(x)=x^2

Then

f(x)=cos(x)f'(x)=\cos(x)

g(x)=2xg'(x)=2x

Apply quotient rule:

h(x)=cos(x)x2sin(x)2x(x2)2h'(x) = \frac{\cos(x)\cdot x^2 - \sin(x)\cdot 2x}{(x^2)^2}

You can simplify:

(x2)2=x4(x^2)^2 = x^4

Factor an xx from the numerator:

h(x)=x(xcos(x)2sin(x))x4h'(x) = \frac{x(x\cos(x) - 2\sin(x))}{x^4}

Cancel a factor of xx (valid for x0x \ne 0, which is already required because the original function has x2x^2 in the denominator):

h(x)=xcos(x)2sin(x)x3h'(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:

1x3=x3\frac{1}{x^3} = x^{-3}

Then you can use the power rule instead of quotient rule.

Similarly,

f(x)xn=f(x)xn\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 x2+1x^2+1. Writing f(x)x2+1=f(x)(x2+1)1\frac{f(x)}{x^2+1} = f(x)(x^2+1)^{-1} is valid, but differentiating (x2+1)1(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)f(x)g'(x) - f'(x)g(x) instead of f(x)g(x)f(x)g(x)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)g(x) instead of (g(x))2(g(x))^2.
  • “Derivative of top over derivative of bottom”: writing f(x)g(x)\frac{f'(x)}{g'(x)}, which is not a rule.
  • Canceling illegally before differentiating: you may cancel common factors (like an xx 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)C(x) is total cost and N(x)N(x) is number of items produced, both depending on some parameter xx (like time or production setting). Average cost per item might be:

A(x)=C(x)N(x)A(x) = \frac{C(x)}{N(x)}

The derivative A(x)A'(x) is not just “change in cost divided by change in items.” If N(x)N(x) increases, that can _reduce_ average cost even if C(x)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)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)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))-(f(x)g'(x)).
    • Squaring only part of the denominator: for instance, turning (x1)2(x-1)^2 into x12x-1^2 (which is different).
    • Simplifying too early and canceling terms that are not common factors.