What is the definite integral of your function from a to b? Get the value, up to 10 significant digits, with an error estimate, the area to the x-axis, the average value and a Simpson's rule check.
Definite Integral Calculator - Value, Area, Simpson's Rule
What is the definite integral of your function from a to b? Get the value, up to 10 significant digits, with an error estimate, the area to the x-axis, the average value and a Simpson's rule check.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
A definite integral, the area under the curve and the average value
The integral of x² from 0 to 1 is exactly 1/3. This calculator returns 0.3333333333 and adds that the number matches 1/3, so you can see both the decimal and the fraction. All it needs is a function and two limits. Next to the integral you get the area between the graph and the x-axis (a different number whenever the curve dips below the axis), the average value of the function on the interval, and a small table with the midpoint, trapezoidal and Simpson's rules for 10 subintervals, the three rules taught for approximating an integral by hand.
Evaluating an integral in four moves
- Function f(x) - a formula in one variable x, for example 3x^2 + 2, x e^x or 1/(1+x^2). Use ^ for powers; the multiplication sign can be left out (2x, 3sin(x)). Available: sin, cos, tan, cot, ln, log, exp, sqrt, abs, arcsin, arccos, arctan, arccot, and the constants pi and e.
- Lower limit a - a number or an expression without x, such as 0, -1.5 or pi/6.
- Upper limit b - the other end of the interval. It may be smaller than a; the integral then changes sign.
- Read the results - the value with its estimated error in the dark tile, then the area, the average value, the points where the function changes sign, and the table of approximation rules.
Eight integrals from class and from physics
Each case below was typed into the calculator; the numbers are its output, rounded only where the text says so.
Result: 0.3333333333, matched to 1/3. Simpson's rule with n = 10 lands exactly on it, the trapezoidal rule gives 0.335 and the midpoint rule 0.3325. Simpson's rule is exact for every polynomial of degree three or less, which is why its difference column shows 0.
Result: integral 0, area 4, sign change at x ≈ 3.141592654. The half below the axis cancels the half above it. A question about the area of the region is a different question from the value of the integral.
Result: 72 feet traveled, average velocity 18 ft/s. The variable in the calculator is always called x, even when the problem uses t.
Result: integral 50, area 62.5, sign change at x ≈ 1.875. The ball ends 50 feet above the start (displacement) but covers 62.5 feet in total, because it climbs until t = 1.875 s and then falls back. Physics problems that say "distance traveled" want the area; "displacement" wants the integral.
Result: 13.5 foot-pounds of work, matched to 27/2, average force 9 pounds.
Result: 1.772414697, just under √π ≈ 1.772453851, the integral over the whole real line. The textbook route through an antiderivative does not work here; only a numerical method gets a value.
Result: 2. The trapezoidal and Simpson's rules show "not possible", because they need a value at x = 0. The calculator refines the partition toward zero until the value settles. The same input with 1/x^2 ends with "The integral diverges" and the trouble spot x ≈ 0.
Result: -2, area 2. Swapping the limits flips the sign of the integral; the area stays positive.
Ten integrals you can check by hand with an antiderivative
The Fundamental Theorem of Calculus says the integral from a to b equals F(b) - F(a), where F is any antiderivative of f. The table lists ten common cases; the last column is the calculator's output, which agrees with the antiderivative in every row.
| f(x) | Interval | Antiderivative F(x) | Integral |
|---|---|---|---|
| x² | [0, 1] | x³/3 | 1/3 |
| 3x² - 2x + 1 | [1, 4] | x³ - x² + x | 51 |
| sin x | [0, π] | -cos x | 2 |
| cos x | [π/6, π/2] | sin x | 1/2 |
| eˣ | [0, 1] | eˣ | e - 1 ≈ 1.718281828 |
| 1/x | [1, e] | ln x | 1 |
| 1/(1 + x²) | [0, 1] | arctan x | π/4 ≈ 0.7853981634 |
| x·eˣ | [0, 1] | (x - 1)·eˣ | 1 |
| √x | [0, 4] | (2/3)·x3/2 | 16/3 ≈ 5.333333333 |
| sin² x | [0, π] | x/2 - sin(2x)/4 | π/2 ≈ 1.570796327 |
Midpoint, trapezoid and Simpson against the exact value
The table under every result shows how far the classroom rules miss with 10 equal subintervals. For the integral of sin x from 0 to π (exactly 2) the calculator prints:
| Rule (n = 10) | Value | Difference from 2 |
|---|---|---|
| Midpoint rule | 2.008248408 | 0.008248 |
| Trapezoidal rule | 1.983523538 | -0.016476 |
| Simpson's rule | 2.000109517 | 0.000110 |
The trapezoidal error comes out about twice the midpoint error and with the opposite sign, while Simpson's rule is two orders of magnitude closer. The value in the dark tile comes from none of these three. It is computed by adaptive Gauss-Kronrod quadrature with 7 and 15 nodes, which keeps splitting the interval where the estimated error is largest and stops once that error falls below roughly 10-12 of the integral, or of the area when positive and negative parts cancel out.
Before you trust a definite integral
Related tools
System of Equations Calculator
Two or three linear equations solved step by step, with exact fractions and a check - See the calculator
Derivative Calculator
Derivative step by step with named rules, second derivative and tangent line - See the calculator
Laplace Transform Calculator
F(s) for common functions, an integral from 0 to infinity in table form - See the calculator
Series Convergence Calculator
Whether a geometric, p-series or alternating series converges, and its sum - See the calculator
Quadratic Function Calculator
Zeros, vertex and axis of a parabola, handy before integrating one - See the calculator
Area Calculator
Areas of triangles, trapezoids, circles and other basic shapes - See the calculator
Average Calculator
Arithmetic, weighted, geometric and harmonic means of a list of numbers - See the calculator
Logarithm Calculator
ln, log base 10 and any other base, the functions behind many integrals - See the calculator