As shown in the figure, I have a rectangle with sides a and b and I want to revolve it around the z-axis (vertical line) creating a solid cylinder.
The volume (V) of the cylinder is well known and is $$V=\pi r^2h$$
where r is the radius of the cylinder and h is the height of the cylinder. In this case, length a of the rectangle side is the radius and b is the height. But if I now rotate this rectangle around the vertical axis through the point in the center and try to integrate to get the volume, isn't the differential volume equal to,
dV = Area of Rectangle multiplied by the differential thickness = (ab)(Rd$\phi)$
where $\phi$ is the angle of rotation and $Rd\phi$ is the differential thickness of the arc over which the rectangle moves. But since R is equal to a, plugging in yields,
$$dV = abad\phi = a^2bd\phi$$
The volume is then found by integrating from $0$ to $2\pi$,
$$V = \int_{0}^{2\pi}a^2bd\phi$$
and since a and b are constant,
$$V = a^2b\int_{0}^{2\pi}d\phi$$
or
$$V = a^2b(2\pi - 0) = 2\pi a^2b$$
Now comparing this to the standard formula for a cylinder by substituting in r = a and h = b yields,
$$V = 2\pi r^2h$$
This result is twice the standard formula for a cylinder. Where did I go wrong?
Edit#1: I have read the answers on this question. But this was just a very simple geometry to help me understand. What I really want to do is rotate a variable area trapezoid around a focus of an ellipse and obtain an expression for the volume. Assume the side of the trapezoid through the point is constant and equal to "c". In the x-y plane that cuts the solid in half the distance is "a" (this would be equivalent to the height of a trapezoid when figuring the area) and b is the height along the edge of the ellipse. So, the area of the trapezoid would be,
$$Area = \frac{c+b(\phi)}{2}a(\phi)$$
and I thought the differential distance would be $a(\phi)d\phi$
$$dV = \frac{c+b(\phi)}{2}a(\phi)a(\phi)d\phi=\frac{c+b(\phi)}{2}(a(\phi))^2d\phi$$
I've included a .gif below which I hope is viewable.
Edit#2: Based on the responses for the rotating rectangle, I'm now thinking that the differential volume for the rotation of the variable area trapezoid should be,
$$dV = \frac{(a(\phi))^2b(\phi)}{2}d\phi$$
If someone could confirm this or tell me why this is incorrect I would be most grateful. Thank you.
Edit#3: As I think about this some more in light of the answers below, I think I still have a problem in that the height, "b" is not uniform over the length "a, where "a" now is any internal length of the vector (at a specific angle of $\phi$) from the point, through which the vertical axis runs, to the ellipse edge. So, "b" is then a function of both "a" and $\phi$? If it makes more sense "a" could be replaced by "r" and then r = a at the edge of the ellipse. So using "r", the volume would be
$$dV = \frac{(a(\phi))^2b(r,\phi)}{2}dr d\phi$$
and now I need a double integral. Any thoughts from anyone?