Calculates integration of which upper and lower limits are polynomial function