Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Examples from Local extrema

All examples from Local extrema.

Back to Local extrema

Finding two stationary points

Let

f(x,y)=8x3+y2−6xy−2y+3.f(x,y)=8x^3+y^2-6xy-2y+3.

Then

fx=24x2−6y,fy=2y−6x−2.f_x=24x^2-6y, \qquad f_y=2y-6x-2.

The stationary equations give

y=4x2,y=3x+1.y=4x^2, \qquad y=3x+1.

Hence

4x2=3x+1,(4x+1)(x−1)=0.4x^2=3x+1, \qquad (4x+1)(x-1)=0.

The stationary points are

(1,4)and(−14,14).{(1,4)} \qquad\text{and}\qquad {\left(-\frac14,\frac14\right)}.

Zero partial derivatives without differentiability

Define

f(x,y)={xyx2+y2,(x,y)≠(0,0),0,(x,y)=(0,0).f(x,y)= \begin{cases} \dfrac{xy}{x^2+y^2},&(x,y)\ne(0,0),\\[6pt] 0,&(x,y)=(0,0). \end{cases}

Along the coordinate axes,

f(h,0)=0,f(0,h)=0,f(h,0)=0, \qquad f(0,h)=0,

so

fx(0,0)=0,fy(0,0)=0.f_x(0,0)=0, \qquad f_y(0,0)=0.

However, along y=xy=x,

f(t,t)=t22t2=12(t≠0).f(t,t)=\frac{t^2}{2t^2}=\frac12 \qquad(t\ne0).

The function is therefore not continuous at the origin and cannot be differentiable there, even though its two partial derivatives exist and vanish.

A saddle from two directions

For

f(x,y)=xy,f(x,y)=xy,

the only stationary point is (0,0)(0,0) because

∇f(x,y)=(yx).\nabla f(x,y) = \begin{pmatrix} y\\ x \end{pmatrix}.

Along y=xy=x,

f(t,t)=t2>0(t≠0),f(t,t)=t^2>0 \qquad(t\ne0),

whereas along y=−xy=-x,

f(t,−t)=−t2<0.f(t,-t)=-t^2<0.

Every neighbourhood of the origin contains larger and smaller values than f(0,0)=0f(0,0)=0, so the origin is a saddle point.

Standard quadratic surfaces

For

f(x,y)=x2+y2,f(x,y)=x^2+y^2,

the Hessian at the origin is

Hf(0,0)=(2002),D=4>0,fxx=2>0.H_f(0,0) = \begin{pmatrix} 2&0\\ 0&2 \end{pmatrix}, \qquad D=4>0, \qquad f_{xx}=2>0.

Thus the origin is a local minimum; f(x,y)≥0f(x,y)\ge0 everywhere, so it is also a global minimum.

For

g(x,y)=−x2−y2,g(x,y)=-x^2-y^2,

we have D=4>0D=4>0 and gxx=−2<0g_{xx}=-2<0, so the origin is a local maximum.

For

h(x,y)=x2−y2,h(x,y)=x^2-y^2,

the Hessian is

Hh(0,0)=(200−2),D=−4<0.H_h(0,0) = \begin{pmatrix} 2&0\\ 0&-2 \end{pmatrix}, \qquad D=-4<0.

The origin is therefore a saddle; the two coordinate axes show this directly.

Classifying the stationary points of a cubic

Let

f(x,y)=x3−y3+3xy.f(x,y)=x^3-y^3+3xy.

The first derivatives are

fx=3x2+3y,fy=−3y2+3x.f_x=3x^2+3y, \qquad f_y=-3y^2+3x.

Thus

y=−x2,x=y2,y=-x^2, \qquad x=y^2,

so x=x4x=x^4. The stationary points are (0,0)(0,0) and (1,−1)(1,-1).

The Hessian is

Hf(x,y)=(6x33−6y).H_f(x,y) = \begin{pmatrix} 6x&3\\ 3&-6y \end{pmatrix}.

At (0,0)(0,0),

det⁡Hf(0,0)=−9<0,\det H_f(0,0)=-9<0,

so the origin is a saddle. At (1,−1)(1,-1),

Hf(1,−1)=(6336),det⁡Hf(1,−1)=27>0,fxx(1,−1)=6>0.H_f(1,-1) = \begin{pmatrix} 6&3\\ 3&6 \end{pmatrix}, \qquad \det H_f(1,-1)=27>0, \qquad f_{xx}(1,-1)=6>0.

Therefore (1,−1)(1,-1) is a local minimum. Its value is

f(1,−1)=1−(−1)3+3(1)(−1)=−1.f(1,-1)=1-(-1)^3+3(1)(-1)=-1.

Checking a positive factor for new stationary points

Let

f(x,y)=xy ex2+y2.f(x,y)=xy\,e^{x^2+y^2}.

The derivatives factor as

fx=y ex2+y2(1+2x2),fy=x ex2+y2(1+2y2).f_x=y\,e^{x^2+y^2}(1+2x^2), \qquad f_y=x\,e^{x^2+y^2}(1+2y^2).

The exponential factors and the terms 1+2x21+2x^2, 1+2y21+2y^2 are always positive. Both derivatives therefore vanish only at (0,0)(0,0). At that point,

Hf(0,0)=(0110),det⁡Hf(0,0)=−1.H_f(0,0) = \begin{pmatrix} 0&1\\ 1&0 \end{pmatrix}, \qquad \det H_f(0,0)=-1.

The origin is a saddle. In this example, the derivative factors prove that the positive exponential adds no stationary points; positivity of a factor alone would not guarantee that for every product.

Revisiting the polynomial stationary points

For

f(x,y)=8x3+y2−6xy−2y+3,f(x,y)=8x^3+y^2-6xy-2y+3,

the Hessian and its determinant are

Hf(x,y)=(48x−6−62),det⁡Hf(x,y)=96x−36.H_f(x,y) = \begin{pmatrix} 48x&-6\\ -6&2 \end{pmatrix}, \qquad \det H_f(x,y)=96x-36.

At (1,4)(1,4),

det⁡Hf(1,4)=60>0,fxx(1,4)=48>0,\det H_f(1,4)=60>0, \qquad f_{xx}(1,4)=48>0,

so (1,4)(1,4) is a local minimum. At (−1/4,1/4)(-1/4,1/4),

det⁡Hf(−14,14)=−60<0,\det H_f\left(-\frac14,\frac14\right)=-60<0,

so that point is a saddle.

On this page