Processing math: 100%

 

 

 

Second-order polynomial

Instead of using the above first-order polynomials approximations for f, we attempt at using a second-order polynomials. In this case we need three points in order to define a second-order polynomial approximation f(x)P2(x)=a0+a1x+a2x2. Using again Lagrange's interpolation formula we have P2(x)=(xx0)(xx1)(x2x0)(x2x1)y2+(xx0)(xx2)(x1x0)(x1x2)y1+(xx1)(xx2)(x0x1)(x0x2)y0. Inserting this formula in the integral of Eq. (2) we obtain +hhf(x)dx=h3(fh+4f0+fh)+O(h5), which is Simpson's rule.