Numerical Integration

Numerical computation of definite integrals, supporting trapezoidal, Simpson's, and Simpson's 3/8 rules.

Integration Settings
Quick Examples
Method Description
  • Trapezoidal Rule:Divides the interval into n subintervals and approximates the integral using trapezoid areas, accuracy O(h²).
  • Simpson's Rule:Fits quadratic functions, accuracy O(h⁴), n must be even.
  • Simpson's 3/8 Rule:Fits cubic functions, accuracy O(h⁴), n must be a multiple of 3.
  • Larger subinterval count n yields more accurate results but increases computation time.
  • Supported functions: sin, cos, tan, log, log2, log10, sqrt, abs, exp, pow; constants PI, E; ^ denotes exponentiation.

Usage Instructions

Features

Numerical integration tool supporting trapezoidal, Simpson's, and Simpson's 3/8 rules for definite integrals, with side-by-side method comparison.

Steps

Enter the integrand f(x) → enter lower bound, upper bound, and subinterval count → choose a method → click "Calculate" to view the result; select "Compare Methods" to view results from all three methods simultaneously.

Notes

All computations run locally in the browser; larger subinterval counts are more accurate but slower; syntax errors in the function will display a prompt; the upper bound must be greater than the lower bound.