We can use Riemann Sums to approximate the area under a curve.

For some function over :

  • We divide the distance between and into slices
    • The width of each slice is given by the formula
  • The right sum approximates using the right value of each slice
  • The left sum approximates using the left value of each slice
  • The midpoint sum approximates using the middle value of each slice

To get a more accurate approximation, we can use:

  • The trapezoid rule, which is the mean of the left and right sums
  • Simpson’s rule
      • This approximately simplifies to

The Definite Integral

As we increase the number of slices , the resolution of our area becomes increasingly accurate. Taking the limit of the sum as approaches infinity, we get the definite integral.

The input is often expressed as .

For example, we can find the area under from to using the limit of a Riemann sum.