Definite Integrals & Series
To find the area under a curve, the first move is to slice the interval into many thin rectangles and add them all up. The more rectangles you use, the tighter the staircase hugs the curve, and pushing their number to infinity gives exactly the definite integral. That is why swapping the k/n inside the sum for x and the 1/n in front for dx turns a messy limit into one integral. Drag the number of rectangles n below and watch their total area close in on the integral value 1/3.