Math · free · step by step

Derivative Calculator

Differentiate any function and see every step: power, product, quotient and chain rules, written out and simplified. Get the slope and tangent line at a point, with a graph of f and f′.

x2⁢sin(x)

Derivative

ddx(x2⁢sin(x))=2⁢x⁢sin(x)+x2⁢cos(x)

Step by step

Graph of f and f′

Reference

Derivative rules

RuleFunctionDerivativeExample
Power rulex^nn x^(n - 1)ddx(x5)=5⁢x4
Constant multiplec f(x)c f′(x)ddx(7⁢x3)=21⁢x2
Sum rulef(x) + g(x)f′(x) + g′(x)ddx(x2+sin(x))=2⁢x+cos(x)
Product rulef(x) g(x)f′(x) g(x) + f(x) g′(x)ddx(x2⁢ex)=2⁢x⁢ex+x2⁢ex
Quotient rulef(x)/g(x)(f′(x) g(x) - f(x) g′(x))/g(x)^2ddx(sin(x)x)=x⁢cos(x)−sin(x)x2
Chain rulef(g(x))f′(g(x)) g′(x)ddx(cos(x3))=−3⁢x2⁢sin(x3)

Quick answers

Common derivatives

f(x)f′(x)
sin(x)cos(x)
cos(x)−sin(x)
tan(x)sec2(x)
exex
2x2x·ln(2)
ln(x)1x
log10(x)1x⁢ln(10)
x12⁢x
1x−1x2
arcsin(x)1−x2+1
arctan(x)1x2+1
sec(x)sec(x)·tan(x)

More math

Other math tools

Questions

Derivative Calculator FAQ

Free, private and works offline: everything is worked out in your browser.

How do I find a derivative?

Type the function, for example x^2 sin(x), and press Enter or wait a moment. The answer appears with each rule used. For x^2 sin(x) the product rule gives 2x·sin(x) + x^2·cos(x).

Does it show the steps?

Yes, every step, free: which rule applies (power, product, quotient, chain…), what it turns the expression into, and the simplified answer.

Can it find second and third derivatives?

Yes. Choose 2nd or 3rd and each order is worked out in turn, with its own steps.

How do I find the slope or tangent line at a point?

Type the x value in “Slope at x =”. You get f′(a), the tangent line equation and both drawn on the graph. For x^2 at x = 3 the slope is 6 and the tangent is y = 6x - 9.

What is the chain rule?

Differentiate the outside function, keep the inside the same, then multiply by the derivative of the inside: d/dx f(g(x)) = f′(g(x))·g′(x). For sin(x^2): cos(x^2)·2x = 2x·cos(x^2).

What can I type?

Powers (x^3, x²), roots (sqrt, cbrt), trig and inverse trig, sinh/cosh/tanh, ln, log, e^x, |x|, fractions and products. Write 2x for 2·x. Variables other than x are treated as constants.

Is my work private?

Yes. Everything is worked out in your browser and nothing you type is sent anywhere.

Built and maintained by Zubaer Ahammed · Updated · Runs on your device; nothing you add is uploaded