Derivative Calculator

Differentiate expressions or polynomials and find a tangent at a chosen point.

Polynomial P(x)
21
Derivative P′(x)
34
Function value
—
Selected derivative
—
Tangent from the first derivative
—
Slope sign
—

ln(x) = log(x); log10(x) = log₁₀(x); log2(x) = log₂(x).

Choose coefficients or an expression of up to 512 characters. Use x, pi, e, + - * / ^ and sin, cos, tan, exp, ln, log, sqrt or abs; Math.sin(x) also works. Central differences depend on h and do not prove differentiability.

Approximate results show up to 12 significant digits. Decimal fields use a dot, up to 12 digits on each side, an exponent from −24 to 24 and absolute values up to 10¹². Rational intermediate numerators and denominators are limited to 512 bits. Integer and scientific-notation exceptions are specified below. P(x)=aₙxⁿ+…+a₁x+a₀; P′(x)=naₙxⁿ⁻¹+…+a₁; n ≤ 100.

How the calculation works

P(x) = aₙxⁿ + ⋯ + a₁x + a₀; P′(x) = n·aₙxⁿ⁻¹ + ⋯ + a₁

Choose coefficients or an expression of up to 512 characters. Use x, pi, e, + - * / ^ and sin, cos, tan, exp, ln, log, sqrt or abs; Math.sin(x) also works. Central differences depend on h and do not prove differentiability.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

f′(x)≈(f(x+h)−f(x−h))/(2h); f″(x)≈(f(x+h)−2f(x)+f(x−h))/h².

Frequently asked questions

How is the result calculated?

P(x) = aₙxⁿ + ⋯ + a₁x + a₀; P′(x) = n·aₙxⁿ⁻¹ + ⋯ + a₁

What assumptions apply?

Choose coefficients or an expression of up to 512 characters. Use x, pi, e, + - * / ^ and sin, cos, tan, exp, ln, log, sqrt or abs; Math.sin(x) also works. Central differences depend on h and do not prove differentiability.

How precise are the displayed results?

Results show up to 12 significant digits. Numerical accuracy depends on the function and step h.

How we verified this calculator

The calculator is checked against 4 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Coefficients, highest power first = 7
Polynomial P(x): 7
Derivative P′(x): 0
2
Coefficients, highest power first = 0 0 0
Polynomial P(x): 0
Derivative P′(x): 0
3
Coefficients, highest power first = .1 .2 .3
Evaluate at x = 0.1
Polynomial P(x): 0.321
Derivative P′(x): 0.22
4
Evaluate at x = -2
Polynomial P(x): -19
Derivative P′(x): 34

How we test our calculators →

Also try:

Back to category →