Paul's Online Math Notes
     
 
Online Notes / Calculus III / Applications of Partial Derivatives / Lagrange Multipliers
Calculus III

You can navigate through this E-Book using the menu to the left. For E-Books that have a Chapter/Section organization each option in the menu to the left indicates a chapter and will open a menu showing the sections in that chapter. Alternatively, you can navigate to the next/previous section or chapter by clicking the links in the boxes at the very top and bottom of the material.

Also, depending upon the E-Book, it will be possible to download the complete E-Book, the chapter containing the current section and/or the current section. You can do this be clicking on the E-Book, Chapter, and/or the Section link provided below.

For those pages with mathematics on them you can, in most cases, enlarge the mathematics portion by clicking on the equation. Click the enlarged version to hide it.

 Lagrange Multipliers

In the previous section we optimized (i.e. found the absolute extrema) a function on a region that contained its boundary.  Finding potential optimal points in the interior of the region isn’t too bad in general, all that we needed to do was find the critical points and plug them into the function.  However, as we saw in the examples finding potential optimal points on the boundary was often a fairly long and messy process. 

 

In this section we are going to take a look at another way of optimizing a function subject to given constraint(s).  The constraint(s) may be the equation(s) that describe the boundary of a region although in this section we won’t concentrate on those types of problems since this method just requires a general constraint and doesn’t really care where the constraint came from.

 

So, let’s get things set up.  We want to optimize (find the minimum and maximum) of a function, , subject to the constraint .  Again, the constraint may be the equation that describes the boundary of a region or it may not be.  The process is actually fairly simple, although the work can still be a little overwhelming at times.

 

Method of Lagrange Multipliers

  1. Solve the following system of equations.

                                                    

 

  1. Plug in all solutions, , from the first step into  and identify the minimum and maximum values, provided they exist.

The constant, , is called the Lagrange Multiplier.

 

Notice that the system of equations actually has four equations, we just wrote the system in a simpler form.  To see this let’s take the first equation and put in the definition of the gradient vector to see what we get.

 

 

 

In order for these two vectors to be equal the individual components must also be equal.  So, we actually have three equations here.

 

 

These three equations along with the constraint, , give four equations with four unknowns x, y, z, and .

 

Note as well that if we only have functions of two variables then we won’t have the third component of the gradient and so will only have three equations in three unknowns x, y, and .

 

As a final note we also need to be careful with the fact that in some cases minimums and maximums won’t exist even though the method will seem to imply that they do.  In every problem we’ll need to go back and make sure that our answers make sense.

 

Let’s work a couple of examples.

 

Example 1  Find the dimensions of the box with largest volume if the total surface area is 64 cm2.

 

Solution

Before we start the process here note that we also saw a way to solve this kind of problem in Calculus I, except in those problems we required a condition that related one of the sides of the box to the other sides so that we could get down to a volume and surface area function that only involved two variables.  We no longer need this condition for these problems.

 

Now, let’s get on to solving the problem.  We first need to identify the function that we’re going to optimize as well as the constraint.  Let’s set the length of the box to be x, the width of the box to be y and the height of the box to be z.  Let’s also note that because we’re dealing with the dimensions of a box it is safe to assume that x, y, and z are all positive quantities.

 

We want to find the largest volume and so the function that we want to optimize is given by,

                                                             

 

Next we know that the surface area of the box must be a constant 64.  So this is the constraint.  The surface area of a box is simply the sum of the areas of each of the sides so the constraint is given by,

                        

 

Note that we divided the constraint by 2 to simplify the equation a little.  Also, we get the function  from this.

                                                      

 

Here are the four equations that we need to solve.

                                                                          (1)

                                                                          (2)

                                                                          (3)

                                                   (4)

 

There are many ways to solve this system.  We’ll solve it in the following way.  Let’s multiply equation (1) by x, equation (2) by y and equation (3) by z.  This gives,

                                                                                                                   (5)

                                                                                                                   (6)

                                                                                                                   (7)

 

Now notice that we can set equations (5) and (6) equal.  Doing this gives,

                       

 

This gave two possibilities.  The first,  is not possible since if this was the case equation (1) would reduce to

 

Since we are talking about the dimensions of a box neither of these are possible so we can discount .  This leaves the second possibility.

                                                                   

 

Since we know that  (again since we are talking about the dimensions of a box) we can cancel the z from both sides.  This gives,

                                                                                                                                   (8)

 

Next, let’s set equations (6) and (7) equal.  Doing this gives,

                            

As already discussed we know that  won’t work and so this leaves,

                                                                   

We can also say that  since we are dealing with the dimensions of a box so we must have,

                                                                                                                                    (9)

 

Plugging equations (8) and (9) into equation (4) we get,

 

                           

 

However, we know that y must be positive since we are talking about the dimensions of a box.  Therefore the only solution that makes physical sense here is

 

                                                            

 

So, it looks like we’ve got a cube here.

 

We should be a little careful here.  Since we’ve only got one solution we might be tempted to assume that this is dimensions that will give the largest volume.  The method of Lagrange Multipliers will give a set of points that will either maximize or minimize a given function subject to the constraint, provided there actually are minimums or maximums. 

 

The function itself,  will clearly have neither minimums or maximums unless we put some restrictions on the variables.  The only real restriction that we’ve got is that all the variables must be positive.  This, of course, instantly means that the function does have a minimum, zero.

 

The function will not have a maximum if all the variables are allowed to increase without bound.  That however, can’t happen because of the constraint,

 

                                                            

 

Here we’ve got the sum of three positive numbers (because x, y, and z are positive) and the sum must equal 32.  So, if one of the variables gets very large, say x, then because each of the products must be less than 32 both y and z must be very small to make sure the first two terms are less than 32.  So, there is no way for all the variables to increase without bound and so it should make some sense that the function, , will have a maximum.

This isn’t a rigorous proof that the function will have a maximum, but it should help to visualize that in fact it should have a maximum and so we can say that we will get a maximum volume if the dimensions are : .