Graphing in 3-D  (click here for the Maple 11 version of this lab)

We will be hitting "enter" after each command in blue. 

 

To graph in 3-D enter the following commands to load the graphing programs: 

 

with(plots) 

with(plottools) 

 

 

To get information on a command: 

help( 

 

Planes 

To*graph*x-y = 3 and `in`(3, 3-D); -1 

implicitplot3d(x-y = 3, x = -5 .. 5, y = -5 .. 5, z = -5 .. 5, axes = normal) 

 

Plot 

 

 

To graph -x - y + z = 3 in 3-D: 

 

implicitplot3d(-x-y+z = 3, x = -5 .. 5, y = -5 .. 5, z = -5 .. 5, axes = normal) 

 

Spheres 

To graph x^2+y^2+z^2 = 4 in 3-D: 

implicitplot3d(x^2+y^2+z^2 = 4, x = -5 .. 5, y = -5 .. 5, z = -5 .. 5, axes = normal) 

 

To graph x^2+y^2+z^2 = 4 more smoothly in 3-D: 

help( 

 

c := sphere([0, 0, 0], 2); 1; display(c, axes = boxed, transparency = 0, labels = [x, y, z]) 

 

To graph several 3D surfaces on the same graph: 

To graph y = x^2, z = x, y = x: 

 

plot3d({[x, x^2, t], [x, t, x], [x, x, t]}, x = 0 .. 1, t = 0 .. 1, axes = normal) 

 

Plot 

 

 

 

Other 3-d surfaces: 

1) Cone 

To graph z^2 = x^2+y^2 in 3-D: 

help( 

plot3d([sqrt(x^2+y^2), -sqrt(x^2+y^2)], x = -10 .. 10, y = -10 .. 10, axes = normal)
plot3d([sqrt(x^2+y^2), -sqrt(x^2+y^2)], x = -10 .. 10, y = -10 .. 10, axes = normal)
 

 

2) Elliptic Paraboloid 

To graph z = x^2+y^2 in 3-D: 

 

plot3d(x^2+y^2, x = -5 .. 5, y = -5 .. 5, axes = normal) 

 

3) Circular Cylinder 

To graph x^2+y^2 = 4: 

implicitplot3d(x^2+y^2 = 4, x = -5 .. 5, y = -5 .. 5, z = -5 .. 5, axes = normal)