Professional Documents
Culture Documents
Min/Max/Saddle Points: Printed by Wolfram Mathematica Student Edition
Min/Max/Saddle Points: Printed by Wolfram Mathematica Student Edition
Out[! ]= {}
Out[! ]= {}
Out[! ]= {}
maxDValue = Norm[DelF[p]]
maxD = DelF[p] / Norm[DelF[p]]
minD = - maxD
0 -1 0 1
zeroD = maxD. , maxD.
1 0 -1 0
SolveDelF[p].{x, y} ⩵ dvalue && x2 + y2 ⩵ 1, {x, y}
Out[! ]= {2 x - y, - 1 - x + 2 y}
Out[! ]= 5
3 4
Out[! ]= ,-
5 5
3 4
Out[! ]= - ,
5 5
4 3 4 3
Out[! ]= - ,- , ,
5 5 5 5
24 7
Out[! ]= {x → 0, y → - 1}, x → ,y→-
25 25
√
In[! ]:= f[x_, y_, z_] := Log x2 + y2 + z2
p := {2, 4, 12}
DirectionVector := {3, 6, - 2}
ds := 0.1
Expand[((delF[p]).({x, y, z} - p))] ⩵ 0
((- delF[p]) * ({t, t, t}) + p)
Out[! ]= 0.000522648
2D
In[! ]:= f[x_, y_] := E7 x Cos[y]
p := {0, 0}
DirectionVector := {1, 1}
Expand[((delF[p]).({x, y} - p))] ⩵ 0
((- delF[p]) * ({t, t}) + p)
(DirectionVector.(delF[p])) / Norm[DirectionVector]
Out[! ]= 7 ⅇ7 x Cos[y], - ⅇ7 x Sin[y]
Out[! ]= 7x⩵0
Out[! ]= {- 7 t, 0}
7
Out[! ]=
2
Lagrange Optimizations
3D
In[! ]:= f[x_, y_, z_] := (x - 0)2 + (y - 3)2 + (z - 0)2
g[x_, y_, z_] := x + 2 y + z
Out[! ]= 2 (- 3 + y) ⩵ 2 λ
Out[! ]= 2z⩵λ
Out[! ]= x+2y+z ⩵ 0
Out[! ]= 6
Out[! ]= 6
2D
pts = Solve[
D[f[x, y], x] / D[g[x, y], x] ⩵ D[f[x, y], y] / D[g[x, y], y] && g[x, y] ⩵ 0, {x, y}]
fvalues := Map[f, {x, y} /. pts]
f[{x_, y_}] = f[x, y]
maxf = Max[fvalues]
maxf = Min[fvalues]
xλ
Out[! ]= 4y⩵
2
2yλ
Out[! ]= 4x⩵
9
x2 y2
Out[! ]= -1 + + ⩵0
4 9
3 3 3 3
Out[! ]= x → - 2, y → - , x → - 2, y → , x → 2, y → - , x → 2, y →
2 2 2 2
Out[! ]= 4xy
Out[! ]= 12
Out[! ]= - 12
t2[x_, y_] = f[0, 0] + ({x, y}.delf[0, 0]) + x2 , 2 xy, y2 .del2f[0, 0] 2
t3[x_, y_] = t2[x, y] + x3 , 3 x3 * y, 3 x * y2 , y3 .del3f[0, 0] 6