This is a good example of optimization and modelling. The first step is to draw a picture of the problem. It makes it easier to see what you're doing.
Secondly, we must determine what values we know, and what equations we can form using the information given. We know that the radius of the sphere is 10, and that the volume of the cylinder (V) is pi*(r^2)*h, where h is the height of the cylinder. We also know how the radius is related to the height and radius of the sphere.
radius of sphere: 10
V = pi * r^2 * h
In order to keep going, we need to determine how the radius of the cylinder is related to the height. We know that the centre of the cylinder will be located in the centre of the sphere, and that the top and bottom corners of the cylinder will touch the outside of the sphere. Therefore, we can can use Pythagoreans Theorem to solve for r. The triangle we will use is the radius and half the height as the legs and the radius of the sphere as the hypotenuse.
r^2 + (h/2)^2 = 10^2
Therefore... r^2 = 10^2 - (h/2)^2
Notice that we'll never need to know the value of r, since we use r^2 in our equation for volume.
Let's plug this new radius into our original volume equation.
V = pi * r^2 * h = pi * (100 - (h^2)/4) * h
Simplify... V = 100*pi*h - (pi/4)*h^3
In order to find the maximum of this equation, we need to find the derivative (dV/dh). Our function (and therefore, the volume of the cylinder) will be maximized at a critical point, where the derivative equals zero. Use the power rule to find the derivative.
dV/dh = 100*pi - (3*pi/4)*h^2 = 0
Solve for h... h^2 = (100*pi) / (3*pi/4)
Pi cancels out... h = sqrt(400/3) = 11.547
Now that we have the height, let's plug it back in for our volume equation...
V = 100*pi*h - (pi/4)*h^3 = 100*pi*11.547 - (pi/4)*11.547^3
So, our maximum volume is 2418.