Skip to content
Educora
AdvancedGrades 10–1125 min63 / 82

Derivatives of sums, products and quotients

The derivatives of sums, differences, constant multiples, products and quotients: where the rules come from, how to apply them and when it pays to simplify first — with many worked examples.

Check yourself
In this lesson you will learn
  • Differentiate any polynomial term by term with the sum, difference and constant-factor rules, and evaluate a derivative at a point
  • Apply the product rule to two and three factors and explain why the derivative of a product is not u′ · v′
  • Differentiate fractions with the quotient rule and derive the derivatives of tan x and cot x
  • Recognise when simplifying first is faster and check an answer in two ways

Leyla bakes shekerbura, the traditional Azerbaijani Novruz pastry, and sells it by the box. Her weekly revenue is the price of a box times the number of boxes sold: R = p · q. As Novruz approaches, both grow: the price rises by 0.5 manat a week and sales by 5 boxes a week. How fast does her revenue grow? Simply multiplying the two rates (0.5 · 5 = 2.5) is the first idea that comes to mind — and it is wrong. Sums, products and quotients have their own differentiation rules; in this lesson you will learn them and solve Leyla’s problem too.

In the previous lesson you learned the table of derivatives: we know the derivatives of basic functions such as xⁿ, √x, eˣ, ln x, sin x and cos x. In problems, however, functions are built from these “bricks” by adding, subtracting, multiplying and dividing: 3x² − 5x, x² · sin x, ln x / x. A function of a function (such as sin 2x or (3x − 2)⁵) is the topic of the next lesson, the chain rule.

Definition
Differentiation rules

Formulas that express the derivative of a sum, a difference, a constant multiple, a product or a quotient of functions through the functions themselves and their derivatives. With them you can differentiate any expression built from table functions by the four arithmetic operations.

Sums, differences and constant factors

Why is the derivative of a sum the sum of the derivatives? Let f = u + v. When the argument changes by Δx, u changes by Δu and v by Δv, so the sum changes by Δf = Δu + Δv. Divide both sides by Δx: Δf / Δx = Δu / Δx + Δv / Δx. As Δx → 0 the ratios on the right approach u′ and v′, hence f′ = u′ + v′. A constant factor works the same way: the increment of C · u is C · Δu, so C comes out in front of the derivative.

(u ± v)′ = u′ ± v′
where:
  • u, vdifferentiable functions of x
  • u′, v′their derivatives

The derivative of a sum (difference) is the sum (difference) of the derivatives. The rule holds for any number of terms: (u₁ + u₂ + … + uₙ)′ = u₁′ + u₂′ + … + uₙ′.

The derivative of a sum

Find the derivative: 1) y = x³ + sin x; 2) y = eˣ − ln x; 3) y = √x + 1/x − 5.

Show solution
1) y′ = (x³)′ + (sin x)′ = 3x² + cos x.
2) y′ = (eˣ)′ − (ln x)′ = eˣ − 1/x.
3) y′ = (√x)′ + (1/x)′ − (5)′ = 1/(2√x) − 1/x² − 0 = 1/(2√x) − 1/x².
Each term is differentiated separately; the derivative of a constant term is 0, so it disappears.
(C · u)′ = C · u′
where:
  • Ca constant (for example 5, −3, π, 1/2)
  • ua differentiable function of x

A constant factor comes out in front of the derivative. A constant in the denominator is a factor too: x³/6 = (1/6) · x³.

Constant factors

Find the derivative: 1) y = 7x⁴; 2) y = −3 cos x; 3) y = x³/6; 4) y = 5/x.

Show solution
1) y′ = 7 · (x⁴)′ = 7 · 4x³ = 28x³.
2) y′ = −3 · (cos x)′ = −3 · (−sin x) = 3 sin x.
3) y = (1/6) · x³, y′ = (1/6) · 3x² = x²/2.
4) y = 5 · (1/x), y′ = 5 · (−1/x²) = −5/x².
Compare: (x² + 5)′ = 2x — a constant term disappears; (5x²)′ = 10x — a constant factor stays.
Definition
Linearity of the derivative

The sum and constant-factor rules taken together: the derivative of functions added with constant coefficients is the sum of their derivatives with the same coefficients. For example, the derivative of 3 · sin x − 2 · eˣ is 3 · cos x − 2 · eˣ.

(aₙxⁿ + … + a₂x² + a₁x + a₀)′ = n · aₙxⁿ⁻¹ + … + 2a₂x + a₁
where:
  • aₙ, …, a₁, a₀the coefficients of the polynomial (constants); a₀ is the constant term
  • nthe degree of the polynomial (a natural number)

A polynomial is differentiated term by term: apply (xᵏ)′ = k · xᵏ⁻¹ to every term and keep its coefficient, while the constant term a₀ disappears. The degree drops by one.

Polynomials, roots and fractions

Find the derivative: 1) y = 4x³ − 5x² + 7x − 1; 2) y = 2x⁵ − x³/3 + 6; 3) y = 3x⁴ − 2√x + 5/x − 7; 4) y = 6∛x − 4/x² + x/2. 5) For f(x) = x³ − 6x² + 5, find f′(2) and f′(−1).

Show solution
1) y′ = 4 · 3x² − 5 · 2x + 7 − 0 = 12x² − 10x + 7.
2) y′ = 2 · 5x⁴ − (1/3) · 3x² + 0 = 10x⁴ − x².
3) √x = x^(1/2), 1/x = x⁻¹: y′ = 12x³ − 2 · 1/(2√x) + 5 · (−1/x²) − 0 = 12x³ − 1/√x − 5/x².
4) First rewrite with powers: y = 6x^(1/3) − 4x⁻² + (1/2)x.
y′ = 6 · (1/3) · x^(−2/3) − 4 · (−2) · x⁻³ + 1/2 = 2/∛(x²) + 8/x³ + 1/2.
5) f′(x) = 3x² − 12x, f′(2) = 12 − 24 = −12, f′(−1) = 3 + 12 = 15.
Derivative first, value second: substituting x = 2 before differentiating would give the derivative of the number f(2), that is 0.

The product rule

The product rule is easy to see on a rectangle. A rectangle with sides u and v has area S = u · v. When the argument grows by Δx, the sides grow by Δu and Δv, and three pieces are added to the area: a strip Δu · v, a strip u · Δv and a small corner Δu · Δv. So ΔS = Δu · v + u · Δv + Δu · Δv.

u · vΔu · vu · ΔvΔu·ΔvuΔuvΔv
The increase in area: ΔS = Δu · v + u · Δv + Δu · Δv. After dividing by Δx and letting Δx → 0, the strips give u′ · v and u · v′, and the corner vanishes.

Now divide by Δx: ΔS / Δx = (Δu / Δx) · v + u · (Δv / Δx) + (Δu / Δx) · Δv. As Δx → 0 the first two terms approach u′ · v and u · v′. In the third, Δu / Δx → u′ but Δv → 0, so it tends to zero. The small corner vanishes, and what is left is the product rule.

(u · v)′ = u′ · v + u · v′
where:
  • u, vthe factors — differentiable functions of x
  • u′, v′the derivatives of the factors

The product rule: “the derivative of the first times the second, plus the first times the derivative of the second”. The two terms may be swapped: u · v′ + u′ · v is also correct.

The product rule with table functions

Find the derivative: 1) y = x² · sin x; 2) y = x³ · ln x; 3) y = eˣ · cos x; 4) y = x · eˣ, then compute y′(−1).

Show solution
1) u = x², v = sin x, u′ = 2x, v′ = cos x.
y′ = 2x · sin x + x² · cos x.
2) u = x³, v = ln x, u′ = 3x², v′ = 1/x.
y′ = 3x² · ln x + x³ · (1/x) = 3x² ln x + x² = x²(3 ln x + 1).
3) y′ = (eˣ)′ · cos x + eˣ · (cos x)′ = eˣ cos x − eˣ sin x = eˣ(cos x − sin x).
4) y′ = 1 · eˣ + x · eˣ = (x + 1)eˣ, y′(−1) = 0 · e⁻¹ = 0.
Taking out the common factor pays off: the sign of the derivative is then easy to see.
Checking by expanding

Find the derivative of y = (x² + 1)(x − 3) in two ways and compute y′(1).

Show solution
Method 1 (product rule): u = x² + 1, v = x − 3, u′ = 2x, v′ = 1.
y′ = 2x · (x − 3) + (x² + 1) · 1 = 2x² − 6x + x² + 1 = 3x² − 6x + 1.
Method 2 (expand first): y = x³ − 3x² + x − 3, y′ = 3x² − 6x + 1.
The answers agree. y′(1) = 3 − 6 + 1 = −2.
The wrong “rule” u′ · v′ would give 2x · 1 = 2x — a completely different function.

Why is (u · v)′ ≠ u′ · v′? The simplest check: x² = x · x. The correct answer is (x²)′ = 2x, while “multiplying the derivatives” would give 1 · 1 = 1. The picture shows the reason too: u′ · v′ appears only in the small corner (Δu · Δv / Δx ≈ u′ · v′ · Δx), and exactly this piece vanishes as Δx → 0. The rule comes from the two strips that remain.

Interactive
Loading simulation…
The first graph is f(x) = x² · sin x. The slope of the second line comes from the product rule, f′(a) = 2a · sin a + a² · cos a, and this line touches the graph at the point with x-coordinate a. The slope of the third line uses the wrong “rule” 2a · cos a, and for most values of a this line cuts the graph. Move a and compare.

For three factors, apply the rule twice, first treating u · v as one factor: (u · v · w)′ = (u · v)′ · w + (u · v) · w′. Expanding the first bracket as well gives the formula below.

(u · v · w)′ = u′ · v · w + u · v′ · w + u · v · w′
where:
  • u, v, wthree differentiable factors, functions of x

As many terms as factors: in each term exactly one factor is differentiated, in turn, and the others stay as they are.

Three factors

1) Differentiate y = x(x + 1)(x + 2) with the three-factor rule and check by expanding. 2) Differentiate y = x · eˣ · sin x.

Show solution
1) u = x, v = x + 1, w = x + 2; u′ = v′ = w′ = 1.
y′ = (x + 1)(x + 2) + x(x + 2) + x(x + 1) = (x² + 3x + 2) + (x² + 2x) + (x² + x) = 3x² + 6x + 2.
Check (by expanding): y = x³ + 3x² + 2x, y′ = 3x² + 6x + 2 — the same answer.
2) y′ = 1 · eˣ · sin x + x · eˣ · sin x + x · eˣ · cos x = eˣ(sin x + x sin x + x cos x).
Leyla’s revenue

Right now a box of shekerbura costs p = 12 manat and q = 40 boxes are sold a week. The price rises by 0.5 manat a week and sales by 5 boxes a week: p′ = 0.5, q′ = 5. How fast is the weekly revenue R = p · q growing?

Show solution
1) Product rule: R′ = p′ · q + p · q′.
2) R′ = 0.5 · 40 + 12 · 5 = 20 + 60 = 80 (manat per week).
3) 20 manat come from the rising price and 60 manat from the rising sales.
Answer: the revenue grows by about 80 manat a week. The product of the rates, 0.5 · 5 = 2.5, would be a wrong answer 32 times too small.
Check: if the price and sales keep these rates for a week, the revenue goes from 12 · 40 = 480 manat to 12.5 · 45 = 562.5 manat, an increase of 82.5 manat. The difference from 80 (2.5 manat) is exactly the small corner of the rectangle: Δp · Δq = 0.5 · 5.

The quotient rule

The quotient rule follows from the product rule. Let q = u / v; then u = q · v. By the product rule, u′ = q′ · v + q · v′. Hence q′ = (u′ − q · v′) / v = (u′ − (u / v) · v′) / v. Multiplying the numerator and the denominator by v gives the quotient rule.

(u / v)′ = (u′ · v − u · v′) / v²(u / v)′ = (u′ · v − u · v′) / v²
where:
  • uthe numerator, a differentiable function of x
  • vthe denominator, v ≠ 0
  • u′, v′the derivatives of the numerator and the denominator

The quotient rule: because of the “−” in the numerator the order matters — the numerator always starts with u′ · v; the denominator is v squared.

The quotient rule in action

Find the derivative: 1) y = (2x + 1)/(x − 3); 2) y = x/(x + 1); 3) y = ln x / x; 4) y = sin x/(1 + cos x).

Show solution
1) u = 2x + 1, v = x − 3, u′ = 2, v′ = 1.
y′ = (2 · (x − 3) − (2x + 1) · 1)/(x − 3)² = (2x − 6 − 2x − 1)/(x − 3)² = −7/(x − 3)².
2) y′ = (1 · (x + 1) − x · 1)/(x + 1)² = 1/(x + 1)².
3) u = ln x, v = x, u′ = 1/x, v′ = 1.
y′ = ((1/x) · x − ln x · 1)/x² = (1 − ln x)/x².
4) y′ = (cos x · (1 + cos x) − sin x · (−sin x))/(1 + cos x)² = (cos x + cos² x + sin² x)/(1 + cos x)² = (1 + cos x)/(1 + cos x)² = 1/(1 + cos x).
In the last step we used the identity sin² x + cos² x = 1.

When the numerator is a constant (u = C), its derivative is zero and the first term of the quotient rule disappears: (C / v)′ = (0 · v − C · v′) / v². For such fractions the short formula is handy.

(1 / v)′ = −v′ / v² (C / v)′ = −C · v′ / v²(1 / v)′ = −v′ / v² (C / v)′ = −C · v′ / v²
where:
  • Ca constant (the numerator)
  • vthe denominator, v ≠ 0
  • v′the derivative of the denominator

The derivative of a fraction with a constant numerator. Note: (C / v)′ ≠ C / v′.

Fractions with a constant numerator

Find the derivative: 1) y = 1/(x² + 1); 2) y = 5/(x − 2); 3) y = 3/(eˣ + 1); 4) y = 1/sin x. 5) Check the table formula (1/x)′ = −1/x².

Show solution
1) v = x² + 1, v′ = 2x: y′ = −2x/(x² + 1)².
2) C = 5, v = x − 2, v′ = 1: y′ = −5/(x − 2)².
3) C = 3, v = eˣ + 1, v′ = eˣ: y′ = −3eˣ/(eˣ + 1)².
4) v = sin x, v′ = cos x: y′ = −cos x / sin² x.
5) v = x, v′ = 1: (1/x)′ = −1/x² — it matches the table.
Deriving the derivatives of tan x and cot x

Knowing that tan x = sin x / cos x and cot x = cos x / sin x, derive the formulas for (tan x)′ and (cot x)′ with the quotient rule. Then evaluate (tan x)′ at x = π/4 and (cot x)′ at x = π/6.

Show solution
1) (tan x)′ = ((sin x)′ · cos x − sin x · (cos x)′)/cos² x = (cos x · cos x + sin x · sin x)/cos² x = (cos² x + sin² x)/cos² x = 1/cos² x (cos x ≠ 0).
2) (cot x)′ = ((cos x)′ · sin x − cos x · (sin x)′)/sin² x = (−sin² x − cos² x)/sin² x = −1/sin² x (sin x ≠ 0).
3) x = π/4: 1/cos²(π/4) = 1/(1/2) = 2. x = π/6: −1/sin²(π/6) = −1/(1/4) = −4.
The Pythagorean identity sin² x + cos² x = 1 turns both numerators into a number. Even if you forget these two rows of the table, you can rebuild them in half a minute.

Simplify first, then differentiate

The rules always give the right answer, but not always by the shortest route. Before differentiating, look at the expression for a second — perhaps it can be turned into a sum that needs neither the product nor the quotient rule:

  • Expand the brackets if the product consists of two small polynomials: (x + 2)(x − 5) = x² − 3x − 10, whose derivative is 2x − 3.
  • Split the fraction term by term if the denominator is a single term: (x² + 1)/x = x + 1/x.
  • Write roots and 1/xⁿ as powers: √x = x^(1/2), 1/x³ = x⁻³, 1/√x = x^(−1/2).
Two ways, one answer

Find the derivative first with a rule, then by simplifying: 1) y = (x² + 1)/x; 2) y = (x³ − 2√x)/x; 3) y = (x² − 4)/(x − 2).

Show solution
1) Quotient rule: y′ = (2x · x − (x² + 1) · 1)/x² = (x² − 1)/x².
By simplifying: y = x + x⁻¹, y′ = 1 − 1/x² = (x² − 1)/x². The same answer.
2) Quotient rule: y′ = ((3x² − 1/√x) · x − (x³ − 2√x) · 1)/x² = (3x³ − √x − x³ + 2√x)/x² = (2x³ + √x)/x² = 2x + 1/(x√x).
By simplifying: y = x² − 2x^(−1/2), y′ = 2x − 2 · (−1/2) · x^(−3/2) = 2x + 1/(x√x). The second way is much shorter.
3) For x ≠ 2, y = (x − 2)(x + 2)/(x − 2) = x + 2, so y′ = 1.
The quotient rule confirms it: y′ = (2x(x − 2) − (x² − 4))/(x − 2)² = (x² − 4x + 4)/(x − 2)² = 1.

Whenever you differentiate an expression, work in this order:

  1. 1
    Recognise the structure

    If you were to evaluate the expression, what would the last operation be? Addition or subtraction — the sum rule; multiplication — the product rule; division — the quotient rule. Take constant factors out at once.

  2. 2
    Look for a simplification

    Expand brackets, split a fraction with a one-term denominator, write roots as powers. This often makes the product and quotient rules unnecessary.

  3. 3
    Write u, v, u′, v′ separately

    If a product or quotient remains, write down four expressions: u, v and their derivatives u′, v′ from the table.

  4. 4
    Substitute into the formula

    Put every expression in brackets; in a quotient the numerator starts with u′ · v and the denominator is v².

  5. 5
    Simplify and check

    Expand, collect like terms, take out the common factor. Check the result in a second way or at a simple point.

Mixed practice

Find the derivative: 1) y = (x² − 3x) · eˣ; 2) y = (1 + ln x)/x; 3) y = x · sin x + cos x; 4) y = (x + 1)/√x. 5) For f(x) = eˣ · (x² − 2x + 2), find f′(1). 6) For f(x) = x²/(x − 1), find f′(3).

Show solution
1) Product rule: y′ = (2x − 3) · eˣ + (x² − 3x) · eˣ = (x² − x − 3)eˣ.
2) Quotient rule: y′ = ((1/x) · x − (1 + ln x) · 1)/x² = (1 − 1 − ln x)/x² = −ln x / x².
3) Sum and product rules: y′ = (sin x + x cos x) + (−sin x) = x cos x.
4) Split first: y = x^(1/2) + x^(−1/2), y′ = 1/(2√x) − 1/(2x√x) = (x − 1)/(2x√x).
5) f′(x) = eˣ(x² − 2x + 2) + eˣ(2x − 2) = x² · eˣ, so f′(1) = e ≈ 2.72.
6) f′(x) = (2x(x − 1) − x² · 1)/(x − 1)² = (x² − 2x)/(x − 1)², so f′(3) = (9 − 6)/2² = 3/4.
Check yourself: the value of a derivative
  1. 1.If f(x) = 4x³ − 5x² + 7x − 1, then f′(1) =
  2. 2.If f(x) = x · eˣ, then f′(0) =
  3. 3.If f(x) = (x² + 1)(x − 3), then f′(3) =
  4. 4.If f(x) = (2x + 1)/(x − 3), then f′(4) =
  5. 5.If f(x) = x/(x + 1), then f′(1) =
  6. 6.If f(x) = tan x, then f′(π/3) =

The rules of this lesson cover only adding, subtracting, multiplying and dividing. In functions such as sin 2x, e^(3x) or (3x − 2)⁵ one function sits inside another: you could expand (3x − 2)⁵ and differentiate term by term, but that takes very long. In the next lesson you will learn the chain rule, which differentiates such functions in one step.

Key points

  • (u ± v)′ = u′ ± v′ and (C · u)′ = C · u′: a polynomial is differentiated term by term, the constant term disappears, a constant factor stays.
  • (u · v)′ = u′ · v + u · v′, and (u · v)′ ≠ u′ · v′. Three factors give three terms, each with one factor differentiated.
  • (u / v)′ = (u′ · v − u · v′) / v²: the numerator starts with u′ · v, and the denominator is squared.
  • With a constant numerator (C / v)′ = −C · v′ / v²; the quotient rule gives (tan x)′ = 1 / cos² x and (cot x)′ = −1 / sin² x.
  • Simplify first when you can: expand, split a fraction along its numerator, write roots as powers — both routes must give the same answer.
  • To get the value of a derivative at a point, find f′(x) first and only then substitute x₀.

Check yourself

12 questions. Every correct answer earns XP.

1 / 12
Which formula is the product rule?