Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I'm learning how use this program. And I have problem with how graph the solid of revolution.Here i write one exercise.
y=2-1/2x, y=0,x=1,x=2; about the x-axis. This is the graph also the volume enter image description here

x=1 and x=2 limited the size of the graph and I don't know how do that in Wolfram Mathematica. The steps i think are: RevolutionPlot3d [2-1/2x,{x,0,4},{y,0,4}] ....

share|improve this question

marked as duplicate by m_goldberg, Michael E2, Öskå, ubpdqn, bobthechemist Aug 23 at 12:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
RevolutionPlot3D[2 - 1/2 x, {x, 1, 2}] –  belisarius Aug 23 at 1:51

1 Answer 1

up vote 5 down vote accepted

Usage is like this.

RevolutionPlot3D[2 - x/2, {x, 1, 2},
 RevolutionAxis -> "X", Boxed -> False,
 PlotRange -> {{0, 3}, All, All},
 AxesOrigin -> {0, 0, 0},
 Mesh -> {5, 0},
 PlotStyle -> Opacity[0.7]
 ]

Blockquote

And you can use Manipulate.

Manipulate[RevolutionPlot3D[2 - x/2, {x, a, b},
  RevolutionAxis -> "X", Boxed -> False,
  PlotRange -> {{0, 5}, All, All},
  AxesOrigin -> {0, 0, 0},
  Mesh -> {5, 0},
  PlotStyle -> Opacity[0.7]
  ], {{a, 1}, 0, 2}, {{b, a + 1}, a + 0.01, 4}]

Blockquote

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.