1. Home
  2. Calculus
  3. Derivative calculator

Derivative calculator with steps

Type a function of x and see which rule applies at each step: power, product, quotient or chain rule. Every answer is double-checked.

Your function

Try:

Use ^ for powers, * or a space for multiplication, and functions like sin(x), ln(x), sqrt(x), e^x. Example: x^2 sin(x).

Derivative—

Step-by-step solution

    Have it as a photo or a PDF?

    Calculus AI solves derivatives, limits and integrals from a picture of your homework, step by step.

    Download on the App Store

    What is a derivative?

    The derivative f′(x) measures how fast a function changes: it is the slope of the tangent line at each point. Instead of using the limit definition every time, you combine a handful of rules. This calculator shows which rule applies at each step.

    The main derivative rules

    Power rule: d/dx xⁿ = n·xⁿ⁻¹Constant multiple: d/dx [c·f] = c·f′ · Sum rule: (f + g)′ = f′ + g′
    Product rule: (uv)′ = u′v + uv′Quotient rule: (u/v)′ = (u′v − uv′) / v²
    Chain rule: d/dx f(g(x)) = f′(g(x))·g′(x)Differentiate the outside, keep the inside, then multiply by the derivative of the inside.

    Worked example

    Find the derivative of f(x) = x² sin(x). It is a product, so use the product rule with u = x² and v = sin(x). Then u′ = 2x and v′ = cos(x), so f′(x) = 2x·sin(x) + x²·cos(x).

    Frequently asked questions

    How do I enter my function?

    Type it with x as the variable. Use ^ for powers (x^3), * or a space for multiplication (3x or 3*x), and parentheses for function inputs: sin(x), ln(x), sqrt(x), e^(2x). log(x) means log base 10 and ln(x) is the natural log.

    Which rules does the calculator show?

    The power, constant multiple, sum and difference, product, quotient and chain rules, plus the derivatives of trig, inverse trig, exponential and logarithmic functions.

    Is the answer checked?

    Yes. Every answer is checked numerically at several points against an independent symbolic derivative, so the steps and the final answer always agree.

    Can it do higher-order derivatives?

    Paste the first derivative back into the box to get the second derivative, and repeat for higher orders.

    Related tools