Question: Implicitplot3d bounded portion of surface

I want to graph the portion of the plane 2x + 3y + z = 6 that are located in the first octant of a xyz coordinate system. The following implicitplot3d should in principle do it:

implicitplot3d(piecewise(`and`(`and`(x >= 0, y >= 0), z >= 0), 2*x+3*y+z = 6, undefined), x = -3 .. 3, y = -3 .. 3, z = -1 .. 7, color = red, axes = normal, scaling = constrained, style = surface)

When I execute the command I actually see the expected triangular part of the plane for a split second, but then it disappears. I can of course solve the equation with respect to z and use plot3d, which works fine. The problem is that I want to use implicitplot3d to illustrate the concept of implicit surfaces to the students that I am teaching. So for pedagogical I want to keep the Maple code as close as possible to the way that the problem is stated in the text book. What I mean is that I am not looking for technical workarounds that tend to move the focus away from the core mathematics.

Graph_bounded_plan.mw

restart

with(plots):

implicitplot3d(piecewise(`and`(`and`(x >= 0, y >= 0), z >= 0), 2*x+3*y+z = 6, undefined), x = -3 .. 3, y = -3 .. 3, z = -1 .. 7, color = red, axes = normal, scaling = constrained, style = surface)

 

plot3d(piecewise(`and`(`and`(x >= 0, y >= 0), 6-2*x-3*y >= 0), 6-2*x-3*y, undefined), x = -3 .. 3, y = -3 .. 3, view = -1 .. 7, color = red, axes = normal, scaling = constrained, style = surface)

 

``


Download Graph_bounded_plan.mw

This has been branched into the following page(s):
Please Wait...