(a) Estimate the area under the graph of $f(x)=\cos x$ from $x=0$ to $x=\pi / 2$ using four approximating rectangles and right endpoints. Sketch the graph and the rectangles. Is your estimate an underestimate or an overestimate?
(b) Repeat part (a) using left endpoints.