Product Rule Calculator
Apply the product rule d/dx[u·v] = u'v + uv' to any product of functions — handles two-factor products, triple products, product+chain rule combinations, and partial derivative product rule — with full step-by-step working and color-coded u/v identification throughout every display.
Use * for multiplication, ^ for powers. Auto-detects u and v by splitting on *.
Product Rule Result
Differentiate a product of three functions using d/dx[u·v·w] = u'vw + uv'w + uvw'
Triple Product Rule Result
When one or both factors are composite functions, the chain rule must be applied to differentiate each factor before assembling with the product rule.
Product + Chain Rule Result
Partial derivative product rule: ∂/∂x[u·v] = (∂u/∂x)·v + u·(∂v/∂x). All other variables are treated as constants.
Partial Derivative Product Rule Result
The Product Rule Formula — d/dx[uv] = u'v + uv'
The product rule calculator above applies the product rule d/dx[u·v] = u'v + uv' automatically — handling two-factor products, triple products, product-chain rule combinations, and partial derivative product rule with complete step-by-step working and color-coded u/v identification. Product rule differentiation is one of the four fundamental derivative rules in calculus.
The product rule states: if h(x) = u(x) · v(x), then h'(x) = u'(x)·v(x) + u(x)·v'(x). In plain English: derivative of the first times the second, plus the first times the derivative of the second.
All three notation forms are equivalent — memorise all of them as your product rule solver may present any one:
Memory trick: "Derivative of first times second, plus first times derivative of second." The color coding in our product rule calculator makes this concrete — indigo = u (first factor), teal = v (second factor). Track the colors across u'v + uv' and you never lose which term is which.
When to use the product rule: Any time two functions are multiplied together — not added, subtracted, or composed. d/dx[u + v] uses the sum rule. d/dx[f(g(x))] uses the chain rule. d/dx[u · v] uses the product rule — d/dx[uv] = u'v + uv'.
How to Use the Product Rule — Step-by-Step Method
The four-step method for applying the product rule to any product of functions:
- Step 1 — Identify u and v: Label the first factor u(x) and the second factor v(x). Any split works, but choosing the simpler function as u often simplifies the calculation.
- Step 2 — Differentiate u: Find u'(x) using the appropriate rule (power rule, trig rule, exponential rule, etc.).
- Step 3 — Differentiate v: Find v'(x) using the appropriate rule. If v is composite, apply the chain rule here.
- Step 4 — Substitute into d/dx[uv] = u'v + uv': Write out both terms, simplify, and combine like terms.
Example 1 — Polynomial × Trig: d/dx[x²·sin(x)]
- u = x², v = sin(x)
- u' = 2x (power rule)
- v' = cos(x) (trig rule)
- d/dx[u·v] = u'v + uv' =
(2x)(sin x) + (x²)(cos x) - Answer: 2x·sin(x) + x²·cos(x)
Example 2 — Exponential × Logarithm: d/dx[eˣ·ln(x)]
- u = eˣ, v = ln(x)
- u' = eˣ (exponential rule — eˣ is its own derivative)
- v' = 1/x (log rule)
- d/dx[uv] = u'v + uv' =
eˣ·ln(x) + eˣ·(1/x) - Answer: eˣ·ln(x) + eˣ/x = eˣ(ln(x) + 1/x)
Example 3 — Polynomial × Exponential: d/dx[x³·eˣ]
- u = x³, v = eˣ
- u' = 3x², v' = eˣ
- d/dx[uv] = u'v + uv' =
3x²·eˣ + x³·eˣ = eˣ(3x² + x³) = x²eˣ(3+x) - Answer: x²eˣ(x+3)
Example 4 — Radical × Trig: d/dx[√x·cos(x)]
- u = √x = x^(1/2), v = cos(x)
- u' = (1/2)x^(−1/2) = 1/(2√x), v' = −sin(x)
- d/dx[uv] = u'v + uv' =
cos(x)/(2√x) + √x·(−sin(x)) - Answer: cos(x)/(2√x) − √x·sin(x)
Example 5 — Product Rule vs Expanding: d/dx[(x+1)(x+2)]
Method A — Product Rule:
- u = x+1, v = x+2; u' = 1, v' = 1
- d/dx[uv] = 1·(x+2) + (x+1)·1 = x+2+x+1 = 2x+3
Method B — Expand first:
- (x+1)(x+2) = x²+3x+2
- d/dx[x²+3x+2] = 2x+3 ✓ — same answer confirms both methods are correct
Product Rule Practice Problems — 8 Solved Examples
Eight fully worked product rule practice problems of increasing difficulty. Click each to expand the full solution. These cover every function type you will encounter when using the product rule to find derivative values.
- Identify:
u = x,v = sin(x) - Differentiate:
u' = 1(constant rule),v' = cos(x)(trig rule) - Apply d/dx[uv] = u'v + uv':
1·sin(x) + x·cos(x) - Answer: sin(x) + x·cos(x)
- Verify: check at x=1 numerically ✓
- Identify:
u = x²,v = eˣ - Differentiate:
u' = 2x(power rule),v' = eˣ(exponential rule) - Apply d/dx[uv] = u'v + uv':
2x·eˣ + x²·eˣ - Factor:
eˣ(2x + x²) = xeˣ(2 + x) - Answer: xeˣ(x + 2)
- Identify:
u = x,v = ln(x) - Differentiate:
u' = 1,v' = 1/x(log rule) - Apply d/dx[uv] = u'v + uv':
1·ln(x) + x·(1/x) = ln(x) + 1 - Note: x·(1/x) = 1 simplifies beautifully
- Answer: ln(x) + 1 — the classic product rule result
- Rewrite: √x = x^(1/2)
- Identify:
u = x^(1/2),v = cos(x) - Differentiate:
u' = (1/2)x^(−1/2) = 1/(2√x),v' = −sin(x) - Apply d/dx[uv] = u'v + uv':
cos(x)/(2√x) + x^(1/2)·(−sin(x)) - Answer: cos(x)/(2√x) − √x·sin(x)
- Identify:
u = eˣ,v = sin(x) - Differentiate:
u' = eˣ,v' = cos(x) - Apply d/dx[uv] = u'v + uv':
eˣ·sin(x) + eˣ·cos(x) - Factor:
eˣ(sin(x) + cos(x)) - Answer: eˣ(sin(x) + cos(x))
- Numerical check at x=1.5: eˣ(sin+cos) ≈ 4.482×(0.997+0.071) ≈ 4.787 ✓
- Identify:
u = x²+1,v = x³−3x - Differentiate:
u' = 2x,v' = 3x²−3 - Apply d/dx[uv] = u'v + uv':
2x(x³−3x) + (x²+1)(3x²−3) - Expand term 1:
2x⁴ − 6x² - Expand term 2:
3x⁴ − 3x² + 3x² − 3 = 3x⁴ − 3 - Combine:
2x⁴ − 6x² + 3x⁴ − 3 = 5x⁴ − 6x² − 3 - Answer: 5x⁴ − 6x² − 3
- Triple product rule: d/dx[uvw] = u'vw + uv'w + uvw'
u = x³,v = sin(x),w = eˣu' = 3x²,v' = cos(x),w' = eˣ- Term 1:
3x²·sin(x)·eˣ - Term 2:
x³·cos(x)·eˣ - Term 3:
x³·sin(x)·eˣ - Combine:
eˣ(3x²sin(x) + x³cos(x) + x³sin(x)) - Answer: eˣ(3x²·sin(x) + x³·cos(x) + x³·sin(x))
- Both factors are composite — chain rule needed for each
u = sin(x²)— outer: sin(·), inner: x² →u' = cos(x²)·2x = 2x·cos(x²)v = e^(3x)— outer: eᵘ, inner: 3x →v' = e^(3x)·3 = 3e^(3x)- Apply d/dx[uv] = u'v + uv':
(2x·cos(x²))(e^(3x)) + (sin(x²))(3e^(3x)) - Factor e^(3x):
e^(3x)(2x·cos(x²) + 3·sin(x²)) - Answer: e^(3x)(2x·cos(x²) + 3·sin(x²))
Product Rule vs Chain Rule — When to Use Each
The most common confusion in calculus — knowing which rule to apply and when. The product rule and chain rule are both essential, but they solve entirely different problems.
Decision Guide — Which Rule?
e.g. x² · sin(x)
d/dx[uv] = u'v + uv'
e.g. sin(x²)
d/dx[f(g(x))] = f'(g(x))·g'(x)
e.g. sin(x²) · eˣ
Chain rule inside, product rule outside
Critical distinction: f(x)·g(x) (product — use product rule d/dx[uv]=u'v+uv') vs f(g(x)) (composition — use chain rule). The most common mistake is treating a product as a composition or vice versa. These are completely different operations with completely different rules.
Product vs Composition — Concrete Examples
x² · sin(x)— PRODUCT → product rule → 2x·sin(x) + x²·cos(x)sin(x²)— COMPOSITION → chain rule → cos(x²)·2xx² · sin(x²)— PRODUCT where second factor is composite → both rules: product rule outer, chain rule to get derivative of sin(x²)
Triple Product Rule — Differentiating Three Functions
When three functions are multiplied, apply the product rule twice. The result is the triple product rule, and the pattern is elegant: each term has exactly one differentiated factor.
Derivation: Group (u·v) as one function, apply the product rule to [(uv)·w]:
- d/dx[(uv)·w] = (uv)'·w + (uv)·w'
- Expand (uv)' using the product rule: (uv)' = u'v + uv'
- Substitute: (u'v + uv')w + uvw' = u'vw + uv'w + uvw' ✓
Pattern: For n factors, there are n terms — each with exactly one factor differentiated and n−1 factors undifferentiated. This generalises to the product rule for any number of functions.
Triple Product Example: d/dx[x² · sin(x) · eˣ]
- u = x², v = sin(x), w = eˣ
- u' = 2x, v' = cos(x), w' = eˣ
- Term 1 (u'vw):
2x·sin(x)·eˣ - Term 2 (uv'w):
x²·cos(x)·eˣ - Term 3 (uvw'):
x²·sin(x)·eˣ - Combine:
eˣ(2x·sin(x) + x²·cos(x) + x²·sin(x))
Product Rule with Chain Rule — Composite Factors
When u or v is a composite function, apply the chain rule to find its derivative first, then plug into the product rule d/dx[uv] = u'v + uv'. The order is always: chain rule inside → product rule outside.
Three-step method for composite factor product rule:
- Identify which factor(s) are composite — f(g(x)) form where inner function ≠ plain variable
- Apply chain rule to each composite factor: d/dx[f(g(x))] = f'(g(x))·g'(x)
- Plug the derivatives into d/dx[uv] = u'v + uv' — the product rule formula
Example 1: d/dx[sin(x²) · e^(3x)]
- Factor 1 u = sin(x²) — composite, requires chain rule
- Chain rule: outer = sin(·), inner = x² → u' = cos(x²)·2x = 2x·cos(x²)
- Factor 2 v = e^(3x) — composite, requires chain rule
- Chain rule: outer = eᵘ, inner = 3x → v' = e^(3x)·3 = 3e^(3x)
- Apply d/dx[uv] = u'v + uv':
(2x·cos(x²))(e^(3x)) + (sin(x²))(3e^(3x)) - Answer: e^(3x)(2x·cos(x²) + 3·sin(x²))
Example 2: d/dx[(x²+1)⁵ · ln(2x)]
- u = (x²+1)⁵ — composite power → chain rule: u' = 5(x²+1)⁴·2x = 10x(x²+1)⁴
- v = ln(2x) — composite log → chain rule: v' = (1/(2x))·2 = 1/x
- Apply d/dx[uv] = u'v + uv':
10x(x²+1)⁴·ln(2x) + (x²+1)⁵·(1/x) - Answer: 10x(x²+1)⁴·ln(2x) + (x²+1)⁵/x
Partial Derivative Product Rule
The partial derivative product rule is identical in structure to the standard product rule — only the notation changes. When differentiating ∂/∂x[u(x,y)·v(x,y)], treat all variables other than x as constants throughout.
Example: ∂/∂x[x²y · sin(xy)]
- u = x²y (treat y as constant), v = sin(xy)
- ∂u/∂x = 2xy (y is constant, so ∂/∂x[x²y] = 2xy)
- ∂v/∂x = cos(xy)·y (chain rule — inner function xy has ∂/∂x = y)
- Apply: (2xy)·sin(xy) + (x²y)·y·cos(xy)
- Answer: 2xy·sin(xy) + x²y²·cos(xy)
For the full multivariable derivative tool, see our ∂ Partial Derivative Calculator.
Common Mistakes With the Product Rule
Mistake 1 — Multiplying Derivatives: (uv)' ≠ u'·v' (the most common error)
- ❌ Wrong: d/dx[x²·sin(x)] = 2x·cos(x)
- ✅ Correct: d/dx[x²·sin(x)] = 2x·sin(x) + x²·cos(x) — always TWO terms
- The product rule d/dx[uv] = u'v + uv' gives a SUM, not a product of derivatives
Mistake 2 — Stopping After One Term
- ❌ Wrong: d/dx[x·ln(x)] = 1·ln(x) = ln(x) — missing the second term
- ✅ Correct: d/dx[x·ln(x)] = 1·ln(x) + x·(1/x) = ln(x) + 1 — always write BOTH u'v AND uv'
Mistake 3 — Applying Product Rule to Simple Polynomial Products
- For d/dx[(x+1)(x+2)] — it is faster to expand first: x²+3x+2 → 2x+3
- The product rule gives the same answer but takes longer for simple polynomial × polynomial cases
Mistake 4 — Sign Errors in v'
- ❌ Wrong: d/dx[x²·sin(x)] with v' = sin(x) instead of v' = cos(x)
- ❌ Wrong: d/dx[x·cos(x)] with v' = sin(x) instead of v' = −sin(x)
- ✅ Always verify trig derivatives: d/dx[sin(x)] = cos(x), d/dx[cos(x)] = −sin(x)
Mistake 5 — Not Applying Chain Rule Within Product Rule
- ❌ Wrong: d/dx[sin(x²)·eˣ] with u' = cos(x²) — missing the 2x from chain rule
- ✅ Correct: u = sin(x²) → u' = cos(x²)·2x = 2x·cos(x²) — always check if factor is composite
Additional Worked Examples
Example 6: d/dx[x⁴ · ln(x)]
- u = x⁴, v = ln(x); u' = 4x³, v' = 1/x
- d/dx[uv] = u'v + uv' =
4x³·ln(x) + x⁴·(1/x) = 4x³·ln(x) + x³ - Answer: x³(4·ln(x) + 1)
Example 7: d/dx[(x²+3x) · eˣ]
- u = x²+3x, v = eˣ; u' = 2x+3, v' = eˣ
- d/dx[uv] = u'v + uv' =
(2x+3)eˣ + (x²+3x)eˣ = eˣ(2x+3+x²+3x) - Answer: eˣ(x²+5x+3)
Example 8: d/dx[tan(x) · ln(x)]
- u = tan(x), v = ln(x); u' = sec²(x), v' = 1/x
- d/dx[uv] = u'v + uv' =
sec²(x)·ln(x) + tan(x)/x - Answer: sec²(x)·ln(x) + tan(x)/x
Example 9: d/dx[x·eˣ·sin(x)] (triple product)
- u = x, v = eˣ, w = sin(x)
- u' = 1, v' = eˣ, w' = cos(x)
- d/dx[uvw] =
1·eˣ·sin(x) + x·eˣ·sin(x) + x·eˣ·cos(x) - Answer: eˣ(sin(x) + x·sin(x) + x·cos(x)) = eˣ((1+x)sin(x) + x·cos(x))
Example 10: d/dx[√x · ln(x)] (radical × log)
- u = x^(1/2), v = ln(x); u' = 1/(2√x), v' = 1/x
- d/dx[uv] = u'v + uv' =
ln(x)/(2√x) + √x·(1/x) = ln(x)/(2√x) + 1/√x - Answer: (ln(x) + 2)/(2√x)
Example 11: d/dx[x²·cos(x)·ln(x)] (triple product)
- u = x², v = cos(x), w = ln(x)
- u' = 2x, v' = −sin(x), w' = 1/x
- Term 1:
2x·cos(x)·ln(x) - Term 2:
x²·(−sin(x))·ln(x) = −x²·sin(x)·ln(x) - Term 3:
x²·cos(x)·(1/x) = x·cos(x) - Answer: 2x·cos(x)·ln(x) − x²·sin(x)·ln(x) + x·cos(x)
Frequently Asked Questions
Related Calculators
Share This Tool
Share the Product Rule Calculator with students!