4.2.3 · D4Calculus II — Integration

Exercises — Riemann sums — left, right, midpoint; formal definition of definite integral

2,992 words14 min readBack to topic

Throughout, the objects are exactly the ones the parent built:

Two toolbox facts you'll need — the Summation formulas for powers of : Here means "add these up as runs ." We anchor them because a limit of a Riemann sum is always one of these sums in disguise, then .


Level 1 — Recognition

L1·Q1 — Read the notation

For with subintervals (uniform), write down , the grid points , and the midpoint sample point of the third subinterval.

Recall Solution

What we're doing: just decoding symbols — no computation of areas yet. Grid points : The third subinterval is . Its midpoint sample point is Answer: ; grid starts ; third midpoint .

L1·Q2 — Match the picture to the rule

Look at the figure below — it has three side-by-side panels approximating the same increasing curve. Reading left to right, the panels are the leftmost, centre, and rightmost panels. In each panel every rectangle takes its height at a fixed spot in its strip. Decide which panel is the Left rule, which is the Right rule, and which under-/over-estimates.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral
Recall Solution

What we're doing: connecting sampling location to over/under behaviour for an increasing . Read the panels by position, not colour.

  • Leftmost panel — Left rule. Each rectangle takes its height at the left edge of its strip. On a rising curve the left edge is the lowest point of that strip, so every rectangle sits below the curve → underestimate.
  • Rightmost panel — Right rule. Each rectangle takes the right edge, the highest point of a rising strip → rectangles poke above the curve → overestimate.
  • Centre panel — Midpoint rule. Height taken at the strip's centre; the sliver poking out above roughly cancels the sliver missing below → closest to the true area. Answer: Leftmost = Left = under; Rightmost = Right = over; Centre = Midpoint = best. (The colours in the figure — burnt orange, plum, teal — merely decorate these three; the position and edge-choice are what identify them.)

Level 2 — Application

L2·Q1 — Left, Right, Midpoint by hand

For on with , compute , , and .

Recall Solution

Setup: , grid : .

Left samples (drop the last point): Right samples (drop the first point): Midpoint samples : Check the ordering: is increasing, so , and the true area is . Midpoint is closest. ✓

L2·Q2 — Signed area (curve dips below the axis)

Compute for on , . Interpret the sign.

Recall Solution

Setup: , grid . Right samples . Interpreting the sign: where (for ) the "height" is negative, so its rectangle contributes a negative area. This is Signed area: area below the axis counts as minus. Here the negative chunk and positive chunk net to . The true integral ; our coarse overshoots (increasing function ⇒ right overestimates) but the concept — signed contributions — is the point. ✓


Level 3 — Analysis

L3·Q1 — Predict without computing

on . Without evaluating any sum, decide whether , , over- or under-estimate , or whether you can't tell. Then find the exact integral to confirm.

Recall Solution

The key idea: the "left over/under, right over/under" rule from the parent note only applies to a monotonic function. On , rises? No — it falls from down to . It is monotonic decreasing on the whole interval.

  • Decreasing ⇒ left edge is the tallest point of each strip ⇒ Left overestimates.
  • Decreasing ⇒ right edge is the lowestRight underestimates.
  • Midpoint: best, by cancellation. Confirm exactly: So the true value is ; around it. ✓ (This uses the Fundamental Theorem of Calculus as an oracle — legal for checking, not for the from-scratch derivations of L5.)

L3·Q2 — When left and right agree

Show that for any continuous on , the right and left sums differ by Then explain what this says as .

Recall Solution

What we're doing: subtract two sums term by term and watch a telescope collapse. Why line these up: every interior term appears in both lists, so it cancels in the difference. Only the two ends survive: What it means: as , and is a fixed number. So : left and right sums squeeze together toward the same limit — a first glimpse of why the integral is well-defined (see Continuity and Integrability). ✓


Level 4 — Synthesis

L4·Q1 — Rewrite a limit as an integral

Recognise the limit as a definite integral and evaluate it:

Recall Solution

Strategy: reverse-engineer the pieces , , , from the pattern .

  • The lone is the width . Since , this means .
  • The sample point is . With , ✓ — a right sum on .
  • The height is evaluated at , so . Therefore Evaluate (antiderivative of is ): Answer: . This is exactly the trick Area under a curve problems use in reverse. ✓

L4·Q2 — Compare with the Trapezoidal Rule

Using your L2·Q1 values (, , ) for (true ): (a) Compute the Trapezoidal estimate . (b) Whose error is smaller, or ? By what factor, roughly?

Recall Solution

(a) The Trapezoidal Rule averages left and right: (b) Errors (signed, true − estimate): Sizes: vs . So midpoint's error is about half the trapezoid's, and opposite in sign — the classic relationship. Answer: ; midpoint wins by roughly a factor . ✓ (Push higher and both shrink; see Simpson's Rule which cleverly combines and to kill even more error.)


Level 5 — Mastery

L5·Q1 — Full from-scratch limit

Prove directly from the definition (right sums, no Fundamental Theorem) that

Recall Solution

Step 1 — set up the grid. , so , and Why: right sums evaluate at these grid points.

Step 2 — write the sum. With , Why we may split like this: a sum of two things added together is the sum of each piece separately (addition can be regrouped), and any factor that does not depend on the counter — here and — is the same in every term, so it can be pulled outside the as a common multiplier. What's left inside is a pure we have a formula for.

Step 3 — apply summation formulas. (adding the constant a total of times) and : Why: substituting the closed forms turns the sum into ordinary algebra we can simplify.

Step 4 — take the limit. As , the tail (a fixed top over an exploding bottom shrinks to nothing): Cross-check with the antiderivative: Watch the endpoints: the answer is the difference , not the upper value alone — the Riemann limit already subtracts the lower endpoint for you. ✓

L5·Q2 — A cubic from scratch

Compute as a limit of right Riemann sums.

Recall Solution

Step 1 — grid. , . Step 2 — sum. Why comes out front: from cubing , times from , and none of it depends on the counter , so it pulls outside the leaving a pure . Step 3 — plug : Step 4 — limit. Divide top and bottom by (the fastest-growing power, so the surviving pieces become constants): .

L5·Q3 — The degenerate / pathological case

(a) What is for any ? Argue from the Riemann definition. (b) Give a bounded function on that is not Riemann integrable, and say precisely why the definition fails.

Recall Solution

(a) Zero-width interval — argued through the mesh. We are not allowed to set and call it a partition; the definition works with genuine partitions whose mesh is then driven to . So take any honest partition of the interval . But is a single point: its total length is , and the widths of its subintervals are non-negative numbers summing to , hence every . Therefore, for any partition (its mesh is already ) and any choice of sample points , Every admissible Riemann sum equals , so the limit as is trivially : The point: we did not assume " is a partition." We looked at legitimate partitions of a degenerate interval and found the widths are forced to by the interval having zero length. ✓

(b) Dirichlet function. Let It is bounded (). Fix any partition of into strips of width . In each subinterval, no matter how tiny, there is both a rational and an irrational number (both kinds are dense — see Limits of sequences). The definition demands the same limit for every legal choice of sample points . Test two legal choices:

  • All rational: every height , so
  • All irrational: every height , so Two legal sampling choices give limits and . Since , no single number can be the limit for all choices, so fails the integrability requirement — it is not Riemann integrable. This is exactly why the parent's phrase "for every choice of sample points" is the definition's teeth, not decoration (contrast with Continuity and Integrability, where continuity guarantees one common limit). ✓

Active Recall

Right-sum grid point for with strips
, where .
What does the sample point mean?
Any chosen point inside strip where you read the height; Left , Right , Mid .
What is the mesh and why must it tend to ?
The widest strip ; driving it to forces every strip to vanish, not just the average.
for continuous on
, which as .
Value of and why
; the zero-length interval forces every , so every Riemann sum is .
Why is the Dirichlet function not Riemann integrable?
Rational samples give sum , irrational samples give — different limits, so no unique exists.
Limit as an integral
.