// Tool · Integral Calculator
Integral Calculator: Indefinite and Definite Integrals, Checked by Differentiation
Type the integrand and get the antiderivative . Add limits and for the definite integral in exact and decimal form with a shaded graph. An answer is shown only if differentiating it gives back the original function.
Calculator
How to use it
- Type functions as in the derivative calculator:
x^2*e^(3x),1/(x^2+4),sin(x)^2. - Leave and empty for the indefinite integral only.
- Limits can be expressions:
pi/2,sqrt(2),e. - If there is no closed form (for example ), enter limits to get an accurate numerical value.
Integration techniques covered
| Technique | Example | Result |
|---|---|---|
| Basic formulas and linear substitution | ||
| Substitution | ||
| Integration by parts | ||
| Partial fractions | ||
| Powers of trig functions | ||
| Quadratics under a root | ||
| Exponential times trig |
When these rules are not enough, the open-source computer algebra library nerdamer is called, and its result goes through the same check before it is shown.
The fundamental theorem of calculus
If and is continuous on , then
Example: . A definite integral is a signed area: parts below the -axis count as negative. For the true area use the area calculator.
Checks and caveats
The derivative of the found is compared numerically with at 10 points; if they differ, no answer is shown. For a definite integral both and a Gauss–Kronrod numerical value are computed. If they disagree (the antiderivative is discontinuous on the interval, or the function is undefined somewhere), the numerical value is shown with a warning. Divergent improper integrals are flagged as unreliable.
Learn the theory
Frequently asked questions
Why is there a + C?
The derivative of a constant is zero, so functions that differ by a constant share a derivative. The general antiderivative therefore carries an arbitrary constant C.
My answer differs from the book. Is it wrong?
Two antiderivatives can differ by a constant: −¼cos 2x and ½sin²x are both right. The sure test is to differentiate the answer and see the integrand come back, which this calculator does for you.
Which functions have no closed form?
sin(x)/x, e^(x²), 1/ln(x) and √(1 + x³), among others, have no antiderivative in elementary functions. Their definite integrals can still be computed numerically.
How accurate is the numerical value?
Adaptive 15-point Gauss–Kronrod quadrature is typically correct to 10 or more digits for smooth functions, and an error estimate is shown.