Let's take a typical rectangle as in the picture, when it is rotated around $y$-axis we get a shell of volume $dV$ given by
$dV=2\pi x \left[\frac{1}{4}x^3+2-(2-x)\right]dx$
The volume you are looking for can be found as
$$V=\int_0^2 2\pi x \left[\frac{1}{4}x^3+2-(2-x)\right]dx$$
Let's take a typical rectangle as in the picture, when it is rotated around $y$-axis we get a shell of volume $dV$ given by $dV=2\pi x \left[\frac{1}{4}x^3+2-(2-x)\right]dx$
The volume you are looking for can be found as $$V=\int_0^2 2\pi x \left[\frac{1}{4}x^3+2-(2-x)\right]dx$$