Let a<b be real numbers, let B be the Borel σ-algebra on R, and let λ be Lebesgue measure, whose domain is B by claim 3 of Existence of Lebesgue Measure on the Real Line. Define
B[a,b]:={S∩[a,b]:S∈B},λ[a,b](E):=λ(E)(E∈B[a,b]),
and for f:[a,b]→R let f~:R→R denote the zero extension, f~=f on [a,b] and f~=0 elsewhere, and likewise for [0,∞]-valued f. All Lebesgue integrals of nonnegative measurable functions and Lebesgue integrals of integrable functions are as in those definitions. Then:
1. (Restricted measure space) B[a,b] is a σ-algebra on [a,b], every member of B[a,b] belongs to B, and ([a,b],B[a,b],λ[a,b]) is a measure space with λ[a,b]([a,b])=b−a. Consequently ([a,b],B[a,b],(b−a)−1λ[a,b]) is a probability space.
2. (Zero extension) A function f:[a,b]→[0,∞] is measurable from ([a,b],B[a,b]) to [0,∞] with its Borel σ-algebra, in the sense of Lebesgue Integral of a Nonnegative Measurable Function, if and only if f~ is so measurable from (R,B); and in that case
∫[a,b]fdλ[a,b]=∫Rf~dλ.
The same holds for real-valued f with measurability read via B on R, and integrability of f equivalent to integrability of f~, with equal integrals.
3. (Continuous integrands) Regard [a,b] as a subset of the real line with the absolute value metric, and let f:[a,b]→R be continuous on [a,b]. Then f is Riemann integrable on [a,b], it is a square-integrable random variable on the probability space of claim 1, and its Lebesgue integral agrees with its Riemann integral:
∫[a,b]fdλ[a,b]=∫abf(t)dt.
4. (Cauchy-Schwarz inequality) If f,g:[a,b]→R are B[a,b]-measurable and ∫[a,b]f2dλ[a,b] and ∫[a,b]g2dλ[a,b] are finite, then fg is integrable with respect to λ[a,b] and
(∫[a,b]fgdλ[a,b])2≤(∫[a,b]f2dλ[a,b])(∫[a,b]g2dλ[a,b]).
In particular, taking g=1: ∣f∣ is integrable and (∫[a,b]∣f∣dλ[a,b])2≤(b−a)∫[a,b]f2dλ[a,b].
5. (Null integrands) If f:[a,b]→[0,∞) is B[a,b]-measurable and ∫[a,b]fdλ[a,b]=0, then λ[a,b]({t∈[a,b]:f(t)>0})=0.
6. (Limits on co-null sets) Let D∈B[a,b] satisfy λ[a,b]([a,b]∖D)=0. If fn:[a,b]→[0,∞) are B[a,b]-measurable, f:[a,b]→[0,∞) satisfies f(t)=0 for t∈/D, and for every t∈D the real sequence (fn(t))n has limit f(t), then f is B[a,b]-measurable. Moreover, for every B[a,b]-measurable g:[a,b]→[0,∞], writing 1D for the indicator of D,
∫[a,b]g1Ddλ[a,b]=∫[a,b]gdλ[a,b].