Riemann sums — defining the integral
About this app
The definite integral as a limit of Riemann sums: a 3D column landscape under the curve, five example functions, choice of sample points (lower/upper/left/midpoint/right sum), a "refine" animation (columns grow ever thinner). Two singularity special cases show: for 1/√x the integral exists despite the pole, for 1/x² the sum grows beyond all bounds — the limit does not exist.
With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.
The idea
The definite integral ∫ₐᵇ f(x) dx is defined as a limit of Riemann sums. You split [a, b] into n subintervals of width Δx, pick a sample point xₖ in each, and add up the column areas f(xₖ)·Δx. If this sum approaches the same value for ever finer partitions, regardless of the sample points, f is integrable and the limit is the integral. The lower and upper sums trap that value from below and above.
What the app shows
A 3D landscape of columns stands under the curve. You can choose the parabola x² on [0, 2], the sine arch on [0, π], √x on [0, 1], and two functions with a pole at 0: 1/√x and 1/x². The sample point can be the lower sum, left, midpoint, right or upper sum. The values panel shows the Riemann sum Sₙ, the integral and the error |Sₙ − ∫|. An explain mode lets the AI tutor guide you through the app live.
Things to try
Press “Refine”: n grows, the columns get thinner, and for x² the sum Sₙ approaches 8/3. For 1/√x the improper integral exists (= 2), but with left sample points one column sits right on the pole and the sum becomes infinite; midpoint or right sums converge. For 1/x² the sum keeps growing with every refinement, so no limit exists.
Frequently asked questions
- What is a Riemann sum?
- A Riemann sum approximates the area under a curve with rectangles. The interval [a, b] is split into subintervals, f is evaluated at a sample point in each and multiplied by the width. The total ∑ f(xₖ)·Δx of these rectangle areas is the Riemann sum.
- What is the difference between lower and upper sums?
- The lower sum uses the smallest function value in each subinterval, the upper sum the largest. The lower sum is therefore never above the integral and the upper sum never below it. If both can be made arbitrarily close by refining, the function is Riemann integrable.
- Can you integrate a function with a vertical asymptote?
- Not directly in the Riemann sense, because the function is unbounded; instead you form an improper integral as a limit. For 1/√x on [0, 1] it exists and equals 2, while for 1/x² on [0, 1] it grows without bound. Whether the area is finite depends on how fast the function blows up near the pole.
- What can I try in the Riemann sum app?
- You choose one of five functions and a sampling rule, refine the partition and compare the sum with the integral. The two pole examples show when a sum converges despite the pole and when it does not.
Subject: Analysis (one-dimensional)
More from Analysis (one-dimensional)
- Derivative as a sequence of secants
- Bounded growth
- Units of an integral: rate times time
- Exponential growth and decay
- Optimisation: the largest rectangle
- Area between curves
- Area function is an antiderivative
- Sequential continuity
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps