The Washer Method
When a region doesn't reach the axis of revolution, each slice perpendicular to the axis sweeps out a disc with a hole in it, a washer.
Outer and inner radius
A washer of thickness has an outer radius , from the axis to the far edge of the region. Its inner radius runs from the axis to the near edge. Its volume is the big disc minus the hole:
Each radius is squared on its own before subtracting. The area of a washer is a difference of two disc areas.
Revolving about other lines
For the axis or , measure both radii from that line. For an axis below or to the left of the region, each radius is the edge minus the axis value. For an axis above or to the right, it's the axis value minus the edge.