Notice that this is a Riemann sum with infinitely many rectangles.
And a Riemann sum with infinitely many rectangles is the Definition of an Integral:
Can you rewrite this as an integral?
Now lets find the height of each rectangle.
Heights, of course, are represented by a function,
But what is
We still need to find the bounds of the integral.