If I follow the solution correctly, he is simply employing the "trapezoidal rule" for numerical integration -- a fairly common numerical integration algorithm: http://en.wikipedia.org/wiki/Riemann_sum If you are unfamiliar with numerical integration, you might review the different riemann sums and how they work.
Bookmarks