This is a beta course, so its structure, chapters, and examples may continue to change.
Computing and Applying Extrema
The Maximum and Minimum Values on a Bounded Closed Region
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Theorem1
Suppose the function f(x,y) is continuous on the bounded closed region D. Then f necessarily attains a maximum value and a minimum value on D. The method is:
Find all the stationary points of f in the interior of D and the points where the partial derivatives do not exist, and compute the values of the function there.
Find the maximum and the minimum of f on the boundary of D.
Compare all of the above values: the largest is the maximum and the smallest is the minimum.
A Simplification in Practical Problems
In a practical problem, if the nature of the problem lets you conclude that the maximum (or the minimum) must be attained in the interior of the region, and the function has only one stationary point there, then the value of the function at that stationary point is the required maximum (or minimum), and there is no need to compare with the boundary.
Typical Application Problems
Example 1: The Maximum Volume of a Water Tank
A factory is to make a lidded rectangular tank of volume 2m3 out of sheet metal. What dimensions should be chosen so that the least material is used?
applications of extremathe maximum and minimum valuea rectangular boxusing the least material
Approach:
Minimising the surface area when the volume is fixed is the classic conditional extremum problem.
Steps:
Let the length, width and height of the tank be x,y,z; the volume is xyz=2 and the surface area is S=2(xy+yz+xz)
From z=xy2 we get S(x,y)=2(xy+x2+y2) (x>0,y>0)
Sx=2(y−x22) and Sy=2(x−y22)
Setting Sx=Sy=0: y=x22 and x=y22
Substituting gives x=(2/x2)22=2x4, that is, x3=2 and x=32
Similarly y=32 and z=xy2=(32)22=32
By the practical meaning, the minimum of the surface area exists and is unique, so the least material is used when the length = the width = the height = 32m.
Answer: the least material is used when the tank is a cube with side length 32m.
Example 2: The Largest Inscribed Rectangular Box
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).
applications of extremaan ellipsoidan inscribed rectangular boxthe maximum value
Approach:
Use the symmetry to work only in the first octant; the volume is proportional to the product of the three semi-axes, and then the extremum condition gives the answer.
Steps:
Let the vertex of the box in the first octant be (x,y,z); the volume is V=8xyz
From the equation of the ellipsoid, z=c1−a2x2−b2y2
V(x,y)=8cxy1−a2x2−b2y2
For convenience, maximise V2=64c2x2y2(1−a2x2−b2y2)
Put u=x2,v=y2, and maximise f(u,v)=uv(1−a2u−b2v)
fu=v(1−a22u−b2v) and fv=u(1−a2u−b22v)
Setting fu=fv=0 gives u=3a2 and v=3b2
x=3a,y=3b,z=3c
The maximum volume V=8⋅3a⋅3b⋅3c=338abc
Answer: the maximum volume is 338abc.
Example 3: The Least Squares Method
Given a set of data (xi,yi) (i=1,…,n), find the line y=ax+b for which the sum of the squared errors S=∑i=1n(yi−axi−b)2 is smallest.
applications of extremathe least squares methodlinear regressionthe maximum value
Approach:
Take the partial derivatives of the sum of the squared errors with respect to the slope and the intercept and set them to zero; this gives the normal equations of linear regression.
Steps:
S(a,b)=∑i=1n(yi−axi−b)2
∂a∂S=−2∑i=1nxi(yi−axi−b) and ∂b∂S=−2∑i=1n(yi−axi−b)
Setting the partial derivatives to zero:
{a∑xi2+b∑xi=∑xiyia∑xi+nb=∑yi
The Hessian matrix H=(2∑xi22∑xi2∑xi2n) is positive definite when the xi are not all equal, so this is a minimum point.
Answer: the slope and the intercept of the least squares line are given by the formulas above; these are the normal equations of linear regression.
Example 4: Extrema on a Closed Region
Find the maximum and the minimum values of f(x,y)=x2−2xy+2y on the rectangular region D={(x,y)∣0≤x≤3,0≤y≤2}.
the maximum and minimum valuea closed regionthe boundarya rectangle
Approach:
The extremum may be at an interior stationary point or on the boundary, so examine the interior and the boundary in two rounds and then compare.
Steps:
The interior stationary points: fx=2x−2y and fy=−2x+2; setting them to zero gives x=1,y=1, and f(1,1)=1
The boundary y=0 (0≤x≤3): f=x2, with minimum f(0,0)=0 and maximum f(3,0)=9
The boundary y=2 (0≤x≤3): f=x2−4x+4=(x−2)2, with minimum f(2,2)=0 and maximum f(0,2)=4
The boundary x=0 (0≤y≤2): f=2y, with minimum f(0,0)=0 and maximum f(0,2)=4
The boundary x=3 (0≤y≤2): f=9−6y+2y=9−4y, with minimum f(3,2)=1 and maximum f(3,0)=9
Comparing all the values: the maximum is 9 (at (3,0)) and the minimum is 0 (at (0,0) and (2,2))
Answer: the maximum value is f(3,0)=9, and the minimum value is f(0,0)=f(2,2)=0.
Exercises
Exercise 1
A cylindrical container without a lid is to be made to hold a volume V. What should the base radius and the height be so that the least material is used?
applications of extremaa cylinderthe maximum and minimum valueusing the least material
Approach:
A cylinder without a lid has the smallest surface area when the volume is fixed; this is again a conditional extremum problem.
Steps:
Let the base radius be r and the height be h; the volume is πr2h=V and the surface area is S=πr2+2πrh
h=πr2V, so S(r)=πr2+r2V
S′(r)=2πr−r22V; setting S′=0 gives r3=πV and r=3πV
h=πr2V=π(V/π)2/3V=3πV=r
S′′(r)=2π+r34V>0, so this is a minimum
Answer: the least material is used when the base radius r=3πV and the height h=3πV (that is, when the height equals the base radius).
Exercise 2
Find the maximum and the minimum values of f(x,y)=xy on the disk x2+y2≤1.
the maximum and minimum valuea closed regiona diskthe boundary
Approach:
To find the extrema on a disk you again have to compare the interior stationary points with the values on the boundary.
Steps:
The interior stationary points: fx=y and fy=x; the stationary point is (0,0) and f(0,0)=0
The boundary x2+y2=1: put x=cosθ,y=sinθ, so f=cosθsinθ=21sin2θ
On the boundary the maximum is 21 (θ=4π,45π) and the minimum is −21 (θ=43π,47π)
Comparing: the maximum is 21 and the minimum is −21
Answer: the maximum value is 21 (at (22,22) and (−22,−22)), and the minimum value is −21 (at (−22,22) and (22,−22)).