Mathwords logoMathwords

Upper Sum — Definition, Formula & Example

An upper sum is an estimate of the area under a curve. You build it from rectangles whose heights equal the largest value of the function on each subinterval, so the rectangles never fall below the curve.

Let ff be bounded on [a,b][a,b], and let P={x0,x1,…,xn}P=\{x_0,x_1,\dots,x_n\} be a partition with a=x0<x1<⋯<xn=ba=x_0<x_1<\cdots<x_n=b. The upper sum of ff with respect to PP is U(f,P)=∑i=1nMi ΔxiU(f,P)=\sum_{i=1}^{n} M_i\,\Delta x_i. Here MiM_i is the supremum (least upper bound) of ff on [xi−1,xi][x_{i-1},x_i] and Δxi=xi−xi−1\Delta x_i=x_i-x_{i-1}. For every partition PP, the lower sum satisfies L(f,P)≤U(f,P)L(f,P)\le U(f,P). A bounded ff is Riemann integrable on [a,b][a,b] when the greatest lower bound of all upper sums equals the least upper bound of all lower sums.

Key Formula

U(f,P)=∑i=1nMi Δxi,Mi=sup⁡x∈[xi−1, xi]f(x)U(f,P)=\sum_{i=1}^{n} M_i\,\Delta x_i, \qquad M_i=\sup_{x\in[x_{i-1},\,x_i]} f(x)
Where:
  • U(f,P)U(f,P) = Upper sum of ff for the partition PP
  • MiM_i = Largest value (supremum) of ff on the iith subinterval; for a continuous ff this is the maximum
  • Δxi\Delta x_i = Width of the iith subinterval, xi−xi−1x_i-x_{i-1}
  • nn = Number of subintervals in the partition

Worked Example

Problem: Find the upper sum for f(x)=x2f(x) = x^2 on [−1,2][-1, 2] using 3 subintervals of equal width. Compare it with the right-endpoint sum and the exact area.
Step 1: Find the width and the partition.
Δx=2−(−1)3=1,P={−1,0,1,2}\Delta x = \frac{2 - (-1)}{3} = 1, \qquad P = \{-1, 0, 1, 2\}
Step 2: Find the largest value of ff on each subinterval. f(x)=x2f(x) = x^2 decreases on [−1,0][-1, 0], so its maximum there is at the left endpoint; it increases on [0,2][0, 2], so the maximum is at the right endpoint.
M1=f(−1)=1,M2=f(1)=1,M3=f(2)=4M_1 = f(-1) = 1, \quad M_2 = f(1) = 1, \quad M_3 = f(2) = 4
Step 3: Multiply each maximum by the width and add.
U(f,P)=1(1)+1(1)+1(4)=6U(f, P) = 1(1) + 1(1) + 1(4) = 6
Step 4: Compare. The right-endpoint sum uses f(0)f(0) on the first subinterval, which is the minimum there, not the maximum.
R=f(0)+f(1)+f(2)=0+1+4=5,∫−12x2 dx=83+13=3R = f(0) + f(1) + f(2) = 0 + 1 + 4 = 5, \qquad \int_{-1}^{2} x^2\,dx = \frac{8}{3} + \frac{1}{3} = 3
Answer: The upper sum is 66. The right-endpoint sum is only 55, because on [−1,0][-1, 0] the largest value is at the left endpoint. The upper sum is at least the exact area, 33.

Why It Matters

Upper and lower sums trap the exact value of a definite integral between two numbers. On the AP Calculus exam, you may need to say whether a Riemann sum is an overestimate or an underestimate, and that reasoning is closely related to the upper-sum idea. In many college real analysis courses, the Riemann integral is defined using upper and lower sums; other textbooks start from Riemann sums and show that the two approaches agree.

Common Mistakes

Mistake: Treating the upper sum as the same thing as the right-endpoint sum.
Correction: Right endpoints are guaranteed to give the maximum when ff is increasing (or non-decreasing); in general you must check where the largest value on each subinterval occurs. For a decreasing function, the maximum on each subinterval is at the left endpoint. If ff rises and then falls inside an interval, the maximum may be at an interior point. Always find the largest value on each subinterval.

Related Terms