proof of Simpson’s rule
We want to derive Simpson’s rule for
We will use Newton and Cotes formulas for . In this case, , and . We use Lagrange’s interpolation formula to get a polynomial such that for .
The corresponding interpolating polynomial is
and thus
Since integration is linear, we are concerned only with integrating each term in the sum. Now, taking where and , we can rewrite the quotients on the last integral as
and if we calculate the integrals on the last expression we get
which is Simpson’s rule: