This is a beta course, so its structure, chapters, and examples may continue to change.
Applications of Constrained Extrema
The General Steps for Solving an Application of a Constrained Extremum
The Steps for Solving an Application of a Constrained Extremum
Identify the objective function: be clear about the quantity to be maximised or minimised.
Identify the constraints: find the restrictions relating the independent variables.
Construct the Lagrangian function: introduce the Lagrange multipliers.
Solve the system of equations: set all the partial derivatives to zero and solve for the stationary points.
Decide on the extremum: use the practical meaning or the second-order conditions to decide whether it is an extremum.
Answer the question: give the final conclusion.
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=z, x+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:
The objective: f(x,y,z)=x2+y2+z2 (the square of the distance)
The constraints: φ=x2+y2−z=0 and ψ=x+y+z−1=0
L=x2+y2+z2+λ(x2+y2−z)+μ(x+y+z−1)
Lx=2x+2λx+μ=0, Ly=2y+2λy+μ=0 and Lz=2z−λ+μ=0
From Lx=Ly: 2(x−y)(1+λ)=0, so x=y or λ=−1
If x=y: 2x2=z and 2x+z=1, that is, 2x2+2x−1=0 and x=2−1±3
x=y=2−1+3, z=2−3, and f=2x2+z2=z+z2=(2−3)+(2−3)2=9−53
x=y=2−1−3, z=2+3, and f=z+z2=9+53
If λ=−1: μ=0, from Lz=0 we get z=21, and from x2+y2=21 and x+y=21 we get xy=−81, so x,y=41±3, and f=21+41=43
Comparing: the shortest distance =43=23, and the longest distance =9+53
Answer: the shortest distance is 23, and the longest distance is 9+53.
Example 2: The Optimal Production Plan
A factory produces two products with outputs x and y, and its total cost function is C(x,y)=x2+2y2+10. The market demand constraint is x+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:
The objective: minimise C(x,y)=x2+2y2+10
The constraint: x+y=30
L=x2+2y2+10+λ(x+y−30)
Lx=2x+λ=0, Ly=4y+λ=0 and Lλ=x+y−30=0
From the first two: 2x=4y, that is, x=2y
Substituting into the constraint: 3y=30, so y=10 and x=20
The minimum cost C(20,10)=400+200+10=610
The Hessian matrix H=(2004) is positive definite, so this is a minimum.
Answer: the optimal production plan is x=20,y=10, and the minimum cost is 610.
Example 3: The Largest Inscribed Rectangular Box (an Ellipsoid)
Find the volume of the largest rectangular box inscribed in the ellipsoid a2x2+b2y2+c2z2=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:
Let the vertex in the first octant be (x,y,z); the volume is V=8xyz
The constraint: a2x2+b2y2+c2z2=1
For convenience, maximise f=xyz (equivalent to maximising V)
L=xyz+λ(a2x2+b2y2+c2z2−1)
Lx=yz+a22λx=0, Ly=xz+b22λy=0 and Lz=xy+c22λz=0
From Lx=0: yz=−a22λx; multiplying both sides by x: xyz=−a22λx2
Similarly: xyz=−b22λy2=−c22λz2
Hence a2x2=b2y2=c2z2, and substituting into the constraint gives a23x2=1, so x=3a
Similarly y=3b and z=3c
The maximum volume V=8⋅3a⋅3b⋅3c=338abc
Answer: the maximum volume is 338abc.
Example 4: Energy Minimisation (Physics)
A particle moves in a force field with potential energy function U(x,y,z)=x2+2y2+3z2, constrained to move on the plane x+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:
The objective: minimise U=x2+2y2+3z2
The constraint: x+y+z=1
L=x2+2y2+3z2+λ(x+y+z−1)
Lx=2x+λ=0, Ly=4y+λ=0 and Lz=6z+λ=0
x=−2λ,y=−4λ and z=−6λ
Substituting into the constraint: −λ(21+41+61)=1, so −λ⋅1211=1 and λ=−1112
x=116,y=113 and z=112
The Hessian matrix H=diag(2,4,6) is positive definite, so this is a minimum point.
The minimum potential energy U=12136+12118+12112=12166=116
Answer: the equilibrium position is (116,113,112), and the minimum potential energy is 116.
Exercises
Exercise 1
Find the shortest distance from the parabola y=x2 to the line x−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:
Let (x,y) be a point on the parabola with y=x2; its distance to the line is d=2∣x−y−2∣
Minimise f=(x−y−2)2 subject to the constraint y−x2=0
L=(x−y−2)2+λ(y−x2)
Lx=2(x−y−2)−2λx=0 and Ly=−2(x−y−2)+λ=0
From Ly=0: λ=2(x−y−2); substituting into Lx=0: 2(x−y−2)−4x(x−y−2)=0
If x−y−2=0: 1−2x=0, so x=21 and y=41
The shortest distance d=2∣21−41−2∣=427=872
Answer: the shortest distance is 872.
Exercise 2
Rotate a rectangle of perimeter 2p 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:
Let the two sides of the rectangle be x,y, with 2(x+y)=2p, that is, x+y=p
Rotating about the side of length x, the volume of the cylinder is V=πy2x (y is the base radius and x is the height)
L=πxy2+λ(x+y−p)
Lx=πy2+λ=0 and Ly=2πxy+λ=0
πy2=2πxy, that is, y=2x (y=0)
Substituting into x+y=p: 3x=p, so x=3p and y=32p
The maximum volume V=π⋅3p⋅(32p)2=274πp3
Answer: the maximum volume is 274πp3 (when the sides of the rectangle are 3p and 32p, and the rotation is about the shorter side).
Summary
Symbols Used in This Article
Symbol
Type
Pronunciation/Explanation
Meaning in This Article
V
Volume
volume
The volume of a solid
C
Cost
cost
The production cost function
U
Potential energy
potential energy
The potential energy function
d
Distance
distance
The distance from a point to a line or curve
H
Hessian matrix
Hessian
The matrix of the second-order partial derivatives