MATH 141 Calculus 2 • McGill University, Montreal

Revision sheet: Riemann sums and the definite integral (MATH 141)

This sheet is not a summary of sections 5.1 and 5.2 of Stewart: you already have the course notes. It answers one question only, what makes students lose marks on Riemann sums and the definition of the integral in MATH 141 at McGill University, and which precise gesture avoids each loss.

Everything here is done as on the exam, by hand and without an antiderivative: when a question says use the definition, the limit of the sum is the only answer that earns the method marks. Every number quoted below has been checked.

The thread of the chapter

An integral is the limit of a sum of SIGNED rectangles: before any number, write Δx=b−an\Delta x = \frac{b - a}{n} and xi=a+i Δxx_i = a + i\,\Delta x, then let the picture decide the sign of each piece and the side, over or under, on which each sum falls.

This chapter is part of MATH 141, Calculus 2 (McGill)

The essentials

Three ingredients, written before any number

  • • The width: Δx=b−an\Delta x = \frac{b - a}{n}. The division points: xi=a+i Δxx_i = a + i\,\Delta x for i=0,1,…,ni = 0, 1, \ldots, n. The a+a + stays even when aa is negative.
  • • The sums: Ln=∑i=1nf(xi−1) ΔxL_n = \sum_{i=1}^{n} f(x_{i-1})\,\Delta x, Rn=∑i=1nf(xi) ΔxR_n = \sum_{i=1}^{n} f(x_i)\,\Delta x, Mn=∑i=1nf(xˉi) ΔxM_n = \sum_{i=1}^{n} f(\bar{x}_i)\,\Delta x with xˉi=a+(i−12)Δx\bar{x}_i = a + \left(i - \frac{1}{2}\right)\Delta x. Each has exactly nn terms.
  • • The definition: ∫abf(x) dx=lim⁡n→∞Rn\int_a^b f(x)\,dx = \lim_{n \to \infty} R_n for ff continuous, and LnL_n, MnM_n or any other choice of sample points have the same limit.
  • • The formulas that close the sums, valid from i=1i = 1 to i=ni = n only: ∑i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}, ∑i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}, ∑i=1ni3=[n(n+1)2]2\sum_{i=1}^{n} i^3 = \left[\frac{n(n+1)}{2}\right]^2 and ∑i=1nc=cn\sum_{i=1}^{n} c = cn.
  • • Monotonicity decides the side: ff increasing gives Ln≤∫abf≤RnL_n \le \int_a^b f \le R_n, ff decreasing gives the reverse, and in both cases ∣Ln−Rn∣=Δx∣f(a)−f(b)∣\left|L_n - R_n\right| = \Delta x\left|f(a) - f(b)\right|.
left sum: underright sum: over
The same increasing curve y=1+x24y = 1 + \frac{x^2}{4} on [0,4][0, 4]: the left rectangles stay under it, the right ones stick out. On a decreasing curve the two pictures swap.

Writing Δx\Delta x and xix_i on the first line of the answer, with the aa visible, is already a method mark on most MATH 141 papers, and it is the line that prevents the most expensive error of the chapter.

Signed area and the properties you may quote

  • • An integral is a SIGNED area: area above the axis minus area below. The area of a region is ∫ab∣f(x)∣ dx\int_a^b |f(x)|\,dx, computed by splitting at every crossing of the axis.
  • • ∫baf=−∫abf\int_b^a f = -\int_a^b f and ∫aaf=0\int_a^a f = 0: in the definition, Δx=a−bn\Delta x = \frac{a - b}{n} is then negative or zero.
  • • ∫abc dx=c(b−a)\int_a^b c\,dx = c(b - a), the integral of a constant being a rectangle, never just cc.
  • • Additivity: ∫abf+∫bcf=∫acf\int_a^b f + \int_b^c f = \int_a^c f. Linearity: ∫ab(αf+βg)=α∫abf+β∫abg\int_a^b (\alpha f + \beta g) = \alpha\int_a^b f + \beta\int_a^b g.
  • • Comparison: f≥0f \ge 0 gives ∫abf≥0\int_a^b f \ge 0; f≥gf \ge g gives ∫abf≥∫abg\int_a^b f \ge \int_a^b g; m≤f≤Mm \le f \le M gives m(b−a)≤∫abf≤M(b−a)m(b - a) \le \int_a^b f \le M(b - a). None of them has a converse.

The rules in table form

Each row reads from left to right: the assumptions, then the result. A red cell is not an answer, it is the finding that the form settles nothing and the instruction to rewrite it. Every case is followed by a worked example.

Over or under? It depends on the direction of f, never on left or right

Read a line as: when ff behaves as in the first column on [a,b][a, b], the left and right sums fall on the side given in the next two. The red line is the rule students invent: when ff turns inside the interval, no sum has a fixed side.

Behaviour of f on the intervalLeft sumRight sum
increasing under over

Example: x2x^2 on [0,2][0, 2], n=2n = 2: L2=1<83<5=R2L_2 = 1 < \frac{8}{3} < 5 = R_2.

decreasing over under

Example: 16−x216 - x^2 on [0,4][0, 4], n=4n = 4: L4=50>1283>34=R4L_4 = 50 > \frac{128}{3} > 34 = R_4.

constant exact exact

Example: f(x)=5f(x) = 5 on [1,4][1, 4]: Ln=Rn=15=∫145 dxL_n = R_n = 15 = \int_1^4 5\,dx for every nn.

turns inside no rule no rule no fixed side

Example: x2x^2 on [−1,2][-1, 2], n=3n = 3: L3=2<3L_3 = 2 < 3, an underestimate.

Same form, other result: x2x^2 on [−2,1][-2, 1], n=3n = 3: L3=5>3L_3 = 5 > 3, an overestimate, for the same function.

What to do: Split at the turning point and bound each monotonic piece separately.

The same table answers a data question: a table of readings gives a guaranteed bound only if the statement says in which direction the quantity moves between readings.

The mistakes that cost marks

These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.

1. Dropping the left end from the sample point

the whole question: the limit is correct, but of another integral

What not to write

“For ∫13(x2−2x) dx\int_1^3 (x^2 - 2x)\,dx: Δx=2n\Delta x = \frac{2}{n}, xi=2inx_i = \frac{2i}{n}, so the integral is 83−4=−43\frac{8}{3} - 4 = -\frac{4}{3}.”

What to write

“xi=1+2inx_i = 1 + \frac{2i}{n}, so f(xi)=4i2n2−1f(x_i) = \frac{4i^2}{n^2} - 1 and Rn=4(n+1)(2n+1)3n2−2→23R_n = \frac{4(n+1)(2n+1)}{3n^2} - 2 \to \frac{2}{3}.”

Why: xi=2inx_i = \frac{2i}{n} runs over [0,2][0, 2], not [1,3][1, 3]. The n=1n = 1 test catches it at once: R1R_1 must be (b−a)f(b)=2f(3)=6(b - a)f(b) = 2f(3) = 6, and the wrong formula gives 00.

2. Summing a constant once instead of n times

2 marks, and a final answer off by the whole constant term

What not to write

“∑i=1n(4i2n2−1)2n=8n3∑i=1ni2−2n→83\sum_{i=1}^{n}\left(\frac{4i^2}{n^2} - 1\right)\frac{2}{n} = \frac{8}{n^3}\sum_{i=1}^{n} i^2 - \frac{2}{n} \to \frac{8}{3}.”

What to write

“∑i=1n2n=n⋅2n=2\sum_{i=1}^{n} \frac{2}{n} = n \cdot \frac{2}{n} = 2, so the limit is 83−2=23\frac{8}{3} - 2 = \frac{2}{3}.”

Why: A term that does not depend on ii is still added once per value of ii: ∑i=1nc=cn\sum_{i=1}^{n} c = cn. In a Riemann sum the constant part of ff always contributes c(b−a)c(b - a), the integral of a constant.

3. Keeping the wrong leading term of a sum of squares

2 marks, and every integral of a quadratic comes out wrong

What not to write

“1n3⋅n(n+1)(2n+1)6≈n⋅n⋅n6n3→16\frac{1}{n^3} \cdot \frac{n(n+1)(2n+1)}{6} \approx \frac{n \cdot n \cdot n}{6n^3} \to \frac{1}{6}.”

What to write

“n(n+1)(2n+1)6n3=16⋅1⋅(1+1n)(2+1n)→26=13\frac{n(n+1)(2n+1)}{6n^3} = \frac{1}{6} \cdot 1 \cdot \left(1 + \frac{1}{n}\right)\left(2 + \frac{1}{n}\right) \to \frac{2}{6} = \frac{1}{3}.”

Why: The factor 2n+12n + 1 behaves like 2n2n, not like nn. Dividing each factor by one power of nn before letting n→∞n \to \infty makes the 22 impossible to lose. Check: 13\frac{1}{3} is the area under y=x2y = x^2 on [0,1][0, 1], below the triangle's 12\frac{1}{2}.

4. Reporting an integral of zero as an area of zero

all the marks of an area question

What not to write

“∫−31(x+1) dx=0\int_{-3}^{1} (x + 1)\,dx = 0, so the region between the line and the axis has no area.”

What to write

“The line crosses the axis at x=−1x = -1: two triangles of area 22, one below and one above. The integral is −2+2=0-2 + 2 = 0, the area is 2+2=42 + 2 = 4.”

-4-3-2-112-3-2-1123+2−2y = x + 1
y=x+1y = x + 1 on [−3,1][-3, 1]: the triangle below counts −2-2, the one above +2+2. The integral is 00, the shaded area is 44.

Why: A rectangle below the axis enters the sum with a negative height. An integral is a net balance; an area is computed from ∣f∣|f|, after splitting at each crossing.

5. Believing the left sum always underestimates

1 to 2 marks for the justification, and a wrong inequality

What not to write

“L3L_3 is an underestimate, so ∫−21x2 dx>L3=5\int_{-2}^{1} x^2\,dx > L_3 = 5.”

What to write

“x2x^2 decreases on [−2,0][-2, 0] and increases on [0,1][0, 1], so L3L_3 has no fixed side. In fact the integral is 3<53 < 5.”

-3-2-112-112345L3 = 5 > 3
x2x^2 on [−2,1][-2, 1] with three left rectangles: the first one towers above the curve, so L3=5L_3 = 5 overshoots the integral 33.

Why: Left rectangles sit under the curve only where ff increases. On a function that turns, bound each monotonic piece separately, as the table above says.

6. Using an antiderivative when the question says use the definition

all the method marks: the right number alone earns at most 1 mark

What not to write

“By the definition, ∫04(16−x2) dx=[16x−x33]04=1283\int_0^4 (16 - x^2)\,dx = \left[16x - \frac{x^3}{3}\right]_0^4 = \frac{128}{3}.”

What to write

“Δx=4n\Delta x = \frac{4}{n}, xi=4inx_i = \frac{4i}{n}, Rn=64−32(n+1)(2n+1)3n2→64−643=1283R_n = 64 - \frac{32(n+1)(2n+1)}{3n^2} \to 64 - \frac{64}{3} = \frac{128}{3}.”

Why: The question tests the limit of the sum, not the value. The antiderivative may be used AFTERWARDS to check the answer, in a line marked as a check.

7. Taking the midpoint sum for the average of the left and right sums

the whole part

What not to write

“M4=L4+R42=50+342=42M_4 = \frac{L_4 + R_4}{2} = \frac{50 + 34}{2} = 42.”

What to write

“M4=f(12)+f(32)+f(52)+f(72)=63+55+39+154=43M_4 = f(\frac{1}{2}) + f(\frac{3}{2}) + f(\frac{5}{2}) + f(\frac{7}{2}) = \frac{63 + 55 + 39 + 15}{4} = 43.”

Why: The midpoint sum evaluates ff at NEW points, the centres of the strips. Averaging LnL_n and RnR_n is a different estimate, which is not the one asked for.

8. Concluding from equal left and right sums that the estimate is exact

the conclusion of the question

What not to write

“The power readings give L6=R6=28L_6 = R_6 = 28 kWh, so the energy is exactly 2828 kWh.”

What to write

“L6−R6=Δt[P(6)−P(18)]=0L_6 - R_6 = \Delta t\left[P(6) - P(18)\right] = 0 only because both end readings are 00. With PP rising then falling, the guaranteed bracket is 20.8≤E≤35.220.8 \le E \le 35.2 kWh.”

Why: Two sums that share all their interior terms differ only by their end values. Their agreement says nothing about the error, which only a monotonicity argument can bound.

9. Ignoring the order of the limits

1 mark, and every later sign

What not to write

“∫302x dx=9\int_3^0 2x\,dx = 9, the area of the triangle under y=2xy = 2x.”

What to write

“∫302x dx=−∫032x dx=−9\int_3^0 2x\,dx = -\int_0^3 2x\,dx = -9.”

Why: From 33 down to 00, Δx=−3n\Delta x = -\frac{3}{n} is negative, and every term of the sum changes sign. The area of the triangle is 99; the integral written with reversed limits is −9-9.

Which method to choose

Which tool, by the FORM of the question

Read the verb and the data of the question before writing anything: each form of question has its own tool

  • If estimate with n rectangles, or from a table of readings → write Δx\Delta x, list the nn sample points, add; then say over or under from the monotonicity

    Example: 16−x216 - x^2 on [0,4][0, 4]: L4=50L_4 = 50, R4=34R_4 = 34, M4=43M_4 = 43

  • If evaluate using the definition, or as a limit of Riemann sums → RnR_n with xi=a+i Δxx_i = a + i\,\Delta x, powers of ii, the sum formulas, then n→∞n \to \infty

    Example: ∫13(x2−2x) dx=lim⁡Rn=23\int_1^3 (x^2 - 2x)\,dx = \lim R_n = \frac{2}{3}

  • If evaluate by interpreting in terms of areas → draw the graph, cut into triangles, rectangles, trapezoids and pieces of discs, with signs

    Example: ∫039−x2 dx=9π4\int_0^3 \sqrt{9 - x^2}\,dx = \frac{9\pi}{4}, a quarter disc

  • If a limit of sums is given, find the integral → the factor like cn\frac{c}{n} is Δx\Delta x, the expression a+i Δxa + i\,\Delta x inside ff gives aa, and b=a+n Δxb = a + n\,\Delta x

    Example: lim⁡∑i=1n2n(1+2in)=∫13x dx=4\lim \sum_{i=1}^{n} \frac{2}{n}\left(1 + \frac{2i}{n}\right) = \int_1^3 x\,dx = 4

  • If integrals of f over pieces are given → additivity, reversal of the limits, linearity

    Example: ∫08(3g+1)=3(2π−4)+8=6π−4\int_0^8 (3g + 1) = 3(2\pi - 4) + 8 = 6\pi - 4

  • If show that A≤∫abf≤BA \le \int_a^b f \le B → the minimum and maximum of ff on [a,b][a, b], then m(b−a)≤∫abf≤M(b−a)m(b - a) \le \int_a^b f \le M(b - a); split to sharpen

    Example: 2≤∫021+x3 dx≤62 \le \int_0^2 \sqrt{1 + x^3}\,dx \le 6

No branch of this chapter uses an antiderivative. When the question does not impose a method, geometry is the fastest route whenever the graph is made of lines and circles; otherwise, the limit of RnR_n.

How the answer is expected to be written

A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.

Evaluating an integral using the definition

When to use it: The question says use the definition, use Riemann sums, or evaluate as a limit

  1. 1 Write Δx=b−an\Delta x = \frac{b - a}{n} and xi=a+i Δxx_i = a + i\,\Delta x, with the numbers of the question, aa included.
  2. 2 Compute f(xi)f(x_i) and write it as a combination of powers of ii, constants in front. When a≠0a \neq 0, writing ff in powers of x−ax - a often makes the cross terms vanish.
  3. 3 Write Rn=∑i=1nf(xi) ΔxR_n = \sum_{i=1}^{n} f(x_i)\,\Delta x, pull every factor that does not depend on ii out of the sum, and apply the formulas, with ∑i=1nc=cn\sum_{i=1}^{n} c = cn.
  4. 4 Test the closed form at n=1n = 1: it must equal (b−a)f(b)(b - a)f(b).
  5. 5 Let n→∞n \to \infty, dividing each factor by one power of nn, and compare the sign of the result with the graph.

Concluding sentence

“By definition, ∫13(x2−2x) dx=lim⁡n→∞∑i=1n(4i2n2−1)2n=lim⁡n→∞[4(n+1)(2n+1)3n2−2]=23\int_1^3 (x^2 - 2x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n}\left(\frac{4i^2}{n^2} - 1\right)\frac{2}{n} = \lim_{n \to \infty}\left[\frac{4(n+1)(2n+1)}{3n^2} - 2\right] = \frac{2}{3}.”

The trap: Taking the limit inside the sum, term by term, before the formulas are applied: each term tends to 00 and the sum of nn of them is not 00.

Marking: Typically 1 mark for the width and the sample point, 2 for the sum rewritten with the formulas, 1 for the limit, and the n = 1 test is what protects the other four.

Check before you hand in

Five minutes of checking recover more marks than one more problem started in a hurry.

The typical problem, taken apart

Using the definition when a is not zero, with a negative answer

Use the definition of the integral, with right endpoints, to evaluate ∫25(x2−4x) dx\int_2^5 (x^2 - 4x)\,dx. Interpret the sign of the result.

No antiderivative and no calculator: every step must be justified as on a MATH 141 midterm.

123456789-5-4-3-2-1123456below: (2, 4)above: (4, 5)
y=x2−4xy = x^2 - 4x on [2,5][2, 5]: the region dips below the axis on (2,4)(2, 4) and rises above it only on (4,5)(4, 5), so the integral must be negative.

Step 1

Δx=5−2n=3n\Delta x = \frac{5 - 2}{n} = \frac{3}{n} and xi=2+3inx_i = 2 + \frac{3i}{n}.

Why

The first line carries a method mark on its own, and the 2+2 + is the part most often dropped. Without it the sample points cover [0,3][0, 3].

Step 2

x2−4x=(x−2)2−4x^2 - 4x = (x - 2)^2 - 4, so f(xi)=9i2n2−4f(x_i) = \frac{9i^2}{n^2} - 4.

Why

Rewriting ff around a=2a = 2 makes xi−2=3inx_i - 2 = \frac{3i}{n} appear directly: the term in ii never shows up, which removes one sum and one chance of a sign error. Expanding (2+3in)2−4(2+3in)\left(2 + \frac{3i}{n}\right)^2 - 4\left(2 + \frac{3i}{n}\right) gives the same result more slowly.

Step 3

Rn=∑i=1n(9i2n2−4)3n=27n3⋅n(n+1)(2n+1)6−12=9(n+1)(2n+1)2n2−12R_n = \sum_{i=1}^{n}\left(\frac{9i^2}{n^2} - 4\right)\frac{3}{n} = \frac{27}{n^3} \cdot \frac{n(n+1)(2n+1)}{6} - 12 = \frac{9(n+1)(2n+1)}{2n^2} - 12.

Why

The constant −4⋅3n-4 \cdot \frac{3}{n} is added nn times, giving −12-12, which is −4-4 times the length 33 of the interval. Writing −12n-\frac{12}{n} here is the costliest slip of the exercise.

Step 4

Test at n=1n = 1: R1=3f(5)=3⋅5=15R_1 = 3f(5) = 3 \cdot 5 = 15, and 9⋅2⋅32−12=27−12=15\frac{9 \cdot 2 \cdot 3}{2} - 12 = 27 - 12 = 15.

Why

Ten seconds, before the limit: the closed form is confirmed on a case computed independently, so any later error can only be in the limit itself.

Step 5

(n+1)(2n+1)n2=(1+1n)(2+1n)→2\frac{(n+1)(2n+1)}{n^2} = \left(1 + \frac{1}{n}\right)\left(2 + \frac{1}{n}\right) \to 2, so Rn→9−12=−3R_n \to 9 - 12 = -3.

Why

Dividing each factor by one power of nn makes the leading coefficient 22 visible. The negative sign agrees with the figure: more of the region lies below the axis than above.

The conclusion, written out

“By definition, ∫25(x2−4x) dx=lim⁡n→∞[9(n+1)(2n+1)2n2−12]=−3\int_2^5 (x^2 - 4x)\,dx = \lim_{n \to \infty}\left[\frac{9(n+1)(2n+1)}{2n^2} - 12\right] = -3. The integral is negative because the part of the region below the axis, on (2,4)(2, 4), outweighs the part above, on (4,5)(4, 5).”

The classic mistake on this problem: Writing xi=3inx_i = \frac{3i}{n}, which computes ∫03(x2−4x) dx=9−18=−9\int_0^3 (x^2 - 4x)\,dx = 9 - 18 = -9; or writing −12n-\frac{12}{n} for the constant term, which gives +9+9 and a sign that the figure contradicts at once.

Learn by heart

  • • Δx=b−an\Delta x = \frac{b - a}{n}, xi=a+i Δxx_i = a + i\,\Delta x: the aa is never optional.
  • • ∑i=1nc=cn\sum_{i=1}^{n} c = cn, ∑i=n(n+1)2\sum i = \frac{n(n+1)}{2}, ∑i2=n(n+1)(2n+1)6\sum i^2 = \frac{n(n+1)(2n+1)}{6}, ∑i3=[n(n+1)2]2\sum i^3 = \left[\frac{n(n+1)}{2}\right]^2, from i=1i = 1 only.
  • • ∫abf(x) dx=lim⁡n→∞Rn\int_a^b f(x)\,dx = \lim_{n \to \infty} R_n; left, right and midpoint sums share the same limit.
  • • Increasing: LnL_n under, RnR_n over. Decreasing: the reverse. Turning: split first.
  • • An integral is a SIGNED area; an area is ∫∣f∣\int |f|, split at the crossings.
  • • ∫baf=−∫abf\int_b^a f = -\int_a^b f, ∫abc dx=c(b−a)\int_a^b c\,dx = c(b - a), m(b−a)≤∫abf≤M(b−a)m(b - a) \le \int_a^b f \le M(b - a).
  • • Test every closed form at n=1n = 1: R1=(b−a)f(b)R_1 = (b - a)f(b).

Frequently asked questions

How do I evaluate a definite integral using the definition with Riemann sums?

Write the width of a strip, b minus a over n, and the right endpoint a plus i times that width. Put the endpoint into the function and expand in powers of i. Pull the constants out of the sum, close it with the formulas for the sums of 1, i, i squared and i cubed, and finally let n go to infinity. No antiderivative is used at any step.

Is the left Riemann sum an overestimate or an underestimate?

It depends on the function, not on the word left. If the function increases on the interval, the left sum is an underestimate and the right sum an overestimate. If it decreases, it is the reverse. If the function turns inside the interval, neither sum has a fixed side: split at the turning point and bound each piece separately.

Why can a definite integral be zero or negative when an area cannot?

Because a Riemann sum multiplies each width by the height of the function, with its sign. Rectangles below the horizontal axis are subtracted, so the integral is the area above the axis minus the area below. To find the area of a region, split the interval where the graph crosses the axis and add the pieces as positive numbers.

How do I recognize a limit of sums as a definite integral?

Look for the factor that behaves like a constant over n: it is the width of a strip, and the constant is b minus a. Inside the function, the expression a plus i times that width is the sample point, which gives the left end a. The right end is a plus n times the width. Several readings may work, and they all give the same value.

Is the midpoint sum the average of the left and right sums?

No. The midpoint sum evaluates the function at the centre of each strip, which are new points. The average of the left and right sums is a different estimate. On the function 16 minus x squared from 0 to 4 with four strips, the midpoint sum is 43 while the average of the left and right sums is 42.

Practise it

Corrected exercises: Riemann sums and the definite integral, MATH 141 at McGill

A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.

  • 10 corrected exercises
  • 100 points
  • 150 minutes
Do the exercises
Next sheet The Fundamental Theorem of Calculus

See also

Looking for a MATH 141 tutor in Montreal?

Get in touch for a first session. The definition of the integral is where Calculus 2 starts, and every later chapter, from volumes to series, reuses its sums.

Site by Studio Squalli