Derivative Calculator

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

This Derivative Calculator differentiates a function step by step. It first identifies which derivative rule fits your input - constant, variable, constant multiple, power, sum, difference, product, quotient, chain, trigonometric, logarithmic, or exponential - and then works through that rule's own method, the same way the dedicated rule calculators on this site do.

Step-by-step method

  1. Set up the function.
  2. Identify the main rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and write the final derivative.

Formula:

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

Example 1: solved with the difference rule.

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

Step 1 - Set up the terms in the difference.

In this problem: We are given a difference. The separated terms are \(3 x^{2}\), \(5 x\), \(4\).

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

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.

\(\frac{d}{dx}\left(f\left(x\right) - g\left(x\right)\right) = \frac{d}{dx}f\left(x\right) - \frac{d}{dx}g\left(x\right)\)

Step 3 - Split the derivative across the subtraction signs.

In this problem: Apply the derivative to each separated term, keeping each sign.

\(\frac{d}{dx}\left(3 x^{2} + 5 x - 4\right) = \frac{d}{dx}\left(3 x^{2}\right) + \frac{d}{dx}\left(5 x\right) - \frac{d}{dx}\left(4\right)\)

Step 4a - Differentiate the separated term \(3 x^{2}\).

In this problem: The separated term is \(3 x^{2}\). Use the power rule to get its derivative.

\(\frac{d}{dx}\left(3 x^{2}\right) = 6 x\)

Step 4b - Differentiate the separated term \(5 x\).

In this problem: The separated term is \(5 x\). Use the power rule to get its derivative.

\(\frac{d}{dx}\left(5 x\right) = 5\)

Step 4c - Differentiate the separated term \(4\).

In this problem: The separated term is \(4\). Use the constant rule to get its derivative.

\(\frac{d}{dx}\left(4\right) = 0\)

Step 5 - Combine and simplify.

In this problem: Combine the derivative from each separated term, keeping the signs, then simplify.

\(f'\left(x\right) = 6 x + 5 - 0 = 6 x + 5\)

Final answer:

\(f'\left(x\right) = 6 x + 5\)

Example 2: solved with the product rule.

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

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