Integral and Derivative Calculator

Type a function f(x) to find its derivative at a point and its definite integral between two limits, computed numerically.

Derivative at a point

Use x as the variable. Trig functions use radians. Examples: x^2 + 3x, sin(x)/x, e^(-x^2), sqrt(1-x^2)

Definite integral

Use x as the variable. Trig functions use radians. Examples: x^2 + 3x, sin(x)/x, e^(-x^2), sqrt(1-x^2)

Limits can be numbers, pi or e. Use inf or -inf for infinity.

Field guide

FieldWhat it doesExample
Inputs and results
Function f(x)The expression to work on, with x as the variable. Results update as you type.x^2 + 3x
Point x₀The point where the derivative is taken. Constant expressions such as pi/2 work too.pi/2
Function value, First derivative, Second derivativef(x₀), f′(x₀) and f″(x₀).x^3, x₀ = 1 → 1, 3, 6
Lower limit a, Upper limit bThe limits of integration. Type inf, -inf or ∞ for infinity; if a > b, the sign flips.1/x^2, a = 1, b = inf → 1
Integral∫ₐᵇ f(x) dx. Area below the x-axis counts as negative.x^2, a = 0, b = 3 → 9
Estimated errorAn estimate of how far off (±) the integral could be.x^2, a = 0, b = 3 → ±1E-13
Operators and constants
^Power. Chained powers are evaluated right to left; x² and x³ also work.2^3^2 = 512
Implied multiplicationThe multiplication sign can be left out between numbers, parentheses and functions.2x, 2(x+1), x sin(x)
pi, π, eπ and Euler’s number (2.718…)2pi = 6.28318530718
Functions (parentheses required)
sqrt, cbrtSquare root, cube rootsqrt(16) = 4, cbrt(27) = 3
abs, |x|Absolute value|−5| = 5
expe raised to a power; same as e^(x).exp(1) = 2.71828182846
ln, log, log2Natural log, base-10 log (log10 also works), base-2 logln(e) = 1, log(1000) = 3, log2(8) = 3
sin, cos, tanTrig functions, in radians.sin(pi/6) = 0.5
cot, sec, csc1/tan, 1/cos, 1/sinsec(0) = 1
asin, acos, atanInverse trig functions, giving radians. arcsin and so on also work.asin(1) = 1.57079632679
sinh, cosh, tanhHyperbolic functions. Add a in front for the inverse (asinh and so on).cosh(0) = 1
sin^2(x)A power of the function value: (sin x)²sin^2(1) + cos^2(1) = 1

Input rules

  • Functions need parentheses: write sin(x), not sin x. For the inverse sine, use asin(x), because sin^-1(x) is not accepted.
  • −x^2 means −(x²), and 1/2x means (1/2)·x. To divide by 2x, write 1/(2x).
  • e always means Euler’s number, so 1e-6 is read as 1·e − 6 ≈ −3.28. Write 10^-6 for 0.000001.

Frequently asked questions

Does this calculator show the antiderivative or the derivative formula?

No, it gives numbers only. It computes the derivative at a point and the definite integral between two limits numerically, without producing a formula such as 3x² or x³/3.

Why are my sin and cos values wrong? Can I enter angles in degrees?

Trig functions always use radians, so sin(30) is about −0.988, not 0.5. Multiply degrees by pi/180, for example sin(30pi/180) = 0.5.

Why does it say the integral may diverge or did not converge?

The area does not settle to a finite value, or f(x) becomes infinite or undefined inside the interval. For example, ∫₀¹ 1/x dx and the integral of sin(x) from 0 to inf do not converge, while ∫₀¹ 1/√x dx = 2 does.

Why does the derivative show “Can’t be computed” or “f(x) is not defined”?

At a sharp corner, such as |x| at x = 0, or where the function exists on one side only, such as sqrt(x) at x = 0, the derivative does not exist, so it shows “Can’t be computed”; without a first derivative there is no second derivative either. If f(x₀) itself does not exist, as with 1/x at x = 0, you see “f(x) is not defined at x = 0”.

How accurate are the results?

They are usually correct to 10 or more significant digits and are displayed with up to 12. The integral also shows an estimated error (±), and accuracy can drop for functions that are not smooth.