Product Rule Equation Solver with Worked Examples

The product rule differentiates a product: . Type “differentiate x^2*sin(x)” and the solver applies it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

  • the power rule
  • derivatives of sin x and eˣ
  • splitting a product into u and v

What Product rule means

When two functions are multiplied, the derivative is not the product of the derivatives. Instead, differentiate each in turn, keeping the other one unchanged, and add.

For , take and : .

The rule is also written . Its partner is the quotient rule, composite functions need the chain rule, and it was derived from first principles.

This page is part of Differentiation in Calculus. Topics that work alongside it: Quotient rule, Chain rule, Integration by parts, Implicit differentiation (rule), Connected rates of change and Inverse function derivative.

What is it used for?

The product rule differentiates two functions multiplied together: (uv)′ = u′v + uv′.

How to use product rule

  1. Name and .
  2. Find and .
  3. Write .
  4. Simplify.

Graph

y = x sin x and its derivative01234567-6-4-20246y = x sin x and its derivativexyy = x sin xdy/dx = sin x + x cos xGraph with x from 0 to 7 and y from -7 to 7. Shows the curve y = x sin x; the curve dy/dx = sin x + x cos x.

Wherever the derivative is zero, the original curve has a turning point.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: x² sin x

Differentiate .

Derivative
Answer
x2cos⁡(x)+2xsin⁡(x)x^{2} \cos\left(x\right)+2 x \sin\left(x\right)
  1. Differentiate with respect to
  2. Rules used
    power rule: , product rule
  3. Combine the terms

Example 2: x² eˣ

Differentiate .

Derivative
Answer
2exx+exx22 e^{x} x+e^{x} x^{2}
  1. Differentiate with respect to
  2. Rules used
    power rule: , product rule
  3. Combine the terms

Example 3: x times cos x

Differentiate x cos x.

Derivative
Answer
cos⁡(x)−xsin⁡(x)\cos\left(x\right)-x \sin\left(x\right)
  1. Differentiate with respect to
  2. Rules used
    product rule
  3. Combine the terms

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

x² sin x

d/dx = 2x sin x + x² cos x

u′v + uv′.

x² eˣ

d/dx = (2x + x²)eˣ

At x = 1: 3e ≈ 8.15.

x³ ln x

d/dx = 3x² ln x + x²

At x = 1: 1.

The formula

(uv)′ = u′v + uv′

Differentiate one at a time.

Word problems

For y = uv, dy/dx = u′v + uv′: differentiate each factor in turn and add.

x² sin x

Differentiate x² sin x and find the value at x = π to 2 decimal places.

  1. u = x², v = sin xu′ = 2x, v′ = cos x
  2. Rule2x sin x + x² cos x
  3. Substitute0 + π² × (−1) = −9.87
  4. Check: ✓−9.87.

x² eˣ

Differentiate x² eˣ and find the value at x = 1 to 2 decimal places.

  1. u = x², v = eˣu′ = 2x, v′ = eˣ
  2. Rule2x eˣ + x² eˣ = (2x + x²)eˣ
  3. Substitute3e = 8.15
  4. Check: ✓8.15.

x³ ln x Higher

Differentiate x³ ln x and find the value at x = 1.

  1. Rule3x² ln x + x³ × (1/x) = 3x² ln x + x²
  2. Substitute0 + 1
  3. Check: ln 1 = 0 ✓1.

A numerical check Higher

u = 2 at x = 1 with u′ = 3, v = 4, v′ = 1. Find (uv)′.

  1. Ruleu′v + uv′
  2. Substitute3 × 4 + 2 × 1 = 14
  3. Check: ✓14.

Common mistakes

Multiplying the derivatives

(uv)′ = u′v′ ✗

u′v + uv′ ✓

The product rule has two terms.

Differentiating only one factor

(x² sin x)′ = 2x sin x ✗

2x sin x + x² cos x ✓

Differentiate both.

Sign error

(x² cos x)′ = 2x cos x + x² sin x ✗

2x cos x − x² sin x ✓

d/dx cos x = −sin x.

Not simplifying

no tidy-up ✗

factor out eˣ ✓

Factorising helps.

Exam tips

  1. u′v + uv′.
  2. Name u and v.
  3. Mind signs.
  4. Factorise at the end.
  5. Check numerically.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Differentiate x eˣ at x = 0 Foundation

1

2. Differentiate x sin x at x = 0 Foundation

0

3. Differentiate x² (x + 1) at x = 1 Foundation

5

4. Differentiate x cos x at x = π to 2 decimal places Higher

−1

5. Differentiate x² eˣ at x = 2 to 2 decimal places Higher

59.11

6. u = 3, u′ = 2, v = 5, v′ = −1. Find (uv)′ Higher

7

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Product rule
(uv)′ = u′v + uv′.
Factor
One part of a product.
u, v
The two functions.
Derivative
Gradient function.
Simplify
Combine and factorise.
Numerical check
Compare with a small step.

Frequently asked questions

What is the product rule?

(uv)′ = u′v + uv′.

When do I use it?

When two functions are multiplied.

Is (uv)′ = u′v′?

No.

How do I check?

Compare with a numerical gradient.

Which page covers the chain rule?

chain rule.

Which page covers the quotient rule?

quotient rule.

More in Calculus and the formula sheets.