Derivative Calculator

Differentiate an expression with respect to a variable.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type a function and a variable to get its derivative. The derivative of x³ + 2x is 3x² + 2, and the derivative of ln(x² + 1) is 2x ÷ (x² + 1).

How to use

1
Step 1
Type the function, using * for products and ^ for powers.
2
Step 2
Set the variable (x by default).
3
Step 3
Press Calculate.

How it works

The tool applies the power, product, quotient and chain rules symbolically. The result is not always in its shortest form: the derivative of exp(2x)/x comes back as (2/x − (1/x)²) · exp(2x), which equals (2x − 1) · exp(2x) / x².

(xⁿ)′ = n·xⁿ⁻¹      (uv)′ = u′v + uv′      (f(g(x)))′ = f′(g(x))·g′(x)

Worked example

Product rule

Input
sin(x) * x^2
Output
cos(x) * x ^ 2 + 2 * sin(x) * x
Walkthrough
u = sin x, v = x². u′v + uv′ = cos(x)·x² + sin(x)·2x.

Limitations

  • Output is not algebraically simplified, so expect extra brackets and factors.
  • The derivative of abs(x) is shown as abs(x) / x, which is undefined at 0.

Questions

What is the derivative of x³ + 2x?
3x² + 2.
What is the derivative of ln(x² + 1)?
2x ÷ (x² + 1).
What is the derivative of |x|?
abs(x) / x, which is 1 for x > 0 and −1 for x < 0.
What is the derivative of x² sin x?
x² cos x + 2x sin x.

Features

  • Product, quotient and chain rules
  • Symbolic result
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Definite integrals intro

    Khan Academy

    Definite integral basics for area-under-curve calculators.

    Watch on YouTube
  • The paradox of the derivative

    3Blue1Brown

    Deepens intuition beyond button-press differentiation.

    Watch on YouTube
  • Geometry Index

    Math is Fun

    Shape and formula index for geometry calculators.

  • OpenStax Math

    OpenStax

    Free textbooks for algebra through calculus.