One thing I recommend in problems like this is to note specifically what the variables represent. In the first problem, x is the distance from a "layer of oil" to the pump. At the very top of the cylinder, x= 4, and at the bottom, x= 4+ 6= 10. The center of the circular cylinder would be at x= 4+ 3= 7 so we can write the equation of the circle as (x- 7)
2+ y
2= 9. That's where y= \sqrt{9- (x-7)^2} comes from. You set up the integral by imagining the oil in "layers" each a fixed distance, x, from the pump. Each "layer of oil" is a rectangle having length 12 and width 2y= 2\sqrt{9- (x-7)^2}. The area of that rectangle is (12)(2\sqrt{9-(x-7)^2}= 24\sqrt{9-(x-7)^2}. That's where the "24" comes from. Taking dx as the infinitesmal thickness, the volume is 24\sqrt{9- (x-7)^2}dx and the weight of that "layer of oil" is 24\rho \sqrt{9-(x-7)^2}dx. Since it must be lifted a distance x, the work done to lift that "layer of oil" is 24\rho x\sqrt{9- (x-7)^2}dx. Since x runs from 4 to 10, the total work done is \int_4^{10}24\rho x\sqrt{9-(x-7)^2}dx= 24\rho\int_4^{10}x\sqrt{9-(x-7)^2}dx.
In the second problem, there are two differences. First, the tank is vertical so no matter what x is the area of a "layer of oil" is \pi r^2= 4\pi so the weight of that "layer" is 4\pi \rho dx. The second difference is that nothing is said about where the pump is in relation to the cylinder. You appear to be assuming that it is sufficient to pump the water to the top of the cylinder. In that case, water at the top, half way up the cylinder, only has to be pumped 5 ft while water at the bottom must be pumped 10 ft. Taking x to be the distance from the layer to the top of the cylinder, we integrate the weight times x: the work done is 4\pi\rho\int_5^{10}xdx.
I am still not understanding what the difference is between the limits of integration for a problem like this and the x inside the integral. Aren't they both describing the distance the fluid must flow?
More correctly they describe the height the fluid must be lifted- the fluid might be directed horizontally for a while but that would not require any work. In any integral, the limits of integration give the minimum and maximum values of the variable of integration. Here x represents the height any "piece of oil" or "layer of oil" must be lifted.
Also the 4\pi \rho makes sense here as being the Force that needs to be applied.
Not quite. The force (weight) of each thin layer of water is actually 4\pi \rho dx, the volume of a thin disk times the density.
So taking this force times the distance (integral) gives us the work. Right? So does this mean the expression I had for work in the first equation, x\sqrt{9- (x-7)^2}, is just distance and has nothing to do with Force?
Again, not quite. You seem to be thinking "force times distance" as "constant in front of integral times integral". That's not the case. In both problems, x is the "distance". It just happens that the force in the second problem
is a constant and so can be taken out of the integral. Of course, x\sqrt{9- (x-7)^2}, is
not a "distance"- look at the units. If x is measured in feet then that is feet squared. It's actually the area of a "layer of oil". multiplying it by density and "thickness", dx, gives the weight or force needed to lift it.
Remember how an integral could be defined in terms of a Riemann sum? Fortunately for us all, it turns out we can do an integral in terms of an "anti-derivative" instead- that's much easier. But you should still think of integrals in terms of Riemann sums because that's how we set up integrals in problems like these. In both problems the weight (force to lift) a little drop of oil or water is constant. But we can't just multiply "force times distance" because the distance to be lifted varies. What we do is look at the set of all drops of oil that will be lifted the same distance. In the first problem, with the tank horizontal, that is a rectangular layer, in the second, a disk. In the first problem the size of the rectangle depends on x, in the second it happens to be constant. But in both cases, we calculate the area, multiply by the "infinitesmal" thickness dx to get its "infinitesmal" volume, and then by density to find its weight- the force necessary to lift it. We multiply that by x to find the work done in lifting that single layer. That's exactly the same as calculating the area of those narrow rectangles that make up the "area under the curve". Adding all the work for all those "layers" gives (approximately) the total work just as adding the areas of all those rectangles gives (approximately) the total area under the curve. The last step is to take the limit so that the Riemann sum becomes an integral and we get the exact values.