The Lebesgue integral
"Measurable functions" showed which functions allow the question "how much of the space is sent into this range of values?" to be answered, and it introduced the simple functions and the dyadic staircases that approach any measurable function from below. "Lebesgue measure and null sets" supplied the measure itself, length on the line and area in the plane. What is still missing is a way to add up a function over a space: to say what the total of is when has a value at every point of , of the unit square, or of any other measure space. This lesson builds that total, the Lebesgue integral for an arbitrary measure . It starts from the column-by-column method of school calculus, shows where it breaks, and replaces it by a layer-by-layer method that needs only the measures of the level sets of . The next lesson, "Convergence theorems", asks what happens to integrals when functions are replaced by their limits.
Riemann's columns
The integral of school calculus, the Riemann integral, slices the domain. To find the area under on , cut into columns of width , and on each column record the lowest and the highest value of . Rectangles with the lowest heights fit under the graph, and their total area is the lower sum. Rectangles with the highest heights stick out above it, and their total area is the upper sum. The integral is the number that stays squeezed between the two sums as the columns become narrow.
Take the hump , which rises from 0 at to 1 at and falls back to 0 at . With columns the lowest values are and the highest are , so the lower sum is and the upper sum is . With the two sums are and . The gap between them halves every time the number of columns doubles, and both sums close in on the same number, .
This works because a continuous function hardly changes on a narrow column. The method quietly assumes that is nearly constant on short stretches of the domain, and a function that jumps within every stretch breaks the assumption. Consider the indicator on , equal to 1 at the rational numbers and 0 elsewhere. Every column, however narrow, contains both rational and irrational numbers, since both are dense, so every upper sum is 1 and every lower sum is 0: the Riemann integral does not exist.
Yet "Lebesgue measure and null sets" showed that the rationals have length 0. A function equal to 1 on a set that occupies no room should add nothing to a total. Columns cannot see this, because they look at where a value sits; layers look at how much of the space carries each value.
Lebesgue's layers
Lebesgue explained his idea with coins. A cashier has a heap of mixed coins and wants their total value. One way is to take the coins one by one in the order they come to hand and keep a running sum: that is the column method, which follows the points of the domain in order. The other way is to sort the coins into piles by value, count each pile, and add up value times count. This never needs to know in what order the coins lay; it needs only how many coins there are of each value.
Replace the heap by the space , the coins by points, and the number of coins by the measure. The layer method groups the points of by the value of , measures each group, and adds up value times measure, whether the points of a group are close together or scattered over the whole space.
Do this for with the staircase of "Measurable functions", which rounds every value down to a multiple of . It takes the value on a set of length , the value on a set of length , the value on a set of length and the value on a set of length , and the four lengths add up to 1. The total of the staircase is
This underestimates the area , because every value was rounded down; finer bands improve it. For the only layer that counts is the value 1 on a set of length 0, contributing , so the total is 0, as it should be. Layers need the measure of the sets , and measurability, the subject of "Measurable functions", is exactly what makes these sets measurable.
Integrals of simple functions
The layer method is exact for functions that take finitely many values. Let be a simple function. Write it in standard form, with distinct values taken on disjoint measurable sets . Its integral with respect to a measure is
with the convention , so that a value 0 never contributes, even on a set of infinite measure. In words: each value times the amount of space on which it is taken.
The same number results from any way of writing as a combination of indicators, even if the sets overlap. Take on with length as the measure, the example of "Measurable functions". Reading the formula off the overlapping form gives . The standard form gives . The reason is additivity. Cut the space into the pieces on which none of the indicators changes, the atoms of the σ-algebra that these sets generate, as in "σ-algebras and Borel sets". Each set is a disjoint union of atoms, so is the sum of the measures of its atoms, and both ways of writing add up the same terms.
Two rules follow for simple functions and : the integral is linear, , because the combination is again a list of indicators; and monotone, since means that on every atom the value of is at most that of , so . For an indicator, .
A dart board shows a simple function with several layers. Take the unit square, with a target centred in it. Points closer than to the centre score 10, points between distance and score 5, between and score 2, between and score 1, and the four corners beyond distance score 0. The score is a function on the square with five values, each taken on a ring or on the corners. The measure is area, the two-dimensional Lebesgue measure from "Lebesgue measure and null sets", under which a disc of radius has area . The integral is the score of the board weighted by area: every ring contributes its score times its area.
Integrals of non-negative functions
A general function takes infinitely many values, so the sum of value times measure has no finite list to run over. The remedy is to use simple functions as lower estimates. Let be measurable. Every simple function with is an underestimate of the total of , and the best underestimate is the total:
The value lies in , and it can be . If is itself simple, the definition returns the old formula, since is one of the allowed and monotonicity bounds all the others.
A supremum over all simple functions below looks unworkable, but one sequence suffices. The dyadic staircases of "Measurable functions", , increase to at every point, and their integrals increase to . This last step is the monotone convergence theorem, the first result of the next lesson, so here it is taken as given. For , the set is an interval of length , as computed in "Measurable functions", and adding up the layers of gives
- : , with a distance of to the exact value .
- : , as computed above, distance .
- : , distance .
- : , distance ; at the value is .
The distance roughly halves with every refinement, and the integrals of the staircases creep up on from below.
The figure draws the staircase under the curve and, for comparison, the Riemann construction with the same number of pieces. Choose "Slice the range" or "Slice the domain" and move . With the defaults, slicing the range at uses levels and shows the Lebesgue sum next to the exact value . Switching to slicing the domain shows midpoint columns and the midpoint Riemann sum .
- Lebesgue sum ∫ φₙ
- 0.5956
- Midpoint Riemann sum
- 0.6719
- Exact ∫ f
- 0.6667
- Levels
- 8
The Lebesgue sum adds each level times the length of the set where f reaches it; it never asks f to be continuous.
For this smooth hump the midpoint Riemann sums converge faster than the staircase sums: against at . Speed on smooth functions is not the point of the Lebesgue construction. The point is that it needs only the measure of level sets, so it works for every measurable function and for every measure.
The layer-cake formula
The staircase can be taken apart into thin flat layers. At a point where has the value , exactly the indicators for are on, and each adds . So
a stack of slabs of height , the -th slab lying over the set where reaches the height . Integrating a sum of simple functions term by term gives
The right side is a sum of rectangles of width whose heights are the values of the tail function , the measure of the part of the space where exceeds . This function decreases as grows, and the sum is an approximation to the area under its graph. Letting grow, and using that , gives the layer-cake formula:
The integral of over the space equals the ordinary area under the tail function. The picture is a cake: the layer at height has the size of the part of the space that reaches it, and the cake is the sum of its layers. The derivation is an outline; the passage to the limit uses monotone convergence.
For the hump, for and beyond, so
the same as the column integral . For the function on , which is unbounded, the set is all of for and the interval for , so , and the area is : the integral exists and equals , because the layers shrink too slowly to have a finite area.
On the dart board the layers are easy to see. The score reaches at least 1 on the disc of radius , at least 2 on the disc of radius , at least 5 on the disc of radius and at least 10 on the disc of radius . Their areas are the tail values , , and . The score climbs from 0 to 1, 2, 5 and 10, so the layers have heights , and weighting each tail area by its layer height must reproduce the integral found ring by ring, as the next worked example confirms.
Functions with both signs
The construction above needs . A function with both signs is split into two non-negative parts: the positive part and the negative part . Then and . The positive part keeps the places where lies above the axis, and the negative part is the reflection of the places where it lies below.
A function is integrable if , that is, if both and are finite, and then
The set of integrable functions is written . As an example, on is positive on and negative on . By symmetry , so and .
The finiteness requirement is not decoration. Without it, the difference can read . On with length, let , equal to to the right of 0 and to the left. Both and equal . Adding up over gives , but adding it up over gives . Different ways of exhausting the line produce different answers, so there is no reason to prefer one of them, and the integral is simply not defined. Integrability rules out exactly this: when , every sensible way of exhausting the space produces the same total.
Properties of the integral
The integral obeys four rules. Each is proved first for simple functions, then for non-negative functions through staircases, and finally for integrable functions by splitting into positive and negative parts; here only the meaning and the reasons are given.
- Linearity. For integrable and real : . On , and , so .
- Monotonicity. If , then . Applied to this gives : cancellations between positive and negative parts can only shrink a total.
- Null sets do not matter. If almost everywhere, then . Let be the null set where they differ. Every simple function below vanishes outside , so each of its terms is 0, and . Changing the hump to the value 5 at every rational point leaves its integral at , and .
- Zero integral. For , exactly when almost everywhere. If on a set of measure , then , and monotonicity gives . So forces every to be null, and is their countable union, which is null by "Lebesgue measure and null sets". The other direction is the previous rule.
The argument behind the last rule gives a general inequality: for , , hence
A function with a small integral can be large only on a small set. On the dart board, and give the bound on the area where the score exceeds 5, while the true area, the centre disc of radius , is . The bound is cheap and holds for every measure space. The probability part of this track meets it again under the name of Markov's inequality.
Integrals against other measures
Nothing in the construction used length. The integral was built from a measure, simple functions and a supremum, so it exists for every measure space . The measures of "Measuring the size of sets" give familiar quantities, and each has a one-line formula.
- Counting measure on $\mathbb{N}$. A set has measure equal to its number of elements, so , and extending through simple functions and staircases gives . For the integral is , and for it is . On the six faces of a die with counting measure, .
- The Dirac measure $\delta_x$. All the mass sits at one point, so : integrating against means evaluating at .
- Weighted point masses $\sum_i w_i \delta_{x_i}$. The integral is the weighted sum . For the masses at , at and at , and the function , it is .
- A measure with a density $\rho$. If , then . For an indicator this is the definition of , linearity carries it to simple functions, and staircases carry it to all non-negative . On the rod of "Measuring the size of sets", with , the integral of the position is .
The last integral has a physical meaning. The rod has total mass 1, and position times mass added over all its pieces is its balance point: , right of the middle because the rod is heavier towards its right end. With length instead of the rod's mass, the same integral gives .
One condition deserves care. On with counting measure, is integrable exactly when , that is, when the series converges absolutely. The alternating harmonic series converges, to , but , so is not integrable. This is no accident. A measure space has no order on its points, so an integral cannot depend on the order in which they are visited, while the sum of a series that does not converge absolutely changes when its terms are rearranged: by a theorem of Riemann, it can be made to converge to any number. Absolute integrability is what makes the total independent of order.
Riemann and Lebesgue compared
Whenever a bounded function on an interval has a Riemann integral, it has a Lebesgue integral with the same value. The reason is short. The upper and lower sums of a Riemann partition are integrals of step functions, and step functions are simple functions. A lower step function lies below and an upper one above it, so the Lebesgue integral of lies between the lower and upper sums, and a Riemann integral exists exactly when those can be squeezed together.
The Lebesgue integral exists for more functions. The indicator has no Riemann integral, but its Lebesgue integral is . The two integrals also treat unbounded domains differently. The improper Riemann integral is defined as the limit of as , and the limit exists and equals : the first hump above the axis has area , and the following humps alternate in sign and shrink, so they cancel in a controlled way. The Lebesgue integral refuses to treat it as integrable. On the hump over , and , so that hump of has area at least . These bounds form a harmonic series, which grows without limit: humps give at least , and it takes about million humps to pass . So , and is not integrable. This is the same problem as before: the improper Riemann integral depends on cancelling in a fixed order.
The last difference matters most for the next lesson. Riemann integrals do not survive limits. Enumerate the rationals as and let be the indicator of the first of them. Each is zero except at finitely many points, so it has a Riemann integral, . Yet the pointwise limit of the is , which has no Riemann integral at all. For the Lebesgue integral the limit is again integrable, and equals . Under which conditions limits and integrals may be exchanged is the subject of "Convergence theorems".
Summary
- The Riemann integral slices the domain into columns and needs to be nearly constant on short stretches; the Lebesgue integral slices the range into layers and needs only the measures of level sets, as in sorting coins by value before counting them.
- For a simple function, ; for , is the supremum of the integrals of simple functions below , approached by the dyadic staircases.
- The layer-cake formula turns an integral over the space into an area under the tail function; on the dart board both routes give .
- A function is integrable when , and then ; the integral is linear and monotone, ignores null sets, and vanishes for only when almost everywhere.
- Against counting measure the integral is a series, against an evaluation, against point masses a weighted sum, against a density the integral of ; absolute convergence is what integrability means for series.
- The Lebesgue integral agrees with Riemann's wherever that exists, covers and any measure space, and is the integral that behaves well under limits.