Continuous functions are integrable proof
Let be continuous. Then is integrable.
How to use
- Visualize the proof idea: for every we construct staircase functions and such that
- The applet shows when the key “mesh-size condition” of the proof is satisfied.
- Drag the blue points and to choose the interval .
- Use the slider to choose the tolerance.
- Use the slider to choose the number of subintervals in the uniform partition .
- The blue curve is the continuous function .
- The partition is uniform with mesh size
- The applet computes The vertical bracket at has height .
- The orange staircase is (intended upper bound), defined on each open interval by
- The purple staircase is (intended lower bound), defined on each open interval by
- The filled band between them is colored green/red depending on whether the proof’s size condition is satisfied.
- The proof requires choosing so that , where comes from uniform continuity (condition (7.2)).
- In the applet, this is checked via a sufficient bound (using an estimate of for the fixed function ). Concretely, it computes a number and checks whether
- If the applet shows the red message “”, then the proof hypothesis is not satisfied.
- In this red case, and are still drawn, but they are not guaranteed to satisfy on every subinterval.
- That is exactly why you sometimes see the purple staircase above the blue curve, or the orange staircase below it: the construction only becomes a true lower/upper bound after the mesh is fine enough.
- To make hold, you need to reach the green state. You can do that by:
- increasing (smaller ),
- shrinking the interval (smaller ),
- or increasing (larger , hence an easier condition).
- Once the display turns green, the intended implication of (7.2) is in effect: which gives on each , matching the proof idea.
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Theorem7.5 page 129
This applet is quiet experimental and visualizes the proof that a continuous function
is Riemann integrable by constructing two staircase
functions whose integrals differ by at most .
The function is fixed in the code as const f = (x: number) => 0.5 * Math.sin(x) * x + 2.5;.
A good way to use the applet is the same order as the proof.
First fix an interval by dragging the gliders gliderA and gliderB.
Then choose an error tolerance with epsSlider.
After selecting the , thge student should decrease the interval or add more n-steps nSlider,
to get condition 7.2 () works and therefore the all construction.
The applet computes
via const eTilde = eps / (2 * range);. The dashed bracket at
has vertical length (objects epsBracket and epsBracketLabel),
and it is colored green/red together with the construction.
Next choose (the number of subintervals) with nSlider.
The applet creates the uniform partition with , implemented
by uniformPartition(a,b,n), where dx=(b-a)/n is the mesh size, as in the proof.
const uniformPartition = (a: number, b: number, n: number) => {
const dx = (b - a) / n;
const cuts = Array.from({ length: n + 1 }, (_, k) => a + k * dx);
cuts[cuts.length - 1] = b;
return { cuts, dx };
};
On each interval the staircase functions are defined using the right endpoint :
upperH[i] = f(x_i) + eTilde; and lowerH[i] = f(x_i) - eTilde; ( I haven’t included codition 7.3: ).
These are drawn as step graphs (upperStep for in orange
and lowerStep for in purple). The filled region between them (bandPoly)
illustrates the intended inequality .
To make the -step (7.2) explicit, the code uses a
Lipschitz bound derived from . Since ,
we have and therefore .
Hence on we can take supDf = 0.5 * (1 + max(|a|,|b|)) and define delta = eTilde / supDf.
// δ ensuring (7.2)
const maxAbsX = Math.max(Math.abs(a), Math.abs(b));
const supDf = 0.5 * (1 + maxAbsX);
const delta = eTilde / supDf;
// dx < δ
deltaCopndition = dx < delta;
When dx < δ holds, condition (7.2) guarantees
that for all we have ,
which implies on each subinterval.
The band (and the -bracket) turns green when this
condition is satisfied, and red when it is not guaranteed.