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.

Also try:

Back to category →