(a) We are finding the area in the interval from x=0 to x=2π. Since we're taking n=5 rectangles, our rectangles cover the following intervals:
[0,10π],[10π,5π],[5π,103π],[103π,52π],[52π,2π].
(b) We are finding the area in the interval from y=0 to y=2π. (In general, when we switch from horizontal rectangles to vertical, the limits of integration will change–it's only coincidence that they are the same in this example.) Since we're taking n=5 rectangles, these rectangles cover the following intervals of the y-axis:
[0,10π],[10π,5π],[5π,103π],[103π,52π],[52π,2π].
The question doesn't specify which endpoints we're using. Let's use upper endpoints, to match part (a).
