Area under graph and Total Area of n Rectangles

Area under graph relationship to total area of n rectangles.