0
$\begingroup$

Suppose I want to plot 3 surfaces, z=xy+y^2, x=4 & x+2y=4 together so that x=4 plane will be in the upper region of z=xy+y^2 surface and x+2y=4 plane will be in the lower region of z=xy+y^2 surface.How to make this plot in the region where x & y varies from 0 to 5 and z varies from 0 to 10 ?

$\endgroup$
1
  • $\begingroup$ You are very unclear. Words like "upper region" must be defined precisely, for instance. $\endgroup$ Nov 11 '19 at 6:10
2
$\begingroup$
aaa = Plot3D[x y + y^2,
  {x, -5, 5}, {y, -5, 5},
  PlotRange -> {-10, 10},
  PlotStyle -> Green,
  ClippingStyle -> None];

bbb = ParametricPlot3D[{4, y, z},
  {y, -5, 5}, {z, 4 y + y^2, 10},
  PlotStyle -> Red];

ccc = ParametricPlot3D[{x, (4 - x)/2, z},
  {x, -5, 5}, {z, -10, x (4 - x)/2 + ((4 - x)/2)^2},
  PlotStyle -> Blue];

Show[aaa,bbb,ccc]

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks. It solved my problem $\endgroup$
    – atanu
    Nov 11 '19 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.