5

I'm wanting to plot the solid of revolution from the area between two functions such as: $1\leq x \leq e$ and $1 \leq y \leq 2 + ln(x)$, doing something like this:

f[x_]:=2+Log[x]
g[x_]:=1
RevolutionPlot3D[{{f[x]}, {g[x]}}, {x, 1, E},
 RevolutionAxis -> x, AxesOrigin -> {0, 0, 0},
 Boxed -> False, Mesh -> {5, 0}, PlotRange -> {{0, 3}, All},
 PlotStyle -> Opacity[0.5]]

plot

Is there a way to fill this empty space between $f(x)$ and $g(x)$?

Adrian
  • 411
  • 4
  • 14
thiago
  • 53
  • 4

2 Answers2

7

This one doesn't need V10:

RegionPlot3D[ 1 < Sqrt[z z + y y] < 2 + Log[x], {x, 1, E}, {y, -4, 4}, {z, -4, 4}, 
              Mesh -> None, AspectRatio -> 1, PlotRange -> {{0, 4}, {-4, 4}, {-4, 4}}]

Mathematica graphics

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
4
ir = ImplicitRegion[
  g[x]^2 <= y^2 + z^2 <= f[x]^2 && 1 < x < E, {x, y, z}];
RegionPlot3D[ir, PlotPoints -> 20]

enter image description here

or

DiscretizeRegion[ir]

enter image description here

ubpdqn
  • 60,617
  • 3
  • 59
  • 148