Estimate integrals through recursive splitting and tolerance checks. Compare approximations, errors, and refinement depth instantly. See graphs, sample points, exports, and convergence diagnostics clearly.
| Function | Interval | Tolerance | Approximate Integral | Why It Is Useful |
|---|---|---|---|---|
| x^4 - 2*x + 1 | [0, 2] | 1e-8 | 4.4000000000 | Checks a smooth polynomial with an exact benchmark. |
| sin(x^2) | [0, 3] | 1e-6 | 0.7735625269 | Shows adaptive refinement on an oscillatory integrand. |
| exp(-x^2) | [-2, 2] | 1e-6 | 1.7641627815 | Useful for bell-shaped functions and fast decay. |
This calculator uses adaptive Simpson quadrature. It compares one Simpson estimate on an interval with the sum of two Simpson estimates on the split halves.
Single-interval Simpson estimate:
S(a,b) = (b - a) / 6 × [f(a) + 4f((a+b)/2) + f(b)]
Recursive split:
[a,b] → [a,m] and [m,b], where m = (a+b)/2
Local error estimate:
Error ≈ |S(a,m) + S(m,b) - S(a,b)| / 15
Accepted corrected estimate:
Integral ≈ S(a,m) + S(m,b) + [S(a,m) + S(m,b) - S(a,b)] / 15
Smaller tolerances usually improve accuracy, but may increase interval count, recursion depth, and sampled function evaluations.
sin(x^2) or exp(-x^2).It estimates a definite integral by splitting the interval where the function is harder to approximate. Smooth regions get fewer panels, while rapidly changing regions get more refinement.
Adaptive Simpson’s rule is accurate for many smooth functions and gives a practical local error estimate. That lets the calculator refine only where needed and stop efficiently.
Tolerance is the target local error scale for recursive refinement. Smaller values usually improve accuracy, but they also increase subdivisions, runtime, and sampled points.
Very oscillatory, sharp, or nearly singular functions may keep demanding smaller intervals. The depth limit prevents endless refinement and reports when the cap influenced the result.
The reference estimate uses a dense composite Simpson pass for comparison. It is a diagnostic check, not the main adaptive answer, and it can help reveal suspicious differences.
You can use x, numbers, parentheses, and functions like sin, cos, tan, sqrt, exp, log, log10, ln, abs, sinh, cosh, tanh, sec, csc, cot, pow, min, and max.
If the function becomes undefined, infinite, or non-real at sampled points, numerical integration cannot continue safely. Examples include log(x) at x ≤ 0 or division by zero.
The line shows the function over the interval, while markers show adaptive sample locations gathered during recursion. Dense clusters indicate areas that required more numerical attention.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.