Integration of polynomial functions