Product Rule Calculator

Published on: April 27, 2025
Final Answer: Free | Full Steps: Plus

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

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. 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.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

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

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

\(f\left(x\right) = \left(x^{2} + 1\right) \left(x^{3} - 2 x\right)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. 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.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

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\).

\(\begin{gathered} f\left(x\right) = x^{2} + 1 \\ g\left(x\right) = x^{3} - 2 x \end{gathered}\)

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.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x^{2} + 1\) to get \(2 x\).

\(f'\left(x\right) = \frac{d}{dx}\left(x^{2} + 1\right) = 2 x\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(x^{3} - 2 x\) to get \(3 x^{2} - 2\).

\(g'\left(x\right) = \frac{d}{dx}\left(x^{3} - 2 x\right) = 3 x^{2} - 2\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(2 x\right) \cdot \left(x^{3} - 2 x\right) + \left(x^{2} + 1\right) \cdot \left(3 x^{2} - 2\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = 2 x \left(x^{3} - 2 x\right) + \left(x^{2} + 1\right) \left(3 x^{2} - 2\right) = 5 x^{4} - 3 x^{2} - 2\)

Final Answer

\(f'\left(x\right) = 5 x^{4} - 3 x^{2} - 2\)
See Example 2 Hide Example 2

Problem

\(f\left(x\right) = x^{2} \sin{\left(x \right)}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. 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.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

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)}\).

\(\begin{gathered} f\left(x\right) = x^{2} \\ g\left(x\right) = \sin{\left(x \right)} \end{gathered}\)

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.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x^{2}\) to get \(2 x\).

\(f'\left(x\right) = \frac{d}{dx}\left(x^{2}\right) = 2 x\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(\sin{\left(x \right)}\) to get \(\cos{\left(x \right)}\).

\(g'\left(x\right) = \frac{d}{dx}\left(\sin{\left(x \right)}\right) = \cos{\left(x \right)}\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(2 x\right) \cdot \left(\sin{\left(x \right)}\right) + \left(x^{2}\right) \cdot \left(\cos{\left(x \right)}\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = x^{2} \cos{\left(x \right)} + 2 x \sin{\left(x \right)}\)

Final Answer

\(f'\left(x\right) = x^{2} \cos{\left(x \right)} + 2 x \sin{\left(x \right)}\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.