1.戞2師曃摫娭悢
2曄悢娭悢f(x,y)偺戞2師曃摫娭悢丄椺偊偽 fxy(x,y)傪媮傔傞偵偼
亜diff(f(x,y),x,y) 丂 |
亜D[1,2](f) 丂 |
[惓夝椺]
>f:亖(x,y)->x3+y3-3*x*y
>solve({diff(f(x,y),x)亖0,diff(f(x,y),y)亖0},{x,y}) (f偺椪奅揰傪媮傔傞)
>evalf(%) >det(H):=diff(f(x,y),x,x)*diff(f(x,y),y,y)-diff(f(x,y),x,y)2 (僿僢僙峴楍偺峴楍幃傪det(H)偲偍偔)
>subs(x=0,y=0,det(H)) ((0,0)偵偍偗傞det(H)偺抣傪寁嶼)
(det(H)<0傛傝,(0,0)偱嬌抣傪偲傜側偄)
>subs(x=1,y=1,det(H)) ((1,1)偵偍偗傞丂det(H)偺抣傪寁嶼)
>subs(x=1,y=1,diff(f(x,y),x,x)) (fxx(1,1)傪寁嶼)
(det(H)>0偐偮fxx(1,1)>0偱偁傞偐傜(1,1)偼嬌彫揰偱偁傞)
>f(1,1) (嬌彫抣f(1,1)傪寁嶼)
>plot3d(fx,y),x=-0.5..1.5,y=-0.5..1.5,style=patchcontour,contours=30) ([-0.5,1.5]亊[-0.5,1.5]偵偍偗傞 z亖f(x,y)偺僌儔僼傪昞帵)丂
|
[惓夝椺]
[惓夝椺]