Skip to content
Glacius
CalculusConcept reference

Product rule

The derivative of a product is the derivative of the first factor times the second, plus the first factor times the derivative of the second.

On this page 7 sections
  1. Overview
  2. When both factors vary, a product changes in two ways
  3. For y=(x^2+1)(x+2), use each factor once unchanged and once differentiated
  4. At one input, suppose u=4, v=3, uprime=4, vprime=1
  5. Key takeaway
  6. Sources & further reading
  7. Concept connections

01When both factors vary, a product changes in two ways#

When both factors vary, a product changes in two ways. This area model starts at u=3u=3, v=2v=2 and increases each side by 0.50.5.

Area diagram at 50 pixels per unit. Original rectangle u=3, v=2 is 150 by 100 pixels. Increasing each side by 0.5 adds a 25 by 100 right strip, a 150 by 25 top strip, and a 25 by 25 corner. The three added areas are 1, 1.5 and 0.25.Area diagram at 50 pixels per unit. Original rectangle u=3, v=2 is 150 by 100 pixels. Increasing each side by 0.5 adds a 25 by 100 right strip, a 150 by 25 top strip, and a 25 by 25 corner. The three added areas are 1, 1.5 and 0.25.
Figure 1Area diagram at 50 pixels per unit. Original rectangle u=3, v=2 is 150 by 100 pixels. Increasing each side by 0.5 adds a 25 by 100 right strip, a 150 by 25 top strip, and a 25 by 25 corner. The three added areas are 1, 1.5 and 0.25.
Link to this figure ↗Download SVGDownload PNG

For P=uvP=uv, increase its factors by Δu\Delta u and Δv\Delta v. Expand the new product, then subtract uvuv:

ΔP=vΔu+uΔv+ΔuΔv\begin{aligned}\Delta P&=v\Delta u+u\Delta v\\&\quad+\Delta u\Delta v\end{aligned}

The finite change includes the corner ΔuΔv\Delta u\Delta v.

For P=uvP=uv, divide its change by hh. For differentiable factors, Δu/hu\Delta u/h\to u\prime, Δv/hv\Delta v/h\to v\prime, and Δv0\Delta v\to0. The corner term becomes (Δu/h)Δv0(\Delta u/h)\Delta v\to0.

P=uv+uvP\prime=u\prime v+uv\prime
Check your reasoning

P(x)=u(x)v(x)P(x)=u(x)v(x). At x=1x=1: u=3u=3, v=5v=5, u=2u\prime=2, v=1v\prime=-1. Find PP\prime at this input.

Show answer and explanation
7

Cross each rate with the other value: 2(5)+3(1)=72(5)+3(-1)=7.

02For y=(x^2+1)(x+2), use each factor once unchanged and once differentiated#

For y=(x2+1)(x+2)y=(x^2+1)(x+2), use each factor once unchanged and once differentiated.

y=2x(x+2)+(x2+1)\begin{aligned}y\prime&=2x(x+2)\\&\quad+(x^2+1)\end{aligned}

Expanding gives 3x2+4x+13x^2+4x+1. Both approaches give the same derivative.

Check your reasoning

y=(x2+3)(x+1)y=(x^{2}+3)(x+1). Find y(x)y\prime(x).

  1. A2x2x
  2. B3x2+2x+33x^{2}+2x+3
  3. C2x2+2x2x^{2}+2x
Show answer and explanation
3x2+2x+33x^{2}+2x+3

uv=(2x)(x+1)u\prime v=(2x)(x+1). Also, uv=(x2+3)(1)uv\prime=(x^{2}+3)(1). Add these contributions.

03At one input, suppose u=4, v=3, uprime=4, vprime=1#

At one input, suppose u=4u=4, v=3v=3, u=4u\prime=4, v=1v\prime=1. The product rate is 4(3)+4(1)=164(3)+4(1)=16. Multiplying only the rates would give 44, losing both factor values.

If u=0u\prime=0 at an input, only the first contribution vanishes. The other contribution uvuv\prime can still be nonzero.

Check your reasoning

P(x)=u(x)v(x)P(x)=u(x)v(x). At x=4x=4: u=7u=7, v=2v=2, u=0u\prime=0, v=3v\prime=3. A learner multiplies the two rates. Repair PP\prime at this input.

Show answer and explanation
21

Cross each rate with the other value: 0(2)+7(3)=210(2)+7(3)=21.

Key takeaway

Add both cross contributions: u′v + uv′.

  • Differentiate a product of two scalar functions.

Sources & further reading

  1. [1]
    OpenStax Calculus Volume 1, 3.3: Product ruleOpenStax Calculus Volume 1 · Book

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Product rule.” Math behind ML. /learn/c-product