Paul's Online Notes
Paul's Online Notes
Home / Calculus III / Applications of Partial Derivatives / Lagrange Multipliers
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best viewed in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (you should be able to scroll/swipe to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 14.5 : Lagrange Multipliers

5. Find the maximum and minimum values of \(f\left( {x,y,z} \right) = 3{x^2} + y\) subject to the constraints \(4x - 3y = 9\) and \({x^2} + {z^2} = 9\).

Show All Steps Hide All Steps

Start Solution

Before proceeding with the problem let’s note that the second constraint is the sum of two terms that are squared (and hence positive). Therefore, the largest possible range of \(x\) is \( - 3 \le x \le 3\) (the largest values would occur if \(z = 0\)). We’ll get a similar range for \(z\).

Now, the first constraint is not the sum of two (or more) positive numbers. However, we’ve already established that \(x\) is restricted to \( - 3 \le x \le 3\) and this will give \( - 7 \le y \le 1\) as the largest possible range of \(y\)’s. Note that we can easily get this range by acknowledging that the first constraint is just a line and so the extreme values of \(y\) will correspond to the extreme values of \(x\).

So, because we now know that our answers must occur in these bounded ranges by the Extreme Value Theorem we know that absolute extrema will occur for this problem.

This step is an important (and often overlooked) step in these problems. It always helps to know that absolute extrema exist prior to actually trying to find them!

Show Step 2

The first step here is to write down the system of equations we’ll need to solve for this problem.

\[\begin{align*}6x & = 4\lambda + 2x\mu \\ 1 & = - 3\lambda \\ 0 & = 2z\mu \\ 4x - 3y & = 9\\ {x^2} + {z^2} & = 9\end{align*}\] Show Step 3

For most of these systems there are a multitude of solution methods that we can use to find a solution. Some may be harder than other, but unfortunately, there will often be no way of knowing which will be “easy” and which will be “hard” until you start the solution process.

Do not be afraid of these systems. They are probably unlike anything you’ve ever really been asked to solve up to this point. Most of the systems can be solved using techniques that you already know and aren’t really as “bad” as they may appear at first glance. Some do require some additional techniques and can be quite messy but for the most part still involve techniques that you do know how to use, you just may not have ever seen them done in the context of solving systems of equations.

With this system we get a “freebie” to start off with. Notice that from the second equation we quickly can see that \(\lambda = - \frac{1}{3}\) regardless of any of the values of the other variables in the system.

Show Step 4

Next, from the third equation we can see that we have either \(z = 0\) or \(\mu = 0\), So, we have 2 possibilities to look at. Let’s take a look at \(z = 0\) first.

In this case we can go straight to the second constraint to get,

\[{x^2} = 9\hspace{0.25in} \to \hspace{0.25in}x = \pm 3\]

We can in turn plug each of these possibilities into the first constraint to get values for \(y\).

\[\begin{align*}x = - 3\,\,\,\,\, & :\,\,\,\,\,\,\,\, - 12 - 3y = 9\,\,\,\,\,\,\,\,\,\,\, \to \hspace{0.25in}y = - 7\\ x = 3\,\,\,\,\,\,\,\, & :\,\,\,\,\,\,\,\,\,\,\,\,12 - 3y = 9\,\,\,\,\,\,\,\,\,\,\, \to \hspace{0.25in}y = 1\end{align*}\]

Okay, from this step we have two possible absolute extrema.

\[\left( { - 3, - 7,0} \right)\hspace{0.25in}\left( {3,1,0} \right)\] Show Step 5

Now let’s go back and take a look at what happens if \(\mu = 0\). If we plug this into the first equation in our system (and recalling that we also know that \(\lambda = - \frac{1}{3}\)) we get,

\[6x = - \frac{4}{3}\,\,\,\,\,\,\,\,\,\,\,\, \to \hspace{0.25in}x = - \frac{2}{9}\]

We can plug this into each of our constraints to get values of \(y\) (from the first constraint) and \(z\) (form the second constraint). Here is that work,

\[\begin{align*}4\left( { - \frac{2}{9}} \right) - 3y = 9\hspace{0.25in} \to \hspace{0.25in}\,y = - \frac{{89}}{{27}}\\ & \,\,{\left( { - \frac{2}{9}} \right)^2} + {z^2} = 9\hspace{0.25in} \to \hspace{0.25in}\,z = \pm \frac{{5\sqrt {29} }}{9}\end{align*}\]

This leads to two more potential absolute extrema.

\[\left( { - \frac{2}{9}, - \frac{{89}}{{27}}, - \frac{{5\sqrt {29} }}{9}} \right)\hspace{0.25in}\,\left( { - \frac{2}{9}, - \frac{{89}}{{27}},\frac{{5\sqrt {29} }}{9}} \right)\] Show Step 6

In total, it looks like we have four points that can potentially be absolute extrema. So, to determine the absolute extrema all we need to do is evaluate the function at each of these points. Here are those function evaluations.

\[f\left( { - 3, - 7,0} \right) = 20\,\,\,\,\,\,\,f\left( {3,1,0} \right) = 28\,\,\,\,\,\,\,f\left( { - \frac{2}{9}, - \frac{{89}}{{27}}, - \frac{{5\sqrt {29} }}{9}} \right) = - \frac{{85}}{{27}}\,\,\,\,\,\,\,f\left( { - \frac{2}{9}, - \frac{{89}}{{27}},\frac{{5\sqrt {29} }}{9}} \right) = - \frac{{85}}{{27}}\]

The absolute maximum is then 28 which occurs at \(\left( {3,1,0} \right)\). The absolute minimum is \( - \frac{{85}}{{27}}\) which occurs at \(\left( { - \frac{2}{9}, - \frac{{89}}{{27}}, - \frac{{5\sqrt {29} }}{9}} \right)\) and \(\left( { - \frac{2}{9}, - \frac{{89}}{{27}},\frac{{5\sqrt {29} }}{9}} \right)\). Do not get excited about the absolute extrema occurring at multiple points. That will happen on occasion with these problems.

Before leaving this problem we should note that, in this case, the value of the absolute extrema (as opposed to the location) did not actually depend on the value of \(z\) in any way as the function we were optimizing in this problem did not depend on \(z\). This will happen sometimes and we shouldn’t get too worried about it when it does.

Note however that we still need the values of \(z\) for the location of the absolute extrema. We need the values of \(z\) for the location because the points that give the absolute extrema are also required to satisfy the constraint and the second constraint in our problem does involve \(z\)’s!