Numerical integration with the trapezoidal and Simpson’s rules
Approximate the definite integral of a polynomial with the composite trapezoidal rule or Simpson's rule.
Calculate the result
Worked example
Problem
Approximate the integral of x² from 0 to 2 with composite Simpson's rule and four subintervals.
Simpson with four subintervals gives 8/3 for the integral of x² from 0 to 2.
Find the step
Apply the Simpson coefficients
Common mistake
In composite Simpson's rule, the weights alternate 4 and 2, and the number of subintervals is even. The integral is signed.
