VolumeCylinders::usage="Calculate the volume between the two cylinders: + = 9 and + = 9 in the first octant.References: Internet: Ronny on line; Personal.";
2
x
2
z
2
y
2
z
Development for volume:
Method 1 (See development for the graph below):
By symmetry:
In[]:=
V=2
3
∫
0
x
∫
0
9-
yx2
x
Out[]=
18
Method 2:
In[]:=
ℜ=ImplicitRegion[+<=9&&+<=9&&y>=0&&z>=0&&x>=0,{x,y,z}];Volume@RegionIntersection[ℜ]
2
x
2
z
2
y
2
z
Out[]=
18
Development for the graph:
In[]:=
Solve[{+==9,+==9},{y,z}]
2
x
2
z
2
y
2
z
y-x,z-
9-
,yx,z-2
x
9-
,y-x,z2
x
9-
,yx,z2
x
9-
;2
x
In[]:=
Reduce[9->=0,x]
2
x
-3≤x≤3;0<=x<=3;
It’s only the first octant.
Animation:
In[]:=
Manipulateζ[t_]:=t,t,[t_]:=t,0,[t_]:=0,t,+<=9&&+<=9&&y>=0&&z>=0&&x>=0,{x,0,3},{y,0,3},{z,0,t1},Mesh->None,PerformanceGoal->"Quality",PlotPoints60,BoundaryStyleDirective[Black,Thick],PlotStyleDirective[Green,Opacity[0.3],Specularity[White,40]]],ParametricPlot3D[ζ[t],{t,0,3},PlotStyleBlack]/.Line[pts_,rest___]:>Tube[pts,0.005,rest],ParametricPlot3D[[t],{t,0,3},PlotStyleBlack]/.Line[pts_,rest___]:>Tube[pts,0.005,rest],ParametricPlot3D[[t],{t,0,3},PlotStyleBlack]/.Line[pts_,rest___]:>Tube[pts,0.005,rest],Graphics3D[{Black,Thick,Line[{{0,0,0},{0,0,3}}]}],Graphics3D[{Black,Thick,Line[{{3,0,0},{3,3,0}}]}],Graphics3D[{Black,Thick,Line[{{0,0,0},{3,3,0}}]}]},AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRange{{0,3},{0,3},{0,3}},ViewPoint{1.3,2.4,1.5},ImageSize700],Style["Volume between two cylinders:",Bold,Large],{{t1,0.00002,"Value (t1)"},0.00001,3,0.00001},ControlPlacementTop
9-
;2
t
ζ
1
9-
;2
t
ζ
2
9-
;Show[{RegionPlot3D[2
t
2
x
2
z
2
y
2
z
ζ
1
ζ
2
Out[]=

