How to use it
- Type f(x), for example
sin(x)orx^2 * exp(-x). - Enter the limits. Constants such as
piand expressions such aspi/2are accepted. - Read the integral, the error estimate and the average value.
How it works
On each piece the tool compares Simpson’s estimate with the sum of the estimates on its two halves. If they differ by less than 15 times the local tolerance, the refined value is used, otherwise the piece is split again, up to a fixed depth. The average value is the integral divided by b − a.
Worked example
∫ from 0 to π of sin x dx = [−cos x] = 1 + 1 = 2. The tool returns 2 to ten digits. Likewise ∫ from 0 to 1 of x² dx = 1/3 and ∫ from 1 to e of 1/x dx = 1.
Tips
- If a function has a spike or a gap, split the range at that point and add the parts.
- The shaded area counts as negative where the curve is below the axis.