Example 3 -- Finding Local Extrema

f = 9 - 2x + 4y - x^2 - 4y^2 ;

Plot3D[f, {x, -4, 4}, {y, -2, 2}, AxesLabel {x, y, z}]

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

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

RowBox[{Do, [, RowBox[{RowBox[{Plot3D, [, RowBox[{f, ,, {x, -4, 4}, ,, {y, -2, 2}, ,, PlotPoin ...  RowBox[{-, 2.4}], ,, -ts[[t]]}], }}]}], ,, TicksNone}], ]}], ,, {t, 1, Length[ts]}}], ]}]

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

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

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

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

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

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

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

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

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

ContourPlot[f, {x, -4, 4}, {y, -2, 2}, ContourShadingFalse, Contours20, PlotPoints15]

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


Created by Mathematica  (December 11, 2003)