Figure 2
The area of the \(i\)th rectangle is \([f(u_{i}) -g (u_{i})] \Delta x\).