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 views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 14.5 : Lagrange Multipliers

2. Find the maximum and minimum values of \(f\left( {x,y} \right) = 8{x^2} - 2y\) subject to the constraint \({x^2} + {y^2} = 1\).

Show All Steps Hide All Steps

Start Solution

Before proceeding with the problem let’s note because our constraint is the sum of two terms that are squared (and hence positive) the largest possible range of \(x\) is \( - 1 \le x \le 1\) (the largest values would occur if \(y = 0\)). Likewise, the largest possible range of \(y\) is \( - 1 \le y \le 1\) (with the largest values occurring if \(x = 0\)).

Note that, at this point, we don’t know if \(x\) and/or \(y\) will actually be the largest possible value. At this point we are simply acknowledging what they are. What this allows us to say is that whatever our answers will be they must occur in these bounded ranges and hence 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 actual step in the solution process is then to write down the system of equations we’ll need to solve for this problem.

\[\begin{align*}16x & = 2x\lambda \\ - 2 & = 2y\lambda \\ {x^2} + {y^2} & = 1\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.

For this system it looks like maybe the first equation will give us some information to start off with so let’s start with that equation. A quick rewrite of the equation gives us the following,

\[16x - 2x\lambda = 2x\left( {8 - \lambda } \right) = 0\hspace{0.25in} \to \hspace{0.25in}x = 0\,\,\,\,{\mbox{or}}\,\,\,\,\lambda = 8\]

Be careful here to not just divide both sides by \(x\) to “simplify” the equation. Remember that you can’t divide by anything unless you know for a fact that it won’t ever be zero. In this case we can see that \(x\) clearly can be zero and if you divide it out to start the solution process you will miss that solution. This is often one of the biggest mistakes that students make when working these kinds of problems.

Show Step 4

We now have two possibilities from Step 2. Either \(x = 0\) or \(\lambda = 8\). We’ll need to go through both of these possibilities and see what we get.

Let’s start by assuming that \(x = 0\). In this case we can go directly to the constraint to get,

\[{y^2} = 1\hspace{0.25in} \to \hspace{0.25in}y = \pm 1\]

Therefore, from this part we get two points that are potential absolute extrema,

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

Next, let’s assume that \(\lambda = 8\). In this case, we can plug this into the second equation to get,

\[ - 2 = 16y\hspace{0.25in} \to \hspace{0.25in}y = - \frac{1}{8}\]

So, under this assumption we must have \(y = - \frac{1}{8}\). We can now plug this into the constraint to get,

\[{x^2} + \frac{1}{{64}} = 1\hspace{0.25in} \to \hspace{0.25in}{x^2} = \frac{{63}}{{64}}\hspace{0.25in} \to \hspace{0.25in}x = \pm \sqrt {\frac{{63}}{{64}}} = \pm \frac{{3\sqrt 7 }}{8}\]

So, this part gives us two more points that are potential absolute extrema,

\[\left( { - \frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \right)\hspace{0.5in}\left( {\frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \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( { - \frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \right) = \frac{{65}}{8}\hspace{0.5in}f\left( {\frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \right) = \frac{{65}}{8}\hspace{0.25in}\,f\left( {0, - 1} \right) = 2\hspace{0.25in}f\left( {0,1} \right) = - 2\]

The absolute maximum is then \(\frac{{65}}{8} = 8.125\) which occurs at \(\left( { - \frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \right)\) and \(\left( {\frac{{3\sqrt 7 }}{8}, - \frac{1}{8}} \right)\). The absolute minimum is -2 which occurs at \(\left( {0,1} \right)\). Do not get excited about the absolute extrema occurring at multiple points. That will happen on occasion with these problems.