Estimate the area under a curve