Applications of Constrained Extrema

The General Steps for Solving an Application of a Constrained Extremum

Typical Application Problems

Example 1: The Distance from a Space Curve to the Origin

Find the longest and the shortest distance from a point on the space curve x2+y2=zx^2 + y^2 = z, x+y+z=1x + y + z = 1 to the origin.

a constrained extremumdistancea space curvetwo constraints

Approach:

The extreme distances are the constrained extrema of the square of the distance under the two constraints, which the Lagrange multiplier method handles directly.

Steps:

  1. The objective: f(x,y,z)=x2+y2+z2f(x,y,z) = x^2+y^2+z^2 (the square of the distance)
  2. The constraints: φ=x2+y2−z=0\varphi = x^2+y^2-z=0 and ψ=x+y+z−1=0\psi = x+y+z-1=0
  3. L=x2+y2+z2+λ(x2+y2−z)+μ(x+y+z−1)L = x^2+y^2+z^2 + \lambda(x^2+y^2-z) + \mu(x+y+z-1)
  4. Lx=2x+2λx+μ=0L_x = 2x+2\lambda x+\mu=0, Ly=2y+2λy+μ=0L_y = 2y+2\lambda y+\mu=0 and Lz=2z−λ+μ=0L_z = 2z-\lambda+\mu=0
  5. From Lx=LyL_x=L_y: 2(x−y)(1+λ)=02(x-y)(1+\lambda)=0, so x=yx=y or λ=−1\lambda=-1
  6. If x=yx=y: 2x2=z2x^2=z and 2x+z=12x+z=1, that is, 2x2+2x−1=02x^2+2x-1=0 and x=−1±32x = \frac{-1\pm\sqrt{3}}{2}
    • x=y=−1+32x=y=\frac{-1+\sqrt{3}}{2}, z=2−3z=2-\sqrt{3}, and f=2x2+z2=z+z2=(2−3)+(2−3)2=9−53f = 2x^2+z^2 = z+z^2 = (2-\sqrt{3})+(2-\sqrt{3})^2 = 9-5\sqrt{3}
    • x=y=−1−32x=y=\frac{-1-\sqrt{3}}{2}, z=2+3z=2+\sqrt{3}, and f=z+z2=9+53f = z+z^2 = 9+5\sqrt{3}
  7. If λ=−1\lambda=-1: μ=0\mu=0, from Lz=0L_z=0 we get z=12z=\frac{1}{2}, and from x2+y2=12x^2+y^2=\frac{1}{2} and x+y=12x+y=\frac{1}{2} we get xy=−18xy=-\frac{1}{8}, so x,y=1±34x,y = \frac{1\pm\sqrt{3}}{4}, and f=12+14=34f = \frac{1}{2}+\frac{1}{4} = \frac{3}{4}
  8. Comparing: the shortest distance =34=32=\sqrt{\frac{3}{4}}=\frac{\sqrt{3}}{2}, and the longest distance =9+53=\sqrt{9+5\sqrt{3}}

Answer: the shortest distance is 32\frac{\sqrt{3}}{2}, and the longest distance is 9+53\sqrt{9+5\sqrt{3}}.

Example 2: The Optimal Production Plan

A factory produces two products with outputs xx and yy, and its total cost function is C(x,y)=x2+2y2+10C(x,y) = x^2 + 2y^2 + 10. The market demand constraint is x+y=30x + y = 30. Find the production plan that minimises the total cost.

a constrained extremuman economic applicationoptimal productionminimising the cost

Approach:

Cost optimisation is the classic constrained extremum problem: the constraint fixes the total output, and the Lagrange multiplier method solves it.

Steps:

  1. The objective: minimise C(x,y)=x2+2y2+10C(x,y) = x^2+2y^2+10
  2. The constraint: x+y=30x+y=30
  3. L=x2+2y2+10+λ(x+y−30)L = x^2+2y^2+10 + \lambda(x+y-30)
  4. Lx=2x+λ=0L_x = 2x+\lambda=0, Ly=4y+λ=0L_y = 4y+\lambda=0 and Lλ=x+y−30=0L_\lambda = x+y-30=0
  5. From the first two: 2x=4y2x = 4y, that is, x=2yx = 2y
  6. Substituting into the constraint: 3y=303y = 30, so y=10y=10 and x=20x=20
  7. The minimum cost C(20,10)=400+200+10=610C(20,10) = 400+200+10 = 610
  8. The Hessian matrix H=(2004)H = \begin{pmatrix}2&0\\0&4\end{pmatrix} is positive definite, so this is a minimum.

Answer: the optimal production plan is x=20,y=10x=20, y=10, and the minimum cost is 610610.

Example 3: The Largest Inscribed Rectangular Box (an Ellipsoid)

Find the volume of the largest rectangular box inscribed in the ellipsoid x2a2+y2b2+z2c2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1, with the faces of the box parallel to the coordinate planes.

a constrained extremuman ellipsoidan inscribed rectangular boxthe maximum volume

Approach:

Use the symmetry to work only in the first octant, write the volume as the product of the three semi-axes, and then use the extremum condition to find each of them.

Steps:

  1. Let the vertex in the first octant be (x,y,z)(x,y,z); the volume is V=8xyzV=8xyz
  2. The constraint: x2a2+y2b2+z2c2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1
  3. For convenience, maximise f=xyzf=xyz (equivalent to maximising VV)
  4. L=xyz+λ(x2a2+y2b2+z2c2−1)L = xyz + \lambda(\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}-1)
  5. Lx=yz+2λxa2=0L_x = yz+\frac{2\lambda x}{a^2}=0, Ly=xz+2λyb2=0L_y = xz+\frac{2\lambda y}{b^2}=0 and Lz=xy+2λzc2=0L_z = xy+\frac{2\lambda z}{c^2}=0
  6. From Lx=0L_x=0: yz=−2λxa2yz = -\frac{2\lambda x}{a^2}; multiplying both sides by xx: xyz=−2λx2a2xyz = -\frac{2\lambda x^2}{a^2}
  7. Similarly: xyz=−2λy2b2=−2λz2c2xyz = -\frac{2\lambda y^2}{b^2} = -\frac{2\lambda z^2}{c^2}
  8. Hence x2a2=y2b2=z2c2\frac{x^2}{a^2} = \frac{y^2}{b^2} = \frac{z^2}{c^2}, and substituting into the constraint gives 3x2a2=1\frac{3x^2}{a^2}=1, so x=a3x=\frac{a}{\sqrt{3}}
  9. Similarly y=b3y=\frac{b}{\sqrt{3}} and z=c3z=\frac{c}{\sqrt{3}}
  10. The maximum volume V=8⋅a3⋅b3⋅c3=8abc33V = 8 \cdot \frac{a}{\sqrt{3}} \cdot \frac{b}{\sqrt{3}} \cdot \frac{c}{\sqrt{3}} = \frac{8abc}{3\sqrt{3}}

Answer: the maximum volume is 8abc33\frac{8abc}{3\sqrt{3}}.

Example 4: Energy Minimisation (Physics)

A particle moves in a force field with potential energy function U(x,y,z)=x2+2y2+3z2U(x,y,z) = x^2 + 2y^2 + 3z^2, constrained to move on the plane x+y+z=1x + y + z = 1. Find the equilibrium position of the particle (the point of least potential energy).

a constrained extremuma physical applicationminimising the potential energythe equilibrium position

Approach:

The equilibrium position is the constrained local minimum of the potential energy, found in exactly the same way as any other constrained extremum.

Steps:

  1. The objective: minimise U=x2+2y2+3z2U = x^2+2y^2+3z^2
  2. The constraint: x+y+z=1x+y+z=1
  3. L=x2+2y2+3z2+λ(x+y+z−1)L = x^2+2y^2+3z^2 + \lambda(x+y+z-1)
  4. Lx=2x+λ=0L_x = 2x+\lambda=0, Ly=4y+λ=0L_y = 4y+\lambda=0 and Lz=6z+λ=0L_z = 6z+\lambda=0
  5. x=−λ2,y=−λ4x = -\frac{\lambda}{2}, y = -\frac{\lambda}{4} and z=−λ6z = -\frac{\lambda}{6}
  6. Substituting into the constraint: −λ(12+14+16)=1-\lambda(\frac{1}{2}+\frac{1}{4}+\frac{1}{6}) = 1, so −λ⋅1112=1-\lambda \cdot \frac{11}{12} = 1 and λ=−1211\lambda = -\frac{12}{11}
  7. x=611,y=311x = \frac{6}{11}, y = \frac{3}{11} and z=211z = \frac{2}{11}
  8. The Hessian matrix H=diag(2,4,6)H = \text{diag}(2,4,6) is positive definite, so this is a minimum point.
  9. The minimum potential energy U=36121+18121+12121=66121=611U = \frac{36}{121}+\frac{18}{121}+\frac{12}{121} = \frac{66}{121} = \frac{6}{11}

Answer: the equilibrium position is (611,311,211)(\frac{6}{11}, \frac{3}{11}, \frac{2}{11}), and the minimum potential energy is 611\frac{6}{11}.


Exercises

Exercise 1

Find the shortest distance from the parabola y=x2y = x^2 to the line x−y−2=0x - y - 2 = 0.

a constrained extremumthe shortest distancea parabolaa straight line

Approach:

First write the shortest distance from a point to a line as a function of the point, and then look for the extremum of that function over the parabola.

Steps:

  1. Let (x,y)(x,y) be a point on the parabola with y=x2y=x^2; its distance to the line is d=∣x−y−2∣2d = \frac{|x-y-2|}{\sqrt{2}}
  2. Minimise f=(x−y−2)2f = (x-y-2)^2 subject to the constraint y−x2=0y-x^2=0
  3. L=(x−y−2)2+λ(y−x2)L = (x-y-2)^2 + \lambda(y-x^2)
  4. Lx=2(x−y−2)−2λx=0L_x = 2(x-y-2)-2\lambda x=0 and Ly=−2(x−y−2)+λ=0L_y = -2(x-y-2)+\lambda=0
  5. From Ly=0L_y=0: λ=2(x−y−2)\lambda = 2(x-y-2); substituting into Lx=0L_x=0: 2(x−y−2)−4x(x−y−2)=02(x-y-2)-4x(x-y-2)=0
  6. If x−y−2≠0x-y-2\neq0: 1−2x=01-2x=0, so x=12x=\frac{1}{2} and y=14y=\frac{1}{4}
  7. The shortest distance d=∣12−14−2∣2=742=728d = \frac{|\frac{1}{2}-\frac{1}{4}-2|}{\sqrt{2}} = \frac{7}{4\sqrt{2}} = \frac{7\sqrt{2}}{8}

Answer: the shortest distance is 728\frac{7\sqrt{2}}{8}.

Exercise 2

Rotate a rectangle of perimeter 2p2p about one of its sides, and find the maximum volume of the resulting cylinder.

a constrained extremuma solid of revolutionthe maximum volumean application

Approach:

The volume of the cylinder is an expression in the two sides of the rectangle; use the perimeter constraint to eliminate one variable, and then find the extremum of the resulting one-variable function.

Steps:

  1. Let the two sides of the rectangle be x,yx, y, with 2(x+y)=2p2(x+y)=2p, that is, x+y=px+y=p
  2. Rotating about the side of length xx, the volume of the cylinder is V=πy2xV = \pi y^2 x (yy is the base radius and xx is the height)
  3. L=πxy2+λ(x+y−p)L = \pi x y^2 + \lambda(x+y-p)
  4. Lx=πy2+λ=0L_x = \pi y^2+\lambda=0 and Ly=2πxy+λ=0L_y = 2\pi xy+\lambda=0
  5. πy2=2πxy\pi y^2 = 2\pi xy, that is, y=2xy = 2x (y≠0y\neq0)
  6. Substituting into x+y=px+y=p: 3x=p3x=p, so x=p3x=\frac{p}{3} and y=2p3y=\frac{2p}{3}
  7. The maximum volume V=π⋅p3⋅(2p3)2=4πp327V = \pi \cdot \frac{p}{3} \cdot (\frac{2p}{3})^2 = \frac{4\pi p^3}{27}

Answer: the maximum volume is 4πp327\frac{4\pi p^3}{27} (when the sides of the rectangle are p3\frac{p}{3} and 2p3\frac{2p}{3}, and the rotation is about the shorter side).


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
VVVolumevolumeThe volume of a solid
CCCostcostThe production cost function
UUPotential energypotential energyThe potential energy function
ddDistancedistanceThe distance from a point to a line or curve
HHHessian matrixHessianThe matrix of the second-order partial derivatives

Found an issue with this content?

Tell us what could be improved.