100% free no uploads no sign-up

derivative calculator

The derivative measures how fast a function changes. This calculator differentiates your function and names every rule it uses — power, product, quotient, chain and the standard derivatives — then checks the result against the function's slope.

mode: derivative

Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas

problem
d/dx (x²·sin(x))
answer
d/dx (x²·sin(x)) = x²·cos(x) + 2x·sin(x)

✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).

step-by-step working

  1. Product rule: (u·v)′ = u′·v + u·v′, with u = x² and v = sin(x).

    d/dx (x²·sin(x)) = x²·cos(x) + 2x·sin(x)
  2. Power rule: d/dx xⁿ = n·xⁿ⁻¹.

    d/dx x² = 2x
  3. Standard derivative: d/dx sin(u) = cos(u).

    d/dx sin(x) = cos(x)

The rules

RuleFormulaExample
Power ruled/dx xⁿ = n·xⁿ⁻¹d/dx x³ = 3x²
Constant multipled/dx [c·f] = c·f′d/dx 5x² = 10x
Sum ruled/dx [f + g] = f′ + g′d/dx (x² + x) = 2x + 1
Product rule(uv)′ = u′v + uv′d/dx x·eˣ = eˣ + x·eˣ
Quotient rule(u/v)′ = (u′v − uv′)/v²d/dx sin(x)/x
Chain ruled/dx f(g(x)) = f′(g(x))·g′(x)d/dx sin(2x) = 2cos(2x)

Worked examples

d/dx (x³ − 4x + 1)

answer
d/dx (x³ − 4x + 1) = 3x² − 4

✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).

step-by-step working

  1. Sum rule: differentiate each term separately.

    d/dx (x³ − 4x + 1) = 3x² − 4
  2. Power rule: d/dx xⁿ = n·xⁿ⁻¹.

    d/dx x³ = 3x²
  3. Constant multiple rule: keep the constant −4 and differentiate x.

    d/dx (−4x) = −4

d/dx (x²·e^x)

answer
d/dx (x²·e^x) = e^x(x² + 2x)

✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).

step-by-step working

  1. Product rule: (u·v)′ = u′·v + u·v′, with u = x² and v = e^x.

    d/dx (x²·e^x) = x²·e^x + 2x·e^x
  2. Power rule: d/dx xⁿ = n·xⁿ⁻¹.

    d/dx x² = 2x
  3. Exponential rule: d/dx eᵘ = eᵘ·u′.

    d/dx e^x = e^x
  4. Tidy up by taking out the common factor.

    x²·e^x + 2x·e^x = e^x(x² + 2x)

d/dx ln(x² + 1)

answer
d/dx ln(x² + 1) = 2x/(x² + 1)

✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).

step-by-step working

  1. Standard derivative: d/dx ln(u) = 1/u. Chain rule: multiply by the derivative of the inside, u = x² + 1.

    d/dx ln(x² + 1) = 2x/(x² + 1)
  2. Sum rule: differentiate each term separately.

    d/dx (x² + 1) = 2x
  3. Power rule: d/dx xⁿ = n·xⁿ⁻¹.

    d/dx x² = 2x

Standard derivatives

f(x)f′(x)
sin xcos x
cos x−sin x
tan xsec² x
eˣeˣ
aˣaˣ·ln a
ln x1/x
log₁₀ x1/(x·ln 10)
arcsin x1/√(1 − x²)
arctan x1/(1 + x²)

Other variables and higher derivatives

Letters other than x are treated as constants, so d/dx aˣ = aˣ·ln(a). To differentiate with respect to another letter, type d/dt or add "with respect to t". For a second derivative, start with "second derivative of" or d^2/dx^2.

Common mistakes

Common derivatives, worked out

Frequently asked questions

How is the answer checked?

The derivative is compared with the slope of the original function at several points, worked out numerically from tiny changes in x. If they don't agree, a warning is shown.

Why does my answer look different from the textbook's?

Derivatives can be written in several equivalent ways, like 2sin(x)cos(x) and sin(2x). Expand or simplify both forms, or plug in a number, to see that they match.

Can it do implicit differentiation?

Not yet. It differentiates an explicit function of one variable, such as y = x²·sin(x). Logarithmic differentiation is used automatically for functions like xˣ.

Does log mean ln?

No. Here log means base 10 and ln means the natural log (base e). Use log_2(x) for base 2.

More math tools