Written by Dr. Kevin G. TeBeest
Assoc. Prof. of Applied Mathematics
Kettering University
11/12/2014

> restart; with(plots): with(plottools):
Plot the Paraboloid:   f = x2 + y2

> f := x^2 + y^2 ;
f := x2 + y2 (1)

> plot3d( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, axes = framed, linestyle = solid, lightmodel = none, caption = "A Paraboloid with a Grid", captionfont = [TIMES, ROMAN, 18], labelfont = [TIMES, ROMAN, 16] ) ;

Plot_2d

> plot3d( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, style = patchnogrid, axes = framed, linestyle = solid, lightmodel = none, caption = "A Paraboloid without a Grid", captionfont = [TIMES, ROMAN, 18], labelfont = [TIMES, ROMAN, 16] ) ;

Plot_2d

> surf := plot3d(f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, style = patchcontour, contours = [1, 2, 3, 4, 5, 6, 7], axes = framed, linestyle = solid, lightmodel = none, caption = "The Paraboloid with Contours (Level Curves)", captionfont = [TIMES, ROMAN, 16], labelfont = [TIMES, ROMAN, 16] ) :

> Contours := contourplot( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, contours = [1, 2, 3, 4, 5, 6, 7], linestyle = solid, thickness = 4, caption = "Contours of the Paraboloid in the xy-Plane", captionfont = [TIMES, ROMAN, 16], labelfont = [TIMES, ROMAN, 16], filled = true ) :

> display( surf ) ;

Plot_2d

> display( Contours, scaling = constrained ) ;
 

Plot_2d

> F := transform( (x, y) -> [x, y, 0] ) : display( { surf, F(Contours) } ) ;

Plot_2d

> F := transform( (x, y) -> [x, y, -2] ) : display( { surf, F(Contours) } ) ;

Plot_2d


Plot the Hyperbolic Paraboloid:   f = x2y2

> f := x^2-y^2 ;

f := x2y2 (2)

> plot3d( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, axes = framed, linestyle = solid, lightmodel = none, caption = "A Hyperbolic Paraboloid with a Grid", captionfont = [TIMES, ROMAN, 18], labelfont = [TIMES, ROMAN, 16] ) ;

Plot_2d

> plot3d( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, style = patchnogrid, axes = framed, linestyle = solid, lightmodel = none, caption = "A Hyperbolic Paraboloid without a Grid", captionfont = [TIMES, ROMAN, 18], labelfont = [TIMES, ROMAN, 16] ) ;

Plot_2d

> surf := plot3d( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, style = patchcontour, contours = [-4, -3, -2, -1, 0, 1, 2, 3, 4], axes = framed, linestyle = solid, lightmodel = none, caption = "The Paraboloid with Contours (Level Curves)", captionfont = [TIMES, ROMAN, 16], labelfont = [TIMES, ROMAN, 16] ) :

> Contours := contourplot( f, x = -2.0 .. 2.0, y = -2.0 .. 2.0, contours = [-4, -3, -2, -1, 0, 1, 2, 3, 4], linestyle = solid, thickness = 4, caption = "Contours of the Paraboloid in the xy-Plane", captionfont = [TIMES, ROMAN, 16], labelfont = [TIMES, ROMAN, 16], filled = true ) :

> display( surf ) ;

Plot_2d

> display( Contours, scaling = constrained ) ;

Plot_2d

> F := transform( (x, y) -> [x, y, 0] ) : display( { surf, F(Contours) } ) ;

Plot_2d

> F := transform( (x, y) -> [x, y, -6] ) : display( { surf, F(Contours) } ) ;
Plot_2d


Written by Dr. Kevin G. TeBeest
Assoc. Prof. of Applied Mathematics
Kettering University
11/12/2014