Professional Documents
Culture Documents
Draw The Regions D Using Mathematica Software and Check Whether Regions Are of Type I or Type II
Draw The Regions D Using Mathematica Software and Check Whether Regions Are of Type I or Type II
Draw The Regions D Using Mathematica Software and Check Whether Regions Are of Type I or Type II
_ 20/6260
Course_ (563)-(CBCS) B.Sc (H) Mathematics
Practical -12
Draw the following regions D and check weather these regions are Type -I or
Type - II .
Type I Region (Vertically Simple Region) : When a region is bounded between two
vertical lines and two curves or one curve and one horizontal line.
Qus1
D = {(x,y) : 0 ≤ x ≤ 2, 1 ≤ y ≤ e^x } .
In[3]:= ContourPlot [{x ⩵ 0, x ⩵ 2, y ⩵ 1, y ⩵ E ^ x}, {x, - 1, 3}, {y, 0, 8}, FrameLabel → {x, y},
FrameStyle → Directive [Black , 16 ], ContourStyle → {Black , Red, Green , Blue }]
RegionPlot [0 ≤ x ≤ 2 && 1 ≤ y ≤ E ^ x, {x, - 1, 3}, {y, 0, 8}, FrameLabel → {x, y},
FrameStyle → Directive [{Bold, Black }, 16 ], PlotStyle → Green , BoundaryStyle → Red ]
2
4
y
Out[3]=
0
-1 0 1 2 3
x
4
y
Out[4]=
0
-1 0 1 2 3
x
Qus 2
3
D = {(x,y) : log(y) ≤ x ≤ 2, 1 ≤ y ≤ e² } .
In[5]:= ContourPlot [{x ⩵ Log [y], x ⩵ 2, y ⩵ 1, y ⩵ E ^ 2}, {x, - 1, 3}, {y, 0, 8}, FrameLabel → {x, y},
FrameStyle → Directive [Black , 16 ], ContourStyle → {Black , Red, Green , Blue }]
RegionPlot [Log [y] ≤ x ≤ 2 && 1 ≤ y ≤ E ^ 2, {x, - 1, 3}, {y, 0, 8}, FrameLabel → {x, y},
FrameStyle → Directive [{Bold, Black }, 16 ], PlotStyle → Green , BoundaryStyle → Black ]
4
y
Out[5]=
0
-1 0 1 2 3
x
4
4
y
Out[6]=
0
-1 0 1 2 3
x
5
Qus 3
D = {(x,y) : 0 ≤ x ≤ 1, x³ ≤ y ≤ 1 } .
In[7]:= ContourPlot [{x ⩵ 0, x ⩵ 1, y ⩵ x ^ 3, y ⩵ 1}, {x, - 1, 2}, {y, 0.2, 2}, FrameLabel → {x, y},
FrameStyle → Directive [Black , 16 ], ContourStyle → {Black , Red, Green , Blue }]
RegionPlot [0 ≤ x ≤ 1 && x ^ 3 ≤ y ≤ 1, {x, - 1, 2}, {y, - 0.2, 2}, FrameLabel → {x, y},
FrameStyle → Directive [{Bold, Black }, 16 ], PlotStyle → Yellow , BoundaryStyle → Black ]
2.0
1.5
y
Out[7]= 1.0
0.5
2.0
1.5
1.0
y
Out[8]=
0.5
0.0
Qus 4
The region D bounded by y = x²- 2 and the line y = x .
In[13]:= ClearAll
ContourPlot [{y ⩵ x ^ 2 - 2, y ⩵ x}, {x, - 1.7, 2.7 }, {y, - 2.5, 4}, FrameLabel → {x, y},
FrameStyle → Directive [Black , 16 ], ContourStyle → {Black , Red, Green , Blue }]
RegionPlot [- 1 ≤ x ≤ 2 && x ^ 2 - 2 ≤ y ≤ x, {x, - 1.7, 2.7 }, {y, - 2.5, 4}, FrameLabel → {x, y},
FrameStyle → Directive [{Bold, Black }, 16 ], PlotStyle → Pink, BoundaryStyle → Black ]
Out[13]= ClearAll
1
y
Out[14]=
-1
-2
-1 0 1 2
x
8
1
y
Out[15]=
-1
-2
-1 0 1 2
x
9
Qus 5
D = {(x,y) : 0 ≤ x ≤ π/4 , sin(x) ≤ y ≤ cos(x) } .
In[9]:= ContourPlot [{x ⩵ 0, x ⩵ π / 4, y ⩵ Sin [x], y ⩵ Cos [x]}, {x, - 1, 2},
{ y, - 1, 2} , FrameLabel → { x, y} , FrameStyle → Directive [Black , 16 ],
ContourStyle → {Black , Red, Green , Blue }]
RegionPlot [0 ≤ x ≤ π / 4 && Sin [x] ≤ y ≤ Cos [x], {x, - 1, 2}, {y, - 1, 2}, FrameLabel → {x, y},
FrameStyle → Directive [{Bold, Black }, 16 ], PlotStyle → Red, BoundaryStyle → Black ]
2.0
1.5
1.0
0.5
y
Out[9]=
0.0
- 0.5
- 1.0
- 1.0 - 0.5 0.0 0.5 1.0 1.5 2.0
x
10
2.0
1.5
1.0
0.5
y
Out[10]=
0.0
- 0.5
- 1.0
- 1.0 - 0.5 0.0 0.5 1.0 1.5 2.0
x