• Foundation
  • About 15 min
  • 5 practice questions

Rules of differentiation: sum, product and quotient

Differentiate sums, constant multiples, products and quotients of standard functions using the rules and the table of standard derivatives.

If something looks wrong, please tell us.

Working from first principles every time would be slow. Instead we combine the standard derivatives using a few rules. With the rules in this lesson and the chain rule in the next, you can differentiate almost any function met at school level in a few lines.

The sum and constant multiple rules

The derivative of a sum is the sum of the derivatives, and a constant multiplier stays where it is: (u + v)′ = u′ + v′, (u − v)′ = u′ − v′ and (ku)′ = k u′. Both follow from the algebra of limits applied to the definition.

Worked example 1. d/dx(3x⁴ − 5x² + 7) = 3(4x³) − 5(2x) + 0 = 12x³ − 10x. Each term is handled separately with the power rule, and the constant 7 disappears.

The product rule

For a product, (uv)′ = u′v + uv′. A common mistake is to write (uv)′ = u′v′, which is wrong: for u = v = x it would give 1 instead of the correct derivative 2x of x².

Worked example 2. d/dx(x² sin x): u = x², v = sin x, u′ = 2x, v′ = cos x. So the derivative is 2x sin x + x² cos x. Similarly d/dx(x eˣ) = eˣ + x eˣ = eˣ(1 + x).

The quotient rule

For a quotient, (u/v)′ = (u′v − uv′)/v², wherever v ≠ 0. The order in the numerator matters: derivative of the top times the bottom comes first.

Worked example 3. d/dx[(x + 1)/(x − 1)]: u = x + 1, v = x − 1, u′ = v′ = 1. The derivative is [(x − 1) − (x + 1)]/(x − 1)² = −2/(x − 1)², for x ≠ 1.

Worked example 4. Derive the derivative of tan x. Write tan x = sin x / cos x. Then the quotient rule gives [cos x × cos x − sin x × (−sin x)]/cos² x = (cos² x + sin² x)/cos² x = 1/cos² x = sec² x.

(u ± v)′ = u′ ± v′, (ku)′ = ku′, (uv)′ = u′v + uv′, (u/v)′ = (u′v − uv′)/v² with v ≠ 0.

Table of standard derivatives

Standard derivatives (x in radians, ln = natural log)
f(x)f′(x)
xⁿn xⁿ⁻¹
sin xcos x
cos x−sin x
tan xsec² x
cot x−cosec² x
sec xsec x tan x
cosec x−cosec x cot x
eˣeˣ
aˣ (a > 0)aˣ ln a
ln x (x > 0)1/x
logₐ x1/(x ln a)

The entries for cot x, sec x and cosec x follow from the quotient rule in the same way as tan x. The rule for aˣ comes from writing aˣ = e^(x ln a), and the rule for logₐ x from logₐ x = ln x / ln a.

Choosing a rule

Before reaching for the quotient rule, see whether the expression simplifies. For example (x² + 1)/x = x + 1/x, whose derivative is 1 − 1/x², found without any quotient rule. Expanding a product of two polynomials is sometimes quicker than the product rule too. Simplify first, differentiate second.

A check with first principles

The product rule can be tested on an example you already know. For y = x × x, the product rule gives 1 × x + x × 1 = 2x, which matches the power rule for x². For y = x² × x it gives 2x × x + x² × 1 = 3x², matching the derivative of x³. Small checks of this kind are a good habit whenever you are unsure whether a rule has been applied correctly.

Key takeaways: split sums term by term and keep constants. Use u′v + uv′ for products and (u′v − uv′)/v² for quotients, with the order of the quotient numerator fixed. Learn the table of standard derivatives, and simplify before differentiating whenever you can.

Check your understanding

  1. 1. What is d/dx(4x³ − 2x + 9)?

    1. 12x² + 9
    2. 4x² − 2
    3. 12x³ − 2
    4. 12x² − 2
    Show answer

    Answer: D. 4 × 3x² − 2 × 1 + 0 = 12x² − 2.

  2. 2. What is d/dx(x³ eˣ)?

    1. 3x² eˣ
    2. x³ eˣ
    3. eˣ(3x² − x³)
    4. eˣ(x³ + 3x²)
    Show answer

    Answer: D. Product rule: 3x² eˣ + x³ eˣ = eˣ(x³ + 3x²).

  3. 3. What is d/dx[x/(x + 1)]?

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

    Answer: A. Quotient rule: [1 × (x + 1) − x × 1]/(x + 1)² = 1/(x + 1)².

  4. 4. What is d/dx(sin x cos x), with x in radians?

    1. sin 2x
    2. cos 2x
    3. −sin x cos x
    4. 1
    Show answer

    Answer: B. Product rule: cos x × cos x + sin x × (−sin x) = cos² x − sin² x = cos 2x.

  5. 5. What is d/dx(ln x + 2ˣ)?

    1. 1/x + x × 2ˣ⁻¹
    2. 1/x + 2ˣ
    3. x + 2ˣ ln 2
    4. 1/x + 2ˣ ln 2
    Show answer

    Answer: D. d/dx(ln x) = 1/x and d/dx(aˣ) = aˣ ln a, so the answer is 1/x + 2ˣ ln 2.

Sign in to keep track of the lessons you finish.

Next lesson → The chain rule

Privacy · Terms · Refunds · Delivery