VolumeExponentialCylinder::usage="Calculate the volume using double integrals, of the surface S: z = 4 ,z ≥ 0 D: 2y ≤ x ≤ 2, 0 ≤ y ≤ 1. References: Ronny online, YouTube; Personal. ";ContourPlot3Dz==4,x==2,x==2y,z==0,y==0,{x,0,2},{y,0,1},{z,0,10},AxesTrue,ContourStyleDirective[Opacity[0.5],Specularity[White,30]],MeshFalse,PlotRangeAll,AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),BoxRatiosAutomatic,AxesOrigin{0,0,0},BoxedFalse
4
2
x
4
2
x
Out[]=
ManipulateV=Simplify4xy;p=Grid[{{Volume},{V}},FrameAll,ItemSize->15,ItemStyle->15];Showcurv1=ParametricPlot3Du,,0,{u,0,u1},BoundaryStyleDirective[Thick,Black],curv2=ParametricPlot3D[{2,u,0},{u,0,u2},BoundaryStyleDirective[Thick,Black]],curv3=ParametricPlot3D[{u,0,0},{u,0,u1},BoundaryStyleDirective[Thick,Black]],curv4=ParametricPlot3Du,0,4,{u,0,u1},BoundaryStyleDirective[Thick,Black],curv5=ParametricPlot3D[{2,u,4},{u,0,u2},BoundaryStyleDirective[Thick,Black]],curv6=ParametricPlot3D[{2,0,u},{u,0,u3},BoundaryStyleDirective[Thick,Black]],curv7=ParametricPlot3D[{2,0,u},{u,0,u3},BoundaryStyleDirective[Thick,Black]],curv8=ParametricPlot3D[{2,1,u},{u,0,u3},BoundaryStyleDirective[Thick,Black]],curv9=ParametricPlot3Du,,4,{u,0,u1},BoundaryStyleDirective[Thick,Black],surf1=ParametricPlot3Du,s,0,{u,0,u1},{s,0,t1},MeshFalse,PlotStyleDirective[Yellow,Opacity[0.5],Specularity[White,20]],surf2=ParametricPlot3Du,,4s,{u,0,u1},{s,0,t1},MeshFalse,PlotStyleDirective[Brown,Opacity[0.5],Specularity[White,20]],surf3=ParametricPlot3Du,s,4,{u,0,u1},{s,0,t1},MeshFalse,PlotStyleDirective[Red,Opacity[0.5],Specularity[White,20]],surf4=ParametricPlot3Du,0,4s,{u,0,u1},{s,0,t1},MeshFalse,PlotStyleDirective[Blue,Opacity[0.5],Specularity[White,20]],surf5=ParametricPlot3D[{2,u,4s},{u,0,u2},{s,0,t1},MeshFalse,PlotStyleDirective[Pink,Opacity[0.5],Specularity[White,20]]],AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,MeshFalse,PlotRange10,PerformanceGoal"Quality",ViewPoint{1.3,-2.4,2.},{u1,0.1,2,0.1},Delimiter,{u2,0.1,1,0.1},Delimiter,{u3,0.1,4,0.1},Delimiter,{t1,0.1,1,0.1},Delimiter,{{p,2,"Volume"}},SaveDefinitions->True,ControlPlacement->Top
1
∫
0
2
∫
2y
4
2
x
u
2
2
u
4
u
2
2
u
u
2
u
2
2
u
u
2
2
u
2
u
4
4
Out[]=
Another method to obtain the volume (suggested by the Ph.D Frank Kampas):
In[]:=
s1=ImplicitRegion0<=z<=4,{x,y,z};s2=ImplicitRegion[2y≤x≤2,{x,y,z}];s3=ImplicitRegion[0≤y≤1,{x,y,z}];Volume@RegionIntersection[s1,s2,s3]
4
2
x
Out[]=
1
4
16

