Lagrange multiplier for maximizing a function with two constraints?
Hi everyone.
I'm not that familiar with English math terminology so I hope that you'll bear with me.
Currently, I'm trying to maximize a function with two constraints, but I got stuck because of one of my constraints. My first constraint has both the variables \(\displaystyle x\) and \(\displaystyle y\), but my second constraint only has the variabley. The reason why I'm confused by this is that when I proceed to solve the problem, I have no use for the Lagrange multiplier \(\displaystyle \lambda\). I can simply solve \(\displaystyle L_{\lambda_{1}} = 0\) and \(\displaystyle L_{\lambda_{2}} = 0\). This will enough to yield my results (the \(\displaystyle x\) and \(\displaystyle y\) coordinates). It is frustrating me because I need to put it into words, what I am doing (in terms of using Lagrange multipliers) and why I apparently had to skip the \(\displaystyle \lambda\) all together.
The function that I'm trying to maximize is as follows:
\(\displaystyle f(x,y) = -0,01x^2 + 395x + 100y\)
My constraints are these:
\(\displaystyle 2x + y = 44,000\)
\(\displaystyle y = 20,000\)
I know that the correct answer (through using other methods of optimization) is:
\(\displaystyle x = 12,000\)
\(\displaystyle y = 20,000\)
The way that I've proceeded to solve this problem is by putting the respective functions and constraints into a formula that was taught at school:
\(\displaystyle L(x, y, \lambda_{1}, \lambda_{2}) = -0,01x^2 + 395x + 100y - \lambda_{1} * (2x + y - 44,000) - \lambda_{2} * (y - 20,000)\)
I then proceed by figuring out the partial differentials of \(\displaystyle L\) with respect to \(\displaystyle x\), \(\displaystyle y\), \(\displaystyle \lambda_{1}\) and \(\displaystyle \lambda_{2}\) to ultimately isolate \(\displaystyle x\) and \(\displaystyle y\). I am getting the correct results, but there's no need to solve \(\displaystyle L_x = 0\) and \(\displaystyle L_y = 0\). This is what's confusing me and what I'm having a hard time putting into words.
Hi everyone.
I'm not that familiar with English math terminology so I hope that you'll bear with me.
Currently, I'm trying to maximize a function with two constraints, but I got stuck because of one of my constraints. My first constraint has both the variables \(\displaystyle x\) and \(\displaystyle y\), but my second constraint only has the variabley. The reason why I'm confused by this is that when I proceed to solve the problem, I have no use for the Lagrange multiplier \(\displaystyle \lambda\). I can simply solve \(\displaystyle L_{\lambda_{1}} = 0\) and \(\displaystyle L_{\lambda_{2}} = 0\). This will enough to yield my results (the \(\displaystyle x\) and \(\displaystyle y\) coordinates). It is frustrating me because I need to put it into words, what I am doing (in terms of using Lagrange multipliers) and why I apparently had to skip the \(\displaystyle \lambda\) all together.
The function that I'm trying to maximize is as follows:
\(\displaystyle f(x,y) = -0,01x^2 + 395x + 100y\)
My constraints are these:
\(\displaystyle 2x + y = 44,000\)
\(\displaystyle y = 20,000\)
I know that the correct answer (through using other methods of optimization) is:
\(\displaystyle x = 12,000\)
\(\displaystyle y = 20,000\)
The way that I've proceeded to solve this problem is by putting the respective functions and constraints into a formula that was taught at school:
\(\displaystyle L(x, y, \lambda_{1}, \lambda_{2}) = -0,01x^2 + 395x + 100y - \lambda_{1} * (2x + y - 44,000) - \lambda_{2} * (y - 20,000)\)
I then proceed by figuring out the partial differentials of \(\displaystyle L\) with respect to \(\displaystyle x\), \(\displaystyle y\), \(\displaystyle \lambda_{1}\) and \(\displaystyle \lambda_{2}\) to ultimately isolate \(\displaystyle x\) and \(\displaystyle y\). I am getting the correct results, but there's no need to solve \(\displaystyle L_x = 0\) and \(\displaystyle L_y = 0\). This is what's confusing me and what I'm having a hard time putting into words.
Last edited: