STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

The product rule and quotient rule, explained

The product rule differentiates two functions multiplied together, and the quotient rule handles one function divided by another. Together they cover a huge share of the derivatives you will meet in AP Calculus and A level Maths.

On this page
  1. Why you need special rules
  2. The product rule
  3. Where the product rule comes from
  4. The quotient rule
  5. Worked examples: product rule
  6. Worked examples: quotient rule
  7. When to rewrite instead
  8. Table questions (AP style)
  9. Common mistakes
  10. Practice questions
  11. Frequently asked questions
  12. Key takeaways
  13. Related guides

Why you need special rules

It is tempting to think the derivative of a product is the product of the derivatives. It is not. Take f(x) = x · x = x². Its derivative is 2x. But multiplying the derivatives of x and x gives 1 × 1 = 1, which is wrong. Products and quotients need their own rules.

The product rule

If y = u · v, where u and v are both functions of x, then

dy/dx = u'v + uv'

In words: derivative of the first times the second, plus the first times the derivative of the second. The order of the two terms does not matter, because they are added.

Where the product rule comes from

Picture a rectangle with sides u and v, so its area is uv. If u grows by a small amount Δu and v grows by Δv, the area grows by a strip vΔu along one side, a strip uΔv along the other, and a tiny corner ΔuΔv. Divide by Δx and let it shrink: the strips give u'v and uv', while the corner disappears because it is the product of two small quantities. That is exactly the product rule.

The quotient rule

If y = u/v, then

dy/dx = (u'v − uv') / v²

A well-known memory aid, with u as “high” and v as “low”: “low d-high minus high d-low, over the square of what's below”. Unlike the product rule, the order matters here: the subtraction must be u'v − uv', or the answer has the wrong sign.

The quotient rule can be derived from the product rule. Write y = u · v−1, then use the product rule and the chain rule: y' = u'v−1 − uv'v−2 = (u'v − uv')/v².

Worked examples: product rule

Example 1: a polynomial times a trig function

Differentiate y = x² sin x.

Example 2: an exponential

Differentiate y = x³ex.

Example 3: with the chain rule

Differentiate y = x(2x + 1)4.

Example 4: three factors

Differentiate y = x ex sin x.

Worked examples: quotient rule

Example 5: a rational function

Differentiate y = (x + 1)/(x − 2).

Example 6: tan x

Use the quotient rule to show that the derivative of tan x is sec²x.

Example 7: an exponential quotient

Differentiate y = e2x/x.

When to rewrite instead

The quotient rule is not always the fastest route. If the denominator is a single term, split the fraction or use negative powers. For y = (x² + 3)/x, write y = x + 3x−1, so dy/dx = 1 − 3x−2. If the numerator is a constant, use the chain rule: the derivative of 5/(x² + 1) = 5(x² + 1)−1 is −10x/(x² + 1)². Save the quotient rule for genuine fractions where both top and bottom contain x.

Table questions (AP style)

AP Calculus often gives a table of f, f', g and g' values at certain points and asks for the derivative of a product or quotient at one of them. Substitute the numbers directly into the rule.

Example 8: from a table

f(2) = 3, f'(2) = −1, g(2) = 4, g'(2) = 5. Find h'(2) for h = fg and for k = f/g.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Differentiate y = x² ln x.

Show answer
2x ln x + x = x(2 ln x + 1).

Q2. Differentiate y = (3x − 1)/(x + 4).

Show answer
(3(x + 4) − (3x − 1))/(x + 4)² = 13/(x + 4)².

Q3. Differentiate y = ex cos x.

Show answer
ex(cos x − sin x).

Q4. Differentiate y = x/(x² + 1).

Show answer
(x² + 1 − 2x²)/(x² + 1)² = (1 − x²)/(x² + 1)².

Q5. f(1) = 2, f'(1) = 3, g(1) = −1, g'(1) = 4. Find (fg)'(1).

Show answer
3(−1) + 2(4) = 5.

Frequently asked questions

Are the product and quotient rules on AP Calculus AB?

Yes. Both are in Unit 2 of AP Calculus AB and BC, and they are used throughout the rest of the course.

Is the quotient rule in the A level formula booklet?

Most A level Maths formula booklets include the quotient rule. The product rule is usually not given, so you need to learn it.

Key takeaways