0

I have two Cartesian equation of plans: y=3-x and z=2+x. I want to draw both planes with Plot3D but I don't know what I have to put in the fonction.

corey979
  • 23,947
  • 7
  • 58
  • 101

1 Answers1

1

Plot3D plots $f(x,y)$ as a function of $(x,y)$. The second plane, $z=2+x$ can be plotted with

Plot3D[2 + x, {x, -10, 10}, {y, -10, 10}]

The first plane, $f(x,y)=x+y-3\equiv 0$, so it won't work. But ContourPlot3D works for any plane $ax+by+cz+d=0$:

ContourPlot3D[{y == 3 - x, z == 2 + x}, {x, -10, 10}, {y, -10, 10}, {z, -5, 5}]

enter image description here

See also this thread.

corey979
  • 23,947
  • 7
  • 58
  • 101