Lower Sum Calculator

Lower and upper (Darboux) sums from the minimum and maximum of f on each subinterval.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter the function, interval and n

Enter your values below to get started.

Examples:
f(x) =
Use x as the variable: x^3 - 3x, sin(x), e^(-x^2), floor(x).
1 to 5,000 equal subintervals.
Show
Reset restores the default values.

Tips for this calculator

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.

What is a Lower Sum?

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.

L(f,P)=∑i=1nmi Δxi  ≤  ∫abf(x) dx  ≤  ∑i=1nMi Δxi=U(f,P)L(f, P) = \sum_{i=1}^{n} m_i\,\Delta x_i \;\le\; \int_a^b f(x)\,dx \;\le\; \sum_{i=1}^{n} M_i\,\Delta x_i = U(f, P)

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.

InteractiveLower and upper rectangles squeeze the curve

How Does the Lower Sum Calculator Work?

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.

InteractiveWhere the minimum and maximum occur on each subinterval
  1. Partition

    Δx = (b − a) / n. For x³ − 3x on [−2, 2] with n = 4, Δx = 1.

  2. Find each min and max

    On [−1, 0], f goes from 2 at x = −1 to 0 at x = 0, so m = 0 and M = 2.

  3. Lower and upper sums

    L = Δx Σ mi = −6 and U = Δx Σ Mi = 6.

  4. Bracket

    −6 ≤ ∫ (x³ − 3x) dx ≤ 6; the exact value is 0.

Lower Sum and Upper Sum Formulas

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.

Lower Darboux Sum

L(f,P)=∑i=1n(inf⁡[xi−1, xi]f) (xi−xi−1)L(f, P) = \sum_{i=1}^{n} \Big(\inf_{[x_{i-1},\,x_i]} f\Big)\,(x_i - x_{i-1})

Upper Darboux Sum

U(f,P)=∑i=1n(sup⁡[xi−1, xi]f) (xi−xi−1)U(f, P) = \sum_{i=1}^{n} \Big(\sup_{[x_{i-1},\,x_i]} f\Big)\,(x_i - x_{i-1})

Gap Between Upper and Lower Sums

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.

U(f,P)−L(f,P)=∑i=1n(Mi−mi) ΔxiU(f, P) - L(f, P) = \sum_{i=1}^{n} (M_i - m_i)\,\Delta x_i
InteractiveThe gap U − L, subinterval by subinterval

Types of Partitions for Lower Sums

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.

InteractiveRefine the partition: L rises, U falls

Regular Partition

n equal subintervals of width Δx = (b − a) / n. Used in most textbook problems.

Refinement

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).

Irregular Partition

Unequal widths Δxi, for example narrow subintervals where f changes fast. The formulas use Δxi for each strip.

How to Calculate a Lower Sum by Hand

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.

  1. Δx = 1; subintervals [−2, −1], [−1, 0], [0, 1], [1, 2].
  2. Minimums: f(−2) = 0, f(−1) = 3, f(1) = 3, f(2) = 0.
  3. Lower sum: 1 × (0 + 3 + 3 + 0) = 6.
  4. Maximums: f(−1) = 3, f(0) = 4, f(0) = 4, f(1) = 3, so the upper sum is 14.
  5. Bracket: 6 ≤ 32/3 ≈ 10.6667 ≤ 14.
InteractiveStep through lower and upper sums

    Lower Sums and Riemann Integrability

    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.

    sup⁡PL(f,P)=inf⁡PU(f,P)=∫abf(x) dx\sup_P L(f, P) = \inf_P U(f, P) = \int_a^b f(x)\,dx

    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.

    InteractiveDoes U − L shrink to 0?

    Lower Sum vs. Left, Right and Midpoint Sums

    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.

    • Increasing f: lower sum = left sum, upper sum = right sum.
    • Decreasing f: lower sum = right sum, upper sum = left sum. For 1/x on [1, 3], L = 0.95 and U = 1.2833.
    • Turning f: the lower sum can be smaller than every endpoint sum. For x³ − 3x on [−2, 2], n = 4, the lower sum is −6 while the left sum is −2.
    InteractiveLower ≤ left, midpoint, right ≤ upper

    Common Mistakes with Lower Sums

    • Using only endpoints: the minimum can sit at a critical point inside the subinterval, such as x = 1 for x³ − 3x.
    • Calling the left sum the lower sum: the 2 are equal only when f is increasing.
    • Ignoring negative values: mi can be negative, and then miΔx subtracts.
    • Mixing up inf and sup: lower sums use the infimum (greatest lower bound), upper sums the supremum.
    • Applying lower sums to an unbounded f: 1/x on [0, 1] has no finite upper sum.
    InteractiveTrue or false: lower and upper sums
    1. The lower sum of an increasing function equals its left Riemann sum.

    2. Adding points to a partition can lower the lower sum.

    3. Every lower sum is ≤ every upper sum, even on different partitions.

    4. The minimum of f on a subinterval is always at an endpoint.

    5. The Dirichlet function is Riemann integrable on [0, 1].

    Score: 0 / 5

    How to Use the Lower Sum Calculator

    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.

    InteractiveLoad a lower or upper sum problem

    Each button fills the calculator and runs it.

    1. Enter f(x)

      Any bounded function, for example x^3 - 3x or floor(x).

    2. Set a, b and n

      n can go from 1 to 5,000.

    3. Pick what to show

      Lower sum, upper sum, or both with the gap.

    4. Check the table

      Each row says whether the min or max is at an endpoint or inside.

    Real-Life Uses of Lower Sums

    Lower and upper sums give a guaranteed minimum and maximum for a total, even when the rate rises and falls. 4 common uses:

    • Inventory and tanks: the lowest and highest inflow rate in each period bound the volume in liters (and US gallons).
    • Verified computing: interval arithmetic, standardized in IEEE 1788-2015, uses lower and upper bounds to prove an integral lies in a range.
    • Safety margins: engineers use the minimum load in each segment to guarantee a capacity is never overstated.
    • Teaching proofs: real analysis courses use Darboux sums to prove that continuous functions are integrable.
    InteractiveGuaranteed range for the water flowing into a tank

    Lower Sum Examples

    Lower and upper sums on regular partitions, with the exact integral.

    Lower Sum Examples
    IntegralnLower sumUpper sumExactCalculator
    ∫02x2 dx\int_0^2 x^2\,dx41.753.752.6667
    ∫−22(x3−3x) dx\int_{-2}^2 (x^3 - 3x)\,dx4−660
    ∫0πsin⁡x dx\int_0^\pi \sin x\,dx41.11072.68152
    ∫−22(4−x2) dx\int_{-2}^2 (4 - x^2)\,dx461410.6667
    ∫131x dx\int_1^3 \frac{1}{x}\,dx40.951.28331.0986
    ∫−22e−x2 dx\int_{-2}^2 e^{-x^2}\,dx81.27042.25211.7642

    Popular Lower Sum Problems

    Find the minimum and maximum on each subinterval, then reveal the answer or solve it in the calculator.

    1. Lower sum of f(x) = x² on [0, 2] with n = 4.

      L(f, P_4),\ f(x)=x^2
      Show answerL = 1.75
    2. Upper sum of f(x) = 4 − x² on [−2, 2] with n = 4.

      U(f, P_4),\ f(x)=4-x^2
      Show answerU = 14
    3. Lower and upper sums of f(x) = x² on [−1, 2] with n = 3.

      L,\ U,\ f(x)=x^2,\ [-1,2]
      Show answerL = 1,\ U = 6
    4. Lower and upper sums of f(x) = sin x on [0, π] with n = 2.

      L,\ U,\ f(x)=\sin x,\ n=2
      Show answerL = 0,\ U = \pi \approx 3.1416
    5. Lower and upper sums of f(x) = x³ on [−1, 1] with n = 4.

      L,\ U,\ f(x)=x^3,\ [-1,1]
      Show answerL = -0.5,\ U = 0.5
    6. Gap U − L for f(x) = x² on [0, 2] with n = 8.

      U - L,\ f(x)=x^2,\ n=8
      Show answerL = 2.1875,\ U = 3.1875,\ U - L = 1

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a lower sum calculator?

    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.

    What is the difference between a lower sum and a left Riemann sum?

    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.

    Is the lower sum always less than the integral?

    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.

    What is a Darboux sum?

    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.

    How do you find the minimum on each subinterval?

    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ᵢ.

    Can a lower sum be negative?

    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.

    What happens to the lower sum as n increases?

    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.

    Do all functions have equal upper and lower integrals?

    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.

    Conclusion

    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.

    InteractiveLower sum, upper sum or another Riemann sum?