Adaptive Simpson
Splits only where f bends sharply. Default; reaches about 10 correct digits on smooth functions.
Definite integrals by Simpson's rule or Gauss–Legendre, with an antiderivative check.
Enter your values below to get started.
Leave the method on Adaptive for 10+ correct digits on smooth functions.
If f is undefined at a or b (like 1/√x at 0), Adaptive switches to tanh-sinh quadrature.
Enter b < a to get the negative of ∫ from b to a.
Clear the F(x) box if you do not want an antiderivative check.
An integral sum calculator evaluates a definite integral ∫ab f(x) dx as a weighted sum of function values, to 10 or more correct digits. Choose adaptive Simpson, Simpson's rule, 5-point Gauss–Legendre or the trapezoidal rule, get an error estimate and the average value of f, and type an antiderivative F(x) to check F(b) − F(a) against the numerical result.
An integral sum is a weighted sum of function values, w1f(x1) + ⋯ + wNf(xN), that approximates the definite integral ∫ab f(x) dx, the signed area between f and the x-axis. Riemann sums, the trapezoidal rule, Simpson's rule and Gauss–Legendre quadrature are all integral sums; they differ in where the nodes xk sit and how large the weights wk are.
Area above the axis counts as positive and area below as negative. For x³ − 4x + 1 on [−2, 3], the integral is 11.25, the net of the parts above and below the axis.
The integral sum calculator evaluates f at a set of nodes, multiplies each value by its weight and adds the products; the adaptive method keeps splitting the interval until 2 estimates on every piece agree to about 10−10. The calculator then reports an error estimate, the number of function evaluations and the average value of f.
If b < a, the calculator integrates from b to a and flips the sign.
Simpson uses 1, 4, 2, …, 4, 1; Gauss–Legendre uses 5 nodes per panel at roots of P5.
Each method is compared with a finer version of itself (Richardson extrapolation).
If you type an antiderivative, F(b) − F(a) is compared with the numerical value.
The exact value of an integral sum's target is F(b) − F(a), where F is any antiderivative of f (F′ = f), by the Fundamental Theorem of Calculus. Isaac Newton and Gottfried Wilhelm Leibniz established the theorem independently in the 1660s–1680s.
For f(x) = x² on [0, 3], F(x) = x³/3 gives 27/3 − 0 = 9. Many integrands have no elementary antiderivative, for example e−x² and sin(x)/x, so a numerical integral sum is the only practical route: ∫01 e−x² dx ≈ 0.746824132812.
There are 4 integral sum methods in this calculator: adaptive Simpson, composite Simpson's rule, Gauss–Legendre quadrature and the trapezoidal rule. Their errors shrink at very different rates as you add function evaluations.
Splits only where f bends sharply. Default; reaches about 10 correct digits on smooth functions.
Thomas Simpson (1743). Fits parabolas through 3 points; error ∝ 1/n⁴; needs an even n.
Carl Friedrich Gauss (1814). 5 nodes per panel integrate polynomials up to degree 9 exactly.
Straight chords between nodes; error ∝ 1/n². Simple, and very accurate on periodic functions over a full period.
Hidetosi Takahasi and Masatake Mori (1974). Used automatically when f is undefined at an endpoint.
Simpson's rule replaces f on each pair of subintervals with the parabola through 3 points and integrates the parabolas exactly, which gives the weights 1, 4, 2, 4, …, 2, 4, 1 times Δx/3.
n must be even. Simpson's rule is exact for every polynomial up to degree 3. S2 for x² on [0, 2] is exactly 8/3, while S2 for eˣ on [0, 2] is 6.4207 against the exact 6.3891. The error bound is (b − a)⁵K4 / 180n⁴, with K4 = max |f⁽⁴⁾|.
To calculate an integral sum by hand, take 5 steps: pick a rule and n, find Δx, list the nodes, apply the rule's weights to f at each node, and add. Here is Simpson's rule with n = 4 on ∫0π sin x dx.
Definite integrals follow 5 rules that every integral sum respects: additivity over intervals, linearity, reversing the limits, zero width, and comparison.
Type the integrand, the limits and, if you have one, an antiderivative; keep the method on Adaptive or pick a rule and n; then press Calculate. The result card shows the value, the error estimate, the number of evaluations, the average value and the antiderivative check; the tabs show the steps, the shaded area and a comparison of all 4 methods.
For example x*e^x or sin(x)/x.
Any order; pi, e and fractions work.
Adaptive for accuracy, or Simpson, Gauss–Legendre or trapezoidal with your own n.
Type a candidate antiderivative to verify homework answers.
Integral sums compute totals whenever a quantity is a rate or a density that changes along a line. 5 common uses:
Definite integrals with their numerical values and exact forms.
| Integral | Value | Exact form | Calculator |
|---|---|---|---|
| 9 | 27/3 | ||
| 0.746824132812 | (√π / 2) erf(1) | ||
| 1 | [(x − 1)eˣ]₀¹ | ||
| 1.57079632679 | π/2 | ||
| 0.659329906436 | Si(2) − Si(1) | ||
| 2 | [2√x]₀¹ | ||
| 11.25 | 45/4 |
Evaluate each integral, then reveal the answer or check it in the calculator.
Evaluate ∫₀³ x² dx and check it with F(x) = x³/3.
Evaluate ∫₀¹ x·eˣ dx.
Simpson's rule with n = 4 for ∫₀^π sin x dx.
Evaluate ∫₁² ln x dx.
Evaluate ∫₋₁¹ √(1 − x²) dx, the area of a half unit disk.
Evaluate ∫₀¹ 1/(1 + x²) dx and multiply by 4.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
An integral sum calculator is an online tool that evaluates a definite integral numerically as a weighted sum of function values. It offers adaptive Simpson, Simpson's rule, Gauss–Legendre and trapezoidal methods with an error estimate and an antiderivative check.
On smooth functions the adaptive method reaches about 10 to 12 correct digits. The result card shows an error estimate for every method.
No, the calculator computes the definite integral numerically. Type a candidate antiderivative F(x) and the calculator checks whether F(b) − F(a) matches.
Simpson's rule uses equally spaced nodes with weights 1, 4, 2, …, 4, 1. Gauss–Legendre picks unequally spaced nodes at roots of a Legendre polynomial, so 5 nodes per panel integrate polynomials up to degree 9 exactly.
Yes, area below the x-axis counts as negative, and reversing the limits flips the sign. ∫ from 3 to 0 of x² dx = −9.
Yes, when f is undefined at a or b, the adaptive method switches to tanh-sinh quadrature. ∫₀¹ 1/√x dx returns 2. Divergent integrals such as ∫₀¹ 1/x dx are reported as divergent.
The average value of f on [a, b] is the integral divided by b − a. For x² on [0, 3], the average is 9 / 3 = 3.
A numerical integral sum uses finitely many function values, so it carries a small error. The adaptive method keeps that error near 10⁻¹⁰ for smooth integrands.
An integral sum evaluates ∫ab f(x) dx as a weighted sum of function values, and the integral sum calculator does it with adaptive Simpson, Simpson's, Gauss–Legendre or trapezoidal rules, plus an error estimate and an antiderivative check. Use the adaptive method for accuracy, Simpson's or the trapezoidal rule to match homework by hand, and F(b) − F(a) to confirm an antiderivative.
Not sure which method to pick? Answer the questions below.