Riemann Sums and Definite Integrals: How to Find the Area Under a Curve

Learn how Riemann sums approximate the area under a curve and how that idea leads to the definite integral and the Fundamental Theorem of Calculus.

Share on Linkedin Share on WhatsApp

Estimated reading time: 6 minutes

Article image Riemann Sums and Definite Integrals: How to Find the Area Under a Curve

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:

TypeHeight taken atBehavior for an increasing function
Left sumLeft endpoint of each pieceUnderestimates the area
Right sumRight endpoint of each pieceOverestimates the area
Midpoint sumMiddle of each pieceUsually 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].

  1. 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.
  2. 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.
  3. 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.

The Bronze Age Collapse: When an Entire Interconnected World Fell Apart

Around 1200 BCE several Mediterranean civilisations collapsed within decades. Here is what happened, the leading explanations, and why it still matters.

Correlation Is Not Causation: How to Read a Data Chart Without Being Fooled

Two lines moving together rarely prove one caused the other. Learn the traps behind correlation and how analysts test for real causal links.

Sample Size and Margin of Error: How a Survey of 1,000 People Represents Millions

Why polling 1,000 people can describe a whole country, what margin of error really means, and how bad sampling ruins good statistics.

The Silk Road: How a Network of Trade Routes Connected the Ancient World

The Silk Road was never one road, and silk was only part of the story. A clear look at the routes, the goods, the ideas and why the network faded.

Why Steel Ships Float: Buoyancy and Archimedes’ Principle Explained

Density, displacement and pressure explain why a steel ship floats while a steel bolt sinks. A clear introduction to buoyancy for beginners.

The Pythagorean Theorem: What It Is and How to Use It

Learn what the Pythagorean theorem is, why it works, and how to use this essential geometry rule to find the sides of right triangles.

What Is Stoicism? A Beginner’s Guide to the Ancient Philosophy

Discover the core ideas of Stoicism, the philosophers behind it, and practical ways to apply its wisdom to daily life.

Why Every World Map Is Wrong: Map Projections Explained

Every flat map distorts the round Earth. Learn what map projections trade away, why Greenland looks huge, and how to read maps critically.