# How to 3D plot a volume of revolution?

**URL:** <https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343>\
**Category:** Questions\
**Tags:** mathematica, algebra, graphics-and-visualization\
**Created:** [January 22, 2014, 9:50pm UTC](https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343 "2014-01-22T21:50:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hifash](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@hifash](https://community.wolfram.com/u/hifash)\
**Post date:** [January 22, 2014, 9:50pm UTC](https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343/1 "2014-01-22T21:50:50Z")

</div>

Hi

I’m currently teaching how to calculate volumes of revolution using integration,  
for e.g. suppose f(x)=x^2 is rotated 360 degrees about the x-axis from x = 2 to x=4, the volume generated would be given by

```auto
Integral[Pi(f(x))^2,2,4]

```

What I’m trying to do is plot the generated volume for explanation and demonstration purposes.

some of the more complicated examples are something like,  
The region bounded by the curve y=9-x^2, x=2 and the x-axis is rotated 2Pi radians about the y-axis, calculate the volume of the solid generated.  
I know how to calculate the actual volume, but is there any easy way of plotting the solid formed in mathematica.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [January 22, 2014, 10:54pm UTC](https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343/2 "2014-01-22T22:54:53Z")

</div>

Dear Hifas,

are you looking for something like this?

```auto
RegionPlot3D[
 Sqrt[y^2 + z^2] < x^2, {z, -16, 16}, {y, -16, 16}, {x, 2, 4}]

```

which gives

 ![Rotation.jpg](https://global.discourse-cdn.com/wolfram/original/2X/b/be1d828c3d001ce0d0776cb469de99b861fa7b40.jpeg)

---

<div class="post-metadata">

**Author:** ![seanc](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/seanc/32/34005_2.png) [@seanc](https://community.wolfram.com/u/seanc)\
**Post date:** [January 23, 2014, 1:38pm UTC](https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343/3 "2014-01-23T13:38:53Z")

</div>

[RevolutionPlot3D](http://reference.wolfram.com/mathematica/ref/RevolutionPlot3D.html) is also very useful for plotting rotated functions in general if you want to show it done with less math.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [January 23, 2014, 4:05pm UTC](https://community.wolfram.com/t/how-to-3d-plot-a-volume-of-revolution/1343/4 "2014-01-23T16:05:52Z")

</div>

Dear Sean,

I thought that RevolutionPlot3D only shows the surface, i.e.

```auto
RevolutionPlot3D[Sqrt[t], {t, 0, 4}, AspectRatio -> 1]

```

 ![revolution_m.jpg](https://global.discourse-cdn.com/wolfram/original/3X/9/d/9d9144758048decc9d1797a541facf0383b4ca2f.jpeg)

I thought that the question was how to plot a “solid”, i.e the volume not the surface. I tried the option “Filling”, but that does apparently not work. Is there an option to get RevolutionPlot3D to draw solids?

BTW, there is this nice demonstration:

[[http://demonstrations.wolfram.com/SolidsOfRevolution/](http://demonstrations.wolfram.com/SolidsOfRevolution/)

]([http://demonstrations.wolfram.com/SolidsOfRevolution/](http://demonstrations.wolfram.com/SolidsOfRevolution/))but as far as I can see the author did not use RevolutionPlot3D either.
