Here is a link to a GeoGebra applet that illustrates the connection between definite integrals and the upper and lower Riemann sums.
The definite integral of a function exists provided the upper and lower Riemann sums both converge to the same limit.