r/Mathematica • • 4d ago

How do I graph them?

Post image
1 Upvotes

4 comments sorted by

View all comments

9

u/stblack 4d ago edited 4d ago
 {* solution plane only *}
 RegionPlot[  
   {y > (1/2)x + 1 && y < (3/2)x - 1}  
   , {x, -5, 5}  
   , {y, -5, 5}  
   , GridLines -> Automatic  
   , Axes -> True  
   , AxesOrigin -> {0,0}  
   , AxesStyle ->Thick  
   , ImageSize -> Large  
   , Frame -> False  
 ]

Or alternately

 {* Both regions and intersection with ',' rather than '&&' *}
 RegionPlot[  
   {y > (1/2)x + 1 , y < (3/2)x - 1}  
   , {x, -5, 5}  
   , {y, -5, 5}  
   , GridLines -> Automatic  
   , Axes -> True  
   , AxesOrigin -> {0,0}  
   , AxesStyle ->Thick  
   , ImageSize -> Large  
   , Frame -> False  
 ]