The easiest way to do this is through the washer method.
This works for rotation along the x-axis. Intuitively, you're adding up loads of infinitesimally small washers of area
If the function is being rotated around the y axis, you'll need to get the curve as a function of y instead, as we'll have a dy integral, and then apply the exact same procedure.
alternatively, you can use the cylinder method.