How can I approximate the area under a curve?
There are two ways of doing it
The first way is using the trapezoidal rule and the second way is using the Simpson's rule
The trapezoidal rule is based on the number of trapeziums that you want to fit under the graph. The more trapeziums there are, the more accurate the area under the curve will be.
Usually teachers will say that the Simpson's rule is more accurate than the trapezoidal rule