Integration is the reverse of differentiation and the tool for areas, accumulated quantities and averages. This integral calculator does both jobs at once: it looks for an antiderivative in closed form, and it computes the definite integral numerically to about 10 significant digits — even when the bounds are infinite or the integrand blows up at an endpoint.
The symbolic part handles polynomials, powers (including , which gives ), exponentials and , sine, cosine, tangent, , hyperbolic functions, , , , , sums and constant multiples, any of these with a linear inside , and simple -substitutions such as or . Every antiderivative it returns is checked by differentiating it back.
When no closed form is found — or , for instance — the calculator says so and still gives the definite value. If that value is a recognisable constant such as , or , it is shown next to the decimal.
How to use this calculator
- Type the integrand in Function f(x), e.g.
x^2,sin(3x),e^(-x^2)or1/(1+x^2). - For a definite integral, enter the lower bound a and upper bound b. You can use constants (
pi/2) andinfor-inffor improper integrals. - Leave both bounds empty if you only want the indefinite integral .
- Read the result: the definite value (with an exact form when one is recognised), the antiderivative with its constant , and the estimated numerical error.
- Open the steps to see the antiderivative, the evaluation and the numerical check.
The formula
If on and is continuous there, the fundamental theorem of calculus gives
The calculator uses this whenever its antiderivative agrees with the numerical value. Basic antiderivatives:
| , | |
Numerically, the integral is computed by adaptive Gauss–Kronrod quadrature: 15-point Kronrod and 7-point Gauss rules are compared on each subinterval, and the interval with the largest disagreement is split until the total error estimate is tiny. Infinite bounds are first mapped to a finite interval, e.g. for .
Worked example
Polynomial. For the antiderivative is , so the integral is — the calculator's default example.
Trigonometric. .
Improper, no closed form. has no elementary antiderivative, but the calculator returns , the Gaussian integral.
Divergent. is infinite: the area near grows like . The calculator reports Diverges instead of a meaningless number.
Improper integrals and divergence
An integral is improper when a bound is infinite or the integrand becomes infinite inside . It converges when the area stays finite: and converge, while diverges.
Watch out for poles inside the interval. looks like with , which is absurd for a positive function. The fundamental theorem does not apply because is not continuous at 0; the calculator detects the singularity and reports that the integral diverges.
Areas and volumes
For the definite integral is the area under the curve. The area between two curves is . Rotating around the -axis gives a solid of volume : for on , enter pi*x^2 to get . To go the other way, from a function to its rate of change, use the derivative calculator.
Frequently asked questions
Why does the antiderivative include + C?
Any constant has derivative zero, so if F is an antiderivative of f, so is F + C for every constant C. The definite integral does not depend on C because it cancels in F(b) − F(a).
Why does it say "No closed form found"?
Some functions, like e^(−x²) or sin(x)/x, have no elementary antiderivative; others, like x·sin(x), need integration by parts or partial fractions, which this tool does not perform. The definite integral is still computed numerically.
How accurate is the definite integral?
Smooth integrands are typically accurate to 10 or more significant digits; the estimated error is shown. Singular or slowly decaying integrands are less accurate, and the error estimate tells you so.
How do I enter infinity as a bound?
Type inf for +∞ and -inf for −∞. The calculator maps the infinite interval to a finite one with a change of variable before integrating.
Are trigonometric functions in radians?
Yes. Calculus formulas such as ∫cos x dx = sin x + C assume radians; convert degrees with pi/180.
Sources
- OpenStax — Calculus Volume 1, chapter 5: Integration
- OpenStax — Calculus Volume 2, section 3.7: Improper integrals
- QUADPACK (Piessens et al.) — adaptive Gauss–Kronrod quadrature
Last updated: