Example 1 -- Local and Absolute Extrema

The function g in this example has local maxima at (2,3) and (-2,-1), local minima at (-2,3) and (2,-1), an absolute maximum at (2,3), and an absolute minimum at (-2,3).

g = 3/(1 + (-2 + x)^2 + (-3 + y)^2)^2 - 3/(1 + (2 + x)^2 + (-3 + y)^2)^2 - 1/(1 + (-2 + x)^2 + y^2)^2 + 1/(1 + (2 + x)^2 + y^2)^2 ;

Plot3D[g, {x, -5, 5}, {y, -2, 5}, PlotPoints45, PlotRange {-3, 3}, MeshFalse, ViewPoint {0, -2, 2}, AxesLabel {x, y, z}]

[Graphics:../HTMLFiles/index_3.gif]

ts = Table[t, {t, -2, 2, .5}] ;

Do[Plot3D[g, {x, -5, 5}, {y, -2, 5}, PlotPoints45, PlotRange {-3, 3}, MeshFalse, ViewPoint {0, -2, -ts[[t]]}, TicksNone], {t, 1, Length[ts]}]

[Graphics:../HTMLFiles/index_6.gif]

[Graphics:../HTMLFiles/index_7.gif]

[Graphics:../HTMLFiles/index_8.gif]

[Graphics:../HTMLFiles/index_9.gif]

[Graphics:../HTMLFiles/index_10.gif]

[Graphics:../HTMLFiles/index_11.gif]

[Graphics:../HTMLFiles/index_12.gif]

[Graphics:../HTMLFiles/index_13.gif]

[Graphics:../HTMLFiles/index_14.gif]

ContourPlot[g, {x, -5, 5}, {y, -2, 5}, ContourShadingFalse, Contours20, PlotPoints45]

[Graphics:../HTMLFiles/index_16.gif]


Created by Mathematica  (December 11, 2003)