Regular Partition
n equal subintervals of width Δx = (b − a) / n. Used in most textbook problems.
Lower and upper (Darboux) sums from the minimum and maximum of f on each subinterval.
Enter your values below to get started.
The lower sum uses the smallest value of f on each subinterval, wherever it occurs.
For an increasing f, the lower sum equals the left sum.
For a decreasing f, the lower sum equals the right sum.
A small gap U − L means a tight bracket on the integral.
A lower sum calculator computes the lower Darboux sum L(f, P) of f(x) on [a, b]: the total area of n rectangles whose heights are the minimum value of f on each subinterval. The calculator returns the upper sum U(f, P) from the maximum values as well, the gap U − L, where each minimum and maximum occurs, and a graph of both rectangle sets around the curve.
A lower sum is the total area of n rectangles whose heights equal the minimum (infimum) of f on each subinterval, so the lower sum is never larger than the integral. The matching upper sum uses the maximum (supremum) of f and is never smaller than the integral. Together they are called Darboux sums, after French mathematician Jean-Gaston Darboux (1842–1917), who introduced them in 1875.
For f(x) = x² on [0, 2] with n = 4, the lower sum is 1.75 and the upper sum is 3.75; the exact area 8/3 ≈ 2.6667 lies between them. With n = 100 the bracket shrinks to 2.6268 ≤ ∫ ≤ 2.7068.
The lower sum calculator splits [a, b] into n equal subintervals, finds the minimum mi and maximum Mi of f on each one, and adds miΔx for the lower sum and MiΔx for the upper sum. The minimum is not always at an endpoint, so the calculator samples up to 200 points per subinterval and refines the best one with a golden-section search.
Δx = (b − a) / n. For x³ − 3x on [−2, 2] with n = 4, Δx = 1.
On [−1, 0], f goes from 2 at x = −1 to 0 at x = 0, so m = 0 and M = 2.
L = Δx Σ mi = −6 and U = Δx Σ Mi = 6.
−6 ≤ ∫ (x³ − 3x) dx ≤ 6; the exact value is 0.
The lower sum formula is L(f, P) = Σ miΔxi with mi = inf f on [xi−1, xi], and the upper sum formula is U(f, P) = Σ MiΔxi with Mi = sup f on the same subinterval.
The gap adds the oscillation Mi − mi of f on each subinterval, times its width. For a monotonic f with equal widths, the gap is |f(b) − f(a)|Δx.
There are 3 common types of partitions for lower and upper sums: a regular partition with equal widths, a refinement that adds points to an existing partition, and an irregular partition with unequal widths. The calculator uses regular partitions; refinements explain why the sums converge.
n equal subintervals of width Δx = (b − a) / n. Used in most textbook problems.
Adding points to P never lowers L(f, P) and never raises U(f, P). Halving every subinterval of x² on [0, 2] moves L from 1.75 (n = 4) to 2.1875 (n = 8).
Unequal widths Δxi, for example narrow subintervals where f changes fast. The formulas use Δxi for each strip.
To calculate a lower sum by hand, take 4 steps: split [a, b] into subintervals, find the smallest value of f on each one (check both endpoints and any critical point inside), multiply each minimum by the width, and add. Here is f(x) = 4 − x² on [−2, 2] with n = 4.
A bounded function is Riemann integrable exactly when the gap between its upper and lower sums can be made smaller than any ε > 0 by choosing a fine enough partition. This is the Darboux (or Riemann) criterion; when it holds, the largest lower sum equals the smallest upper sum, and that common value is the integral.
Continuous functions pass the test: for x² on [0, 2], U − L = 8/n. Step functions with finitely many jumps pass too. The Dirichlet function (1 on rationals, 0 on irrationals), studied by Peter Gustav Lejeune Dirichlet in 1829, fails: every lower sum is 0 and every upper sum is b − a.
Every Riemann sum on a partition lies between the lower sum and the upper sum of that partition, whatever sample point it uses. The lower sum is the smallest possible Riemann sum and the upper sum is the largest.
Type f(x), set a, b and n, choose lower, upper or both, and press Calculate. The result card shows both Darboux sums, the gap and the reference integral; the tabs list every mi and Mi with the x where it occurs, plus a graph of both rectangle sets.
Any bounded function, for example x^3 - 3x or floor(x).
n can go from 1 to 5,000.
Lower sum, upper sum, or both with the gap.
Each row says whether the min or max is at an endpoint or inside.
Lower and upper sums give a guaranteed minimum and maximum for a total, even when the rate rises and falls. 4 common uses:
Lower and upper sums on regular partitions, with the exact integral.
| Integral | n | Lower sum | Upper sum | Exact | Calculator |
|---|---|---|---|---|---|
| 4 | 1.75 | 3.75 | 2.6667 | ||
| 4 | −6 | 6 | 0 | ||
| 4 | 1.1107 | 2.6815 | 2 | ||
| 4 | 6 | 14 | 10.6667 | ||
| 4 | 0.95 | 1.2833 | 1.0986 | ||
| 8 | 1.2704 | 2.2521 | 1.7642 |
Find the minimum and maximum on each subinterval, then reveal the answer or solve it in the calculator.
Lower sum of f(x) = x² on [0, 2] with n = 4.
Upper sum of f(x) = 4 − x² on [−2, 2] with n = 4.
Lower and upper sums of f(x) = x² on [−1, 2] with n = 3.
Lower and upper sums of f(x) = sin x on [0, π] with n = 2.
Lower and upper sums of f(x) = x³ on [−1, 1] with n = 4.
Gap U − L for f(x) = x² on [0, 2] with n = 8.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
A lower sum calculator is an online tool that computes the lower Darboux sum of f(x) on [a, b] by multiplying the minimum of f on each subinterval by its width and adding the results. It returns the upper sum and the gap U − L as well.
A lower sum uses the smallest value of f on each subinterval; a left sum uses the value at the left endpoint. The 2 are equal only when f is increasing.
Yes, for every bounded integrable f, the lower sum is less than or equal to the definite integral, and the upper sum is greater than or equal to it.
A Darboux sum is a lower or upper sum built from the infimum or supremum of f on each subinterval. Jean-Gaston Darboux introduced the idea in 1875 to give a simpler definition of the Riemann integral.
Compare f at both endpoints and at every critical point inside the subinterval where f′(x) = 0; the smallest of these values is the minimum mᵢ.
Yes, when f takes negative values the minimums mᵢ are negative. For x³ − 3x on [−2, 2] with n = 4, the lower sum is −6.
For a refinement of the partition, the lower sum never decreases and the upper sum never increases. For an integrable f, both approach the integral as the widest subinterval shrinks to 0.
No, the Dirichlet function on [0, 1] has every lower sum equal to 0 and every upper sum equal to 1, so the function is not Riemann integrable.
A lower sum adds the smallest value of f on each subinterval times its width, and the lower sum calculator returns it together with the upper sum, the gap U − L and the location of every minimum and maximum. Check interior critical points, not only endpoints, and refine the partition to shrink the gap toward the exact integral.
Not sure which sum to report? Answer the questions below.