Approximating Area under a Curve using Polygons