Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2: Extrema Subject to One Constraint

( \newcommand{\kernel}{\mathrm{null}\,}\)

Here is Theorem [theorem:1] with m=1.

Theorem 2.1

[theorem:2]

Suppose that n>1. If  X0 is a local extreme point of f subject to g(X)=0 and gxr(X0)0 for some r{1,2,,n}, then there is a constant λ such that

(2.1)fxi(X0)λgxi(X0)=0, 1in; thus, X0 is a critical point of fλg.

For notational convenience, let r=1 and denote

U=(x2,x3,xn) and U0=(x20,x30,xn0).

Since gx1(X0)0, the Implicit Function Theorem (Corollary 6.4.2, p. 423) implies that there is a unique continuously differentiable function h=h(U), defined on a neighborhood NRn1 of U0, such that (h(U),U)D for all UN, h(U0)=x10, and

(2.2)g(h(U),U)=0,UN.

Now define

(2.3)λ=fx1(X0)gx1(X0),

which is permissible, since gx1(X0)0. This implies Equation 2.1 with i=1. If i>1, differentiating Equation 2.2 with respect to xi yields

(2.4)g(h(U),U)xi+g(h(U),U)x1h(U)xi=0,UN.

Also,

(2.5)f(h(U),U))xi=f(h(U),U)xi+f(h(U),U)x1h(U)xi,UN.

Since (h(U0),U0)=X0, Equation 2.4 implies that

(2.6)g(X0)xi+g(X0)x1h(U0)xi=0.

If  X0 is a local extreme point of f subject to g(X)=0, then U0 is an unconstrained local extreme point of f(h(U),U); therefore, Equation 2.5 implies that

(2.7)f(X0)xi+f(X0)x1h(U0)xi=0.

Since a linear homogeneous system

[abcd][uv]=[00]

has a nontrivial solution if and only if

|abcd|=0, (Theorem 6.1.15), Equations 2.6 and 2.7 imply that

|f(X0)xif(X0)x1g(X0)xig(X0)x1|=0, so|f(X0)xig(X0)xif(X0)x1g(X0)x1|=0,

since the determinants of a matrix and its transpose are equal. Therefore, the system

[f(X0)xig(X0)xif(X0)x1g(X0)x1][uv]=[00]

has a nontrivial solution (Theorem 6.1.15). Since gx1(X0)0, u must be nonzero in a nontrivial solution. Hence, we may assume that u=1, so

(2.8)[f(X0)xig(X0)xif(X0)x1g(X0)x1][1v]=[00].

In particular,

f(X0)x1+vg(X0)x1=0, sov=fx1(X0)gx1(X0).

Now Equation 2.3 implies that v=λ, and Equation 2.8 becomes

[f(X0)xig(X0)xif(X0)x1g(X0)x1][1λ]=[00].

Computing the topmost entry of the vector on the left yields Equation 2.1.

Example 2.1

[example:1]

Find the point (x0,y0) on the line

ax+by=d

closest to a given point (x1,y1).

Solution

We must minimize (xx1)2+(yy1)2 subject to the constraint. This is equivalent to minimizing (xx1)2+(yy1)2 subject to the constraint, which is simpler. For, this we could let

L=(xx1)2+(yy1)2λ(ax+byd);

however,

L=(xx1)2+(yy1)22λ(ax+by)

is better. Since

Lx=xx1λaand Ly=yy1λb,

(x0,y0)=(x1+λa,y1+λb), where we must choose λ so that ax0+by0=d. Therefore,

ax0+by0=ax1+by1+λ(a2+b2)=d,

so

λ=dax1by1a2+b2,

x0=x1+(dax1by1)aa2+b2, and y0=y1+(dax1by1)ba2+b2.

The distance from (x1,y1) to the line is

(x0x1)2+(y0y1)2=|dax1by1|a2+b2.

Example 2.2

[example:2]

Find the extreme values of f(x,y)=2x+y subject to

x2+y2=4.

Solution

Let

L=2x+yλ2(x2+y2);

then

Lx=2λx and Ly=1λy,

so (x0,y0)=(2/λ,1/λ). Since x02+y02=4, λ=±5/2. Hence, the constrained maximum is 25, attained at (4/5,2/5), and the constrained minimum is 25, attained at (4/5,2/5).

Example 2.3

[example:3]

Find the point in the plane

(2.9)3x+4y+z=1 closest to (1,1,1).

Solution

We must minimize

f(x,y,z)=(x+1)2+(y1)2+(z1)2

subject to Equation 2.9. Let

L=(x+1)2+(y1)2+(z1)22λ(3x+4y+z);

then

Lx=x+13λ,Ly=y14λ, and Lz=z1λ,

so

x0=1+3λ,y0=1+4λ,z0=1+λ.

From Equation 2.9,

3(1+3λ)+4(1+4λ)+(1+λ)1=1+26λ=0, so λ=1/26 and

(x0,y0,z0)=(2926,2226,2526).

The distance from (x0,y0,z0) to (1,1,1) is

(x0+1)2+(y01)2+(z01)2=126.

Example 2.4

[example:4]

Assume that n2 and xi0, 1in.

  1. Find the extreme values of i=1nxi subject to i=1nxi2=1.
  2. Find the minimum value of i=1nxi2 subject to i=1nxi=1.

(a) Let

L=i=1nxiλ2i=1nxi2; then

Lxi=1λxi, soxi0=1λ,1in.

Hence, i=1nxi02=n/λ2, so λ=±n  and

(x10,x20,,xn0)=±(1n,1n,,1n).

Therefore, the constrained maximum is n and the constrained minimum is n.

(b) Let

L=12i=1nxi2λi=1nxi; then

Lxi=xiλ, soxi0=λ,1in.

Hence, i=1nxi0=nλ=1, so xi0=λ=1/n and the constrained minimum is

i=1nxi02=1n There is no constrained maximum. (Why?)

Example 2.1

[example:5]

Show that

x1/py1/qxp+yq,x,y0,

if

(2.10)1p+1q=1,p>0, and q>0.

Solution

We first find the maximum of

f(x,y)=x1/py1/q

subject to

(2.11)xp+yq=σ,x0,y0,

where σ is a fixed but arbitrary positive number. Since f is continuous, it must assume a maximum at some point (x0,y0) on the line segment Equation 2.11, and (x0,y0) cannot be an endpoint of the segment, since f(pσ,0)=f(0,qσ)=0. Therefore, (x0,y0) is in the open first quadrant.

Let

L=x1/py1/qλ(xp+yq).

Then

Lx=1pxf(x,y)λp and Ly=1qyf(x,y)λq=0,

so x0=y0=f(x0,y0)/λ. Now Equations 2.10 and 2.11 imply that x0=y0=σ. Therefore,

f(x,y)f(σ,σ)=σ1/pσ1/q=σ=xp+yq.

This can be generalized (Exercise [exer:53]). It can also be used to generalize Schwarz’s inequality (Exercise [exer:54]).


This page titled 2: Extrema Subject to One Constraint is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by William F. Trench.

Support Center

How can we help?