We were shown in 3u... but it's just the 'slicing' method from 4u.
For any function y = f(x), take the area from a to b and rotate around the x-axis. By taking very thin slices perpendicular to the x-axis, you end up with a series of "circles" (which are more like cylinders with next to no height). So the volume of these is pi.r^2.δx (δx is the width of the slice, just 'a very small distance'). Now r happens to be y (the distance from the x-axis to the function...sorry that I don't have a graph) and by adding up all the slices you get the volume of the solid.
δV = pi.y^2.δx
V = Sum{a->b} lim{δx->0} pi.y^2.δx
this limiting sum is defined as an integral (in the same way as the area under a curve is defined)
V = Int{a->b} pi.y^2.dx
Similarly for rotation around y-axis.
Would have made more sense with a graph, sorry.