Similarly,
U((P,P′),f)≥U(P,h), and the proof of this inequality is left as an exercise. Putting the two inequalities together with the fact that
g(x)≤h(x) for all
x,
L((P,P′),f)≤L(P,g)≤U(P,g)≤U(P,h)≤U((P,P′),f).
Since
f is integrable, it must be that
g is integrable as
U(P,g)−L(P,g)≤U((P,P′),f)−L((P,P′),f),
and we can make the right-hand side arbitrarily small. As for any partition we have
L((P,P′),f)≤L(P,g)≤U((P,P′),f), we have
∫Rg=∫R×Sf.