In mathematics , a Riemann sum is a sum that makes an approximation of the total area underneath a curve on a graph . The area can be known as the integral . In mathematics , a Riemann sum is a method for approximating the total area underneath a curve on a graph , otherwise known as an integral .