Simpson’s rule estimates the perimeter of a section
by a polynomial rather than the line approximation of the trapezoid rule.
The 1/3 rule uses a quadratic polynomial to estimate the function to be
integrated. The name is from the 1/3 ratio in the final equation of integrated
area. The LaGrange equation for interpolating points can be simplified
for three points.
The integration of several sections is as follows.
Notice that there need to be an even number of points.

The error for 1/3 Simpson Rule is as follows. Notice
that there is less error than for the trapezoid rule.

The function f is evaluated at zhi which maximizes
f that is somewhere in interval integrated over. Finding the fourth derivative
in the interval is a bit involved.