Worked examples · Sheet 3
Modifying functions on null sets
Theory used:Integral of a measurable function
Go to: Exercise 1Exercise 2
Exercise 1
Compute .
The rationals in can be enumerated without repetition. The corresponding singletons are measurable and disjoint, so their measures add. Each singleton has measure zero because it can be covered by an interval of arbitrarily small length. Hence has measure zero, although every subinterval of positive length contains points of .
The indicator of is measurable and has integral . The other function, , is continuous and bounded on the interval and is therefore integrable. By linearity the indicator multiplied by three contributes zero. The remaining integral agrees with the Riemann integral of the continuous function. Its antiderivative is divided by two, evaluated at the two endpoints. The points above the line in the figure show some of the values at rational arguments.
Exercise 2
Compute .
Both functions are measurable because is continuous and the indicator of the rationals is measurable. Both are bounded on , so both are integrable. At irrational points the indicator is zero, so . At rational points the difference is four, but these points form a countable set of measure zero.
Thus equality almost everywhere gives equality of the integrals. This property depends on the set where the values were changed, so the added value does not enter the final calculation. Both the rationals and the irrationals are dense. Along sequences of the two kinds approaching the same point, the values of have different limits. The integral can still be computed using the continuous function , whose antiderivative is divided by three.