You are on page 1of 2

anureet2000.

nb 11

H*f@x_,y_D=3 x2 -2 x y+y2 -8 y;
fx @x_,y_D=D@f@x,yD,xD;
fy @x_,y_D=D@f@x,yD,yD;
sol=SolveA9fx @x,yDŠ0,fy @x,yDŠ0=,8x,y<E;
88x1,y1<<=8x,y<.sol;
fxx @x_,y_D=D@fx @x,yD,xD;
fxy @x_,y_D=D@fx @x,yD,yD;
fyy @x_,y_D=DAfy @x,yD,yE;
d=fxx @x1,y1D fyy @x1,y1D-Ifxy @x1,y1DM ;
2

result1=If@fxx @x1,y1D>0,">0","<0"D;
result=If@d¹0,If@d>0&&d¹0,If@fxx @x1,y1D<0,"there is Realative Maximum ",
"there is Relative minimum"D,"saddle point"D,"test fails"D;
Print@"for the critical points ",8x1,y1<," we have D=",d,
" and fxx ",result1,".so,",result,"at",8x1,y1<D;
p1=Plot3D@8f@x,yD,f@x1,y1D<,8x,-6,6<,8y,-2,7<,Mesh®NoneD;
p2=ListPointPlot3D@88x1,y1,f@x1,y1D<<,
PlotStyle®Directive@Red,PointSize@MediumDDD;
p3=Graphics3D@Text@"H2,6L",82,5,f@2,5D<DD;
Show@8p1,p2,p3<,AxesLabel®8"x","y","z"<D*L

bL f Hx, yL = x2 + y2
H*f@x_,y_D=x2 +y2 ;
fx @x_,y_D=D@f@x,yD,xD;
fy @x_,y_D=D@f@x,yD,yD;
sol=SolveA9fx @x,yDŠ0,fy @x,yDŠ0=,8x,y<E;
88x1,y1<<=8x,y<.sol;
fxx @x_,y_D=D@fx @x,yD,xD;
fxy @x_,y_D=D@fx @x,yD,yD;
fyy @x_,y_D=DAfy @x,yD,yE;
d=fxx @x1,y1D fyy @x1,y1D-Ifxy @x1,y1DM ;
2

result1=If@fxx @x1,y1D>0,">0","<0"D;
result=If@d¹0,If@d>0&&d¹0,If@fxx @x1,y1D<0,"there is Realative Maximum ",
"there is Relative minimum"D,"saddle point"D,"test fails"D;
Print@"for the critical points ",8x1,y1<," we have D=",d,
" and fxx ",result1,".so,",result,"at",8x1,y1<D;
p1=Plot3D@8f@x,yD,f@x1,y1D<,8x,-6,6<,8y,-2,7<,Mesh®NoneD;
p2=ListPointPlot3D@88x1,y1,f@x1,y1D<<,
PlotStyle®Directive@Red,PointSize@MediumDDD;
p3=Graphics3D@Text@"H0,0L",8.5,.5,f@.5,.5D<DD;
Show@8p1,p2,p3<,AxesLabel®8"x","y","z"<D*L

cL f Hx, yL = - x2 + y2
12 anureet2000.nb

f@x_, y_D = y2 - x2 ;
fx @x_, y_D = D@f@x, yD, xD;
fy @x_, y_D = D@f@x, yD, yD;
sol = SolveA9fx @x, yD Š 0, fy @x, yD Š 0=, 8x, y<E;
88x1, y1<< = 8x, y< . sol;
fxx @x_, y_D = D@fx @x, yD, xD;
fxy @x_, y_D = D@fx @x, yD, yD;
fyy @x_, y_D = DAfy @x, yD, yE;
d = fxx @x1, y1D fyy @x1, y1D - Ifxy @x1, y1DM ;
2

result1 = If@fxx @x1, y1D > 0, ">0", "<0"D;


result = If@d ¹ 0, If@d > 0 && d ¹ 0, If@fxx @x1, y1D < 0, "there is Realative Maximum ",
"there is Relative minimum"D, "saddle point"D, "test fails"D;
Print@"for the critical points ", 8x1, y1<, " we have D=", d,
" and fxx ", result1, ".so,", result, "at", 8x1, y1<D;
p1 = Plot3D@8f@x, yD, f@x1, y1D<, 8x, - 6, 6<, 8y, - 2, 7<, Mesh ® NoneD;
p2 = ListPointPlot3D@88x1, y1, f@x1, y1D<<,
PlotStyle ® Directive@Red, PointSize@MediumDDD;
p3 = Graphics3D@Text@"H0,0L", 8.5, .5, f@.5, .5D<DD;
Show@8p1, p2, p3<, AxesLabel ® 8"x", "y", "z"<D
for the critical points 80, 0< we have D=- 4 and fxx <0.so,saddle pointat80, 0<

20

10

H0,0L
z
0 6
-10
4
-20

-5 2 y

0 0
x

5 -2

dL f Hx, yL = 1 - x2 - y2

You might also like