How do you find the area of a shape with a curved edge? Rectangles and triangles are easy, but a region under a curve like y = x² has no simple formula from geometry. Calculus solves this with a clever idea: chop the region into thin rectangles, add their areas, and let the rectangles get thinner and thinner. That process gives us Riemann sums and, in the limit, the definite integral.
The core idea: approximate with rectangles
Suppose you want the area under the graph of a function f(x) between x = a and x = b, above the x-axis. Split the interval [a, b] into n equal pieces. Each piece has width Δx = (b − a) / n. On each piece, draw a rectangle whose height is the value of the function at some chosen point of that piece. The sum of all the rectangle areas is a Riemann sum:
Sum = f(x₁)·Δx + f(x₂)·Δx + … + f(xₙ)·Δx
It is only an approximation, because the tops of the rectangles are flat while the curve is not. But the more rectangles you use, the better the fit.
Left, right and midpoint sums
The choice of where to measure the height defines the type of Riemann sum:
| Type | Height taken at | Behavior for an increasing function |
|---|---|---|
| Left sum | Left endpoint of each piece | Underestimates the area |
| Right sum | Right endpoint of each piece | Overestimates the area |
| Midpoint sum | Middle of each piece | Usually closer to the true value |
For a decreasing function, the left and right behaviors swap. Seeing this pattern helps you check whether an answer is reasonable: the true area should lie between a left sum and a right sum for a function that only goes up or only goes down.
A worked example
Estimate the area under f(x) = x² from x = 0 to x = 4 using four rectangles. Here Δx = (4 − 0) / 4 = 1, and the pieces are [0,1], [1,2], [2,3] and [3,4].
- Left sum: use x = 0, 1, 2, 3. The heights are 0, 1, 4 and 9, so the sum is (0 + 1 + 4 + 9) × 1 = 14.
- Right sum: use x = 1, 2, 3, 4. The heights are 1, 4, 9 and 16, so the sum is (1 + 4 + 9 + 16) × 1 = 30.
- Compare: the true area lies between 14 and 30. That is a wide range, so we need more rectangles.
With eight rectangles (Δx = 0.5), the left sum becomes 17.5 and the right sum becomes 25.5. The gap narrows. The exact area, as we will see, is 64/3, about 21.33. Each time we double the rectangles, the estimates move closer to this value from both sides.
From sums to the definite integral
If we let n grow without bound, so that Δx shrinks toward zero, the Riemann sums approach a single number, provided the function is well behaved (continuous functions qualify). That number is the definite integral of f from a to b, written:
∫ from a to b of f(x) dx
The integral sign is a stretched “S” for “sum”, and dx is the infinitely thin width of each rectangle. When f(x) is positive, the integral equals the area under the curve. When f(x) is negative on part of the interval, that part counts as negative area, so the integral measures net signed area.
The Fundamental Theorem of Calculus
Computing limits of sums is tedious, so mathematicians found a shortcut. The Fundamental Theorem of Calculus connects integrals to antiderivatives: if F is a function whose derivative is f, then
∫ from a to b of f(x) dx = F(b) − F(a)
For our example, an antiderivative of x² is F(x) = x³/3. Then the exact area from 0 to 4 is F(4) − F(0) = 64/3 − 0 = 64/3 ≈ 21.33, matching what the Riemann sums were approaching.
Properties worth remembering
- Constant multiples: you can pull a constant out of an integral.
- Sums: the integral of a sum is the sum of the integrals.
- Reversing limits: swapping a and b changes the sign of the result.
- Splitting intervals: the integral from a to b equals the integral from a to c plus the integral from c to b.
- Zero width: an integral from a to a is zero.
Common mistakes to avoid
Students often forget that the integral gives net area, not total area, so a function that dips below the axis can cancel out positive area. Another frequent slip is mixing up the width Δx with the number of rectangles, or forgetting to multiply the sum of heights by Δx. Finally, remember to evaluate the antiderivative at both limits and subtract in the right order: upper limit first.
Where integrals are used
The same idea of adding up many tiny pieces appears across science and engineering. Integrals can model distance traveled from a speed graph, the total amount of water flowing into a tank, the work done by a varying force, and averages over an interval. Whenever a quantity accumulates continuously, an integral is likely involved.
Tips for studying
Sketch every problem before you calculate. Draw the curve, shade the region and mark the rectangles; the picture will tell you whether the answer should be larger or smaller than your estimate. Practice with simple functions such as lines and parabolas first, then move on to more complex ones once the logic feels natural.
Conclusion
Riemann sums turn a curved-area puzzle into simple rectangle arithmetic, and the definite integral is what those sums approach when the rectangles become infinitely thin. If you want to keep building your math skills with guided lessons, take a look at the math and calculus courses offered on Cursa.





















