On this page
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 y = x 2 sin x , take u = x 2 and v = sin x : d x d y = x 2 cos x + 2 x sin x .
The rule is also written u ′ v + u v ′ . 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
Name u and v . Find d x d u and d x d v . Write u d x d v + v d x d u . Simplify.
Graph y = x sin x and its derivative 0 1 2 3 4 5 6 7 -6 -4 -2 0 2 4 6 y = x sin x and its derivative x y y = x sin x dy/dx = sin x + x cos x Graph 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 x 2 sin x .
Try this in the solver: differentiate x^2*sin(x)
Derivative
Answer
x 2 cos ( x ) + 2 x sin ( x ) x^{2} \cos\left(x\right)+2 x \sin\left(x\right) x 2 cos ( x ) + 2 x sin ( x ) Differentiate with respect to x
d x d ( x 2 sin ( x ) )
Rules used
power rule: d x d x n = n x n − 1 , product rule
Combine the terms
d x d ( x 2 sin ( x ) ) = x 2 cos ( x ) + 2 x sin ( x )
Example 2: x² eˣ Differentiate x 2 e x .
Try this in the solver: differentiate x^2*e^x
Derivative
Answer
2 e x x + e x x 2 2 e^{x} x+e^{x} x^{2} 2 e x x + e x x 2 Differentiate with respect to x
d x d ( e x x 2 )
Rules used
power rule: d x d x n = n x n − 1 , product rule
Combine the terms
d x d ( e x x 2 ) = 2 e x x + e x x 2
Example 3: x times cos x Differentiate x cos x.
Try this in the solver: differentiate x*cos(x)
Derivative
Answer
cos ( x ) − x sin ( x ) \cos\left(x\right)-x \sin\left(x\right) cos ( x ) − x sin ( x ) Differentiate with respect to x
d x d ( x cos ( x ) )
Rules used
product rule
Combine the terms
d x d ( x cos ( x ) ) = cos ( x ) − x sin ( x )
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.
u = x², v = sin x u′ = 2x, v′ = cos x Rule 2x sin x + x² cos x Substitute 0 + π² × (−1) = −9.87 Check: ✓ −9.87.
x² eˣ Differentiate x² eˣ and find the value at x = 1 to 2 decimal places.
u = x², v = eˣ u′ = 2x, v′ = eˣ Rule 2x eˣ + x² eˣ = (2x + x²)eˣ Substitute 3e = 8.15 Check: ✓ 8.15.
x³ ln x Higher Differentiate x³ ln x and find the value at x = 1.
Rule 3x² ln x + x³ × (1/x) = 3x² ln x + x² Substitute 0 + 1 Check: ln 1 = 0 ✓ 1.
A numerical check Higher u = 2 at x = 1 with u′ = 3, v = 4, v′ = 1. Find (uv)′.
Rule u′v + uv′ Substitute 3 × 4 + 2 × 1 = 14 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
u′v + uv′.
Name u and v.
Mind signs.
Factorise at the end.
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.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
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.