Product Rule Calculator
This Product Rule Calculator differentiates two functions multiplied together, and shows the working line by line. The derivative of a product is not the product of the derivatives, so each factor takes a turn being differentiated while the other is left alone, and the two results are added. Identifying the factors first is what keeps the terms straight. Following the same pattern every time stops the two halves being run together.
Step-by-step method
- Set up the problem.
- Write the product rule formula.
- Differentiate the first factor.
- Differentiate the second factor.
- Substitute into the product rule formula.
- Simplify the result.
Formula: Product Rule
This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.
Useful Tips to Remember
The product rule says \((uv)' = u'v + uv'\). The derivative of a product is not the product of the derivatives, which is the most common mistake. Choose \(u\) and \(v\) clearly, find each derivative, and then put them into the formula. Simplify the result by factoring out any common terms.
Required knowledge
- How to differentiate each part on its own, covered in the Derivative Calculator.
- How to expand and simplify an expression, covered in the Simplifying Algebraic Expressions Calculator.
Where Is the Product Rule Used?
The product rule differentiates two functions multiplied together, using \((uv)' = u'v + uv'\). It is needed whenever a quantity is the product of two changing parts, such as revenue being price times the number sold, where both can change. In physics, momentum and power are products that change over time, and in biology, a population's total mass depends on both the number of animals and their average size. The rule shows how each part's change contributes to the change in the whole.
- Finding how revenue changes when both price and sales change
- Differentiating functions like \(x^2 \sin x\) and \(x e^x\)
- Working out the rate of change of momentum and power
- Modelling total biomass from population and average size
- Finding how area changes when both sides of a rectangle grow
Product Rule Practice Problems
Example 1 differentiates \((x^2 + 1)(x^3 - 2x)\), and Example 2 differentiates \(x^2\sin x\). Try choosing \(u\) and \(v\) yourself before opening each example. For two more free worked examples, check out the Product Rule Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the product rule formula.
- Differentiate the first factor.
- Differentiate the second factor.
- Substitute into the product rule formula.
- Simplify the result.
Formula
Formula: Product Rule
This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.
Step 1
Step 1 - Set up the two factors f(x) and g(x).
In this problem: The first factor is \(x^{2} + 1\) and the second factor is \(x^{3} - 2 x\).
Step 2
Step 2 - Write the product rule formula.
In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.
Step 3
Step 3 - Differentiate the first factor.
In this problem: Differentiate \(x^{2} + 1\) to get \(2 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{2}\), \(1\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(1\).
In this problem: The separated term is \(1\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(1\). This expression does not contain \(x\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(1\) is constant, its derivative is \(0\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Differentiate the second factor.
In this problem: Differentiate \(x^{3} - 2 x\) to get \(3 x^{2} - 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the difference rule formula.
- Split the derivative across the subtraction signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the difference.
In this problem: We are given a difference. The separated terms are \(x^{3}\), \(2 x\).
Step 2
Step 2 - Write the difference rule formula.
In this problem: The difference rule says the derivative of a difference is the difference of the derivatives.
Step 3
Step 3 - Split the derivative across the subtraction signs.
In this problem: Apply the derivative to each separated term, keeping each sign.
Step 4a
Step 4a - Differentiate the separated term \(x^{3}\).
In this problem: The separated term is \(x^{3}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{3}\). This is a power of \(x\), so the exponent is \(n = 3\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 3\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(3{x}^{2}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(2 x\).
In this problem: The separated term is \(2 x\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(2\) times \(x\). Rewrite the variable part as \(x^{1}\), so the power rule can be used with exponent \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(2\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(2 x^{1}\). The constant coefficient is \(2\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(2\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Use the rewritten power form from Step 1. Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(2\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(2\). This gives \(2\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, keeping the signs, then simplify.
Final Answer
Step 5
Step 5 - Substitute into the product rule formula.
In this problem: Substitute the factors and their derivatives into the formula.
Step 6
Step 6 - Simplify the result.
In this problem: Expand the products and combine like terms.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the product rule formula.
- Differentiate the first factor.
- Differentiate the second factor.
- Substitute into the product rule formula.
- Simplify the result.
Formula
Formula: Product Rule
This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.
Step 1
Step 1 - Set up the two factors f(x) and g(x).
In this problem: The first factor is \(x^{2}\) and the second factor is \(\sin{\left(x \right)}\).
Step 2
Step 2 - Write the product rule formula.
In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.
Step 3
Step 3 - Differentiate the first factor.
In this problem: Differentiate \(x^{2}\) to get \(2 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{2}\). This is a power of \(x\), so the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(2{x}^{1}\).
Final Answer
Step 4
Step 4 - Differentiate the second factor.
In this problem: Differentiate \(\sin{\left(x \right)}\) to get \(\cos{\left(x \right)}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for that trigonometric function.
- Apply the derivative rule.
Step 1
Step 1 - Identify the trigonometric function and any constant multiple.
In this problem: The function is \(\sin{\left(x \right)}\).
Step 2
Step 2 - Write the derivative rule for that trigonometric function.
In this problem: The derivative of \(\sin{\left(x \right)}\) is \(\cos{\left(x \right)}\).
Step 3
Step 3 - Apply the derivative rule.
In this problem: Put \(\sin{\left(x \right)}\) into the rule from Step 2.
Final Answer
Step 5
Step 5 - Substitute into the product rule formula.
In this problem: Substitute the factors and their derivatives into the formula.
Step 6
Step 6 - Simplify the result.
In this problem: Expand the products and combine like terms.
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Product Rule Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Product Rule Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.