Estimates the area under a curve from [a,b]