Lagrange multiplier method - cannot resolve equations but graphically I have the answer












3












$begingroup$


My problem is similar to this:
Intuitive explanation for formula of maximum length of a pipe moving around a corner?



However my pipe (20m long) must pass through a specific point (5,5) in the X-Y plane and the question is then how high up the wall can it reach? - see diagram below.
Diagram to explain setup



So my equations are $x^2 + y^2 = 400$ (function F) and the constraint can be written as $(x-5)(y-5) = 25$ (function G).
This second equation is seen via above diagram as $tan(theta) = x/y$ and also $tan(theta)= 5/(y-5)$ and $tan(theta)= (x-5)/5$ by similar triangles.



I use $ L = F - lambda(G) $.



$ L = x^2 + y^2 - 20^2 - lambda((x-5)(y-5)-25) $



So $partial L_x = 2x - lambda(y-5) = 0 $ Eqn1.



and $partial L_y = 2y - lambda(x-5) = 0 $ Eqn2



I then multiply Eqn1 by y and Eqn2 by x and subtract Eqn2 from Eqn1 and I cannot proceed from there.
Below is a graph I did that shows the solution (6.811,18.805) for x and y, but I would like to be able to solve it via Lagrange multiplier.
Thanks in advance for any clues
Graph of the 2 Equations










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
    $endgroup$
    – Lozenges
    Dec 22 '18 at 9:29












  • $begingroup$
    If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:32












  • $begingroup$
    I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:37
















3












$begingroup$


My problem is similar to this:
Intuitive explanation for formula of maximum length of a pipe moving around a corner?



However my pipe (20m long) must pass through a specific point (5,5) in the X-Y plane and the question is then how high up the wall can it reach? - see diagram below.
Diagram to explain setup



So my equations are $x^2 + y^2 = 400$ (function F) and the constraint can be written as $(x-5)(y-5) = 25$ (function G).
This second equation is seen via above diagram as $tan(theta) = x/y$ and also $tan(theta)= 5/(y-5)$ and $tan(theta)= (x-5)/5$ by similar triangles.



I use $ L = F - lambda(G) $.



$ L = x^2 + y^2 - 20^2 - lambda((x-5)(y-5)-25) $



So $partial L_x = 2x - lambda(y-5) = 0 $ Eqn1.



and $partial L_y = 2y - lambda(x-5) = 0 $ Eqn2



I then multiply Eqn1 by y and Eqn2 by x and subtract Eqn2 from Eqn1 and I cannot proceed from there.
Below is a graph I did that shows the solution (6.811,18.805) for x and y, but I would like to be able to solve it via Lagrange multiplier.
Thanks in advance for any clues
Graph of the 2 Equations










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
    $endgroup$
    – Lozenges
    Dec 22 '18 at 9:29












  • $begingroup$
    If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:32












  • $begingroup$
    I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:37














3












3








3





$begingroup$


My problem is similar to this:
Intuitive explanation for formula of maximum length of a pipe moving around a corner?



However my pipe (20m long) must pass through a specific point (5,5) in the X-Y plane and the question is then how high up the wall can it reach? - see diagram below.
Diagram to explain setup



So my equations are $x^2 + y^2 = 400$ (function F) and the constraint can be written as $(x-5)(y-5) = 25$ (function G).
This second equation is seen via above diagram as $tan(theta) = x/y$ and also $tan(theta)= 5/(y-5)$ and $tan(theta)= (x-5)/5$ by similar triangles.



I use $ L = F - lambda(G) $.



$ L = x^2 + y^2 - 20^2 - lambda((x-5)(y-5)-25) $



So $partial L_x = 2x - lambda(y-5) = 0 $ Eqn1.



and $partial L_y = 2y - lambda(x-5) = 0 $ Eqn2



I then multiply Eqn1 by y and Eqn2 by x and subtract Eqn2 from Eqn1 and I cannot proceed from there.
Below is a graph I did that shows the solution (6.811,18.805) for x and y, but I would like to be able to solve it via Lagrange multiplier.
Thanks in advance for any clues
Graph of the 2 Equations










share|cite|improve this question









$endgroup$




My problem is similar to this:
Intuitive explanation for formula of maximum length of a pipe moving around a corner?



However my pipe (20m long) must pass through a specific point (5,5) in the X-Y plane and the question is then how high up the wall can it reach? - see diagram below.
Diagram to explain setup



So my equations are $x^2 + y^2 = 400$ (function F) and the constraint can be written as $(x-5)(y-5) = 25$ (function G).
This second equation is seen via above diagram as $tan(theta) = x/y$ and also $tan(theta)= 5/(y-5)$ and $tan(theta)= (x-5)/5$ by similar triangles.



I use $ L = F - lambda(G) $.



$ L = x^2 + y^2 - 20^2 - lambda((x-5)(y-5)-25) $



So $partial L_x = 2x - lambda(y-5) = 0 $ Eqn1.



and $partial L_y = 2y - lambda(x-5) = 0 $ Eqn2



I then multiply Eqn1 by y and Eqn2 by x and subtract Eqn2 from Eqn1 and I cannot proceed from there.
Below is a graph I did that shows the solution (6.811,18.805) for x and y, but I would like to be able to solve it via Lagrange multiplier.
Thanks in advance for any clues
Graph of the 2 Equations







lagrange-multiplier






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 22 '18 at 9:04









dra42841dra42841

164




164








  • 1




    $begingroup$
    we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
    $endgroup$
    – Lozenges
    Dec 22 '18 at 9:29












  • $begingroup$
    If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:32












  • $begingroup$
    I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:37














  • 1




    $begingroup$
    we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
    $endgroup$
    – Lozenges
    Dec 22 '18 at 9:29












  • $begingroup$
    If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:32












  • $begingroup$
    I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
    $endgroup$
    – Omnomnomnom
    Dec 22 '18 at 9:37








1




1




$begingroup$
we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
$endgroup$
– Lozenges
Dec 22 '18 at 9:29






$begingroup$
we are trying to maximize $y$ subject to two constraints, $x^2+y^2=400$ and $(x-5)(y-5)=25$. Just solve the two equations
$endgroup$
– Lozenges
Dec 22 '18 at 9:29














$begingroup$
If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
$endgroup$
– Omnomnomnom
Dec 22 '18 at 9:32






$begingroup$
If you're going to use the similar triangles, then you could simply solve the system of equations $$ x^2 + y^2 = 400\ (x-5)(y-5) = 25 $$ and find those two intersections with positive coordinates.
$endgroup$
– Omnomnomnom
Dec 22 '18 at 9:32














$begingroup$
I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
$endgroup$
– Omnomnomnom
Dec 22 '18 at 9:37




$begingroup$
I'm not sure that this problem can be solved using Lagrange multipliers. What exactly is the quantity that you would be trying to maximize or minimize?
$endgroup$
– Omnomnomnom
Dec 22 '18 at 9:37










1 Answer
1






active

oldest

votes


















1












$begingroup$

It is good that you want to make up a new problem and solve it. It is also good that you refer to the existing problem. Later on you can consider more difficult Moving sofa problem.



Now speaking of your problem, you need to clarify what you want to optimize. This is the question you pose:




the question is then how high up the wall can it reach?




It looks you want to maximize $y$ subject to two constraints:
$$begin{cases} x^2 + y^2 = 400 text{(the pipe ends must touch the ground and the wall} \
(x-5)(y-5) = 25 text{(must pass through $(5,5)$)} end{cases}$$



The thing is you can solve the two constraints as a system and find $(x,y)=(6.8; 18.8), (18.8; 6.8)$. And choose $y=18.8$ as a maximum.



See the only two choices (other lines will not satisfy both constraints):



$hspace{3cm}$enter image description here



If you insist on solving the problem with Lagrange multiplier, then the Lagrange function is:
$$L(x,y,lambda_1,lambda_2)=y+lambda_1(400-x^2-y^2)+lambda_2(25-(x-5)(y-5)).$$



Now you can set partial derivatives equal to zero and find $(x,y)$. Note that when you take partial derivatives w.r.t. $lambda_1$ and $lambda_2$, you will anyway get the system of two equations mentioned above, which produces the two solutions.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
    $endgroup$
    – dra42841
    Dec 22 '18 at 11:57












  • $begingroup$
    Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
    $endgroup$
    – dra42841
    Dec 23 '18 at 3:03






  • 1




    $begingroup$
    Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:25






  • 1




    $begingroup$
    +1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:32












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3049239%2flagrange-multiplier-method-cannot-resolve-equations-but-graphically-i-have-the%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

It is good that you want to make up a new problem and solve it. It is also good that you refer to the existing problem. Later on you can consider more difficult Moving sofa problem.



Now speaking of your problem, you need to clarify what you want to optimize. This is the question you pose:




the question is then how high up the wall can it reach?




It looks you want to maximize $y$ subject to two constraints:
$$begin{cases} x^2 + y^2 = 400 text{(the pipe ends must touch the ground and the wall} \
(x-5)(y-5) = 25 text{(must pass through $(5,5)$)} end{cases}$$



The thing is you can solve the two constraints as a system and find $(x,y)=(6.8; 18.8), (18.8; 6.8)$. And choose $y=18.8$ as a maximum.



See the only two choices (other lines will not satisfy both constraints):



$hspace{3cm}$enter image description here



If you insist on solving the problem with Lagrange multiplier, then the Lagrange function is:
$$L(x,y,lambda_1,lambda_2)=y+lambda_1(400-x^2-y^2)+lambda_2(25-(x-5)(y-5)).$$



Now you can set partial derivatives equal to zero and find $(x,y)$. Note that when you take partial derivatives w.r.t. $lambda_1$ and $lambda_2$, you will anyway get the system of two equations mentioned above, which produces the two solutions.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
    $endgroup$
    – dra42841
    Dec 22 '18 at 11:57












  • $begingroup$
    Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
    $endgroup$
    – dra42841
    Dec 23 '18 at 3:03






  • 1




    $begingroup$
    Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:25






  • 1




    $begingroup$
    +1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:32
















1












$begingroup$

It is good that you want to make up a new problem and solve it. It is also good that you refer to the existing problem. Later on you can consider more difficult Moving sofa problem.



Now speaking of your problem, you need to clarify what you want to optimize. This is the question you pose:




the question is then how high up the wall can it reach?




It looks you want to maximize $y$ subject to two constraints:
$$begin{cases} x^2 + y^2 = 400 text{(the pipe ends must touch the ground and the wall} \
(x-5)(y-5) = 25 text{(must pass through $(5,5)$)} end{cases}$$



The thing is you can solve the two constraints as a system and find $(x,y)=(6.8; 18.8), (18.8; 6.8)$. And choose $y=18.8$ as a maximum.



See the only two choices (other lines will not satisfy both constraints):



$hspace{3cm}$enter image description here



If you insist on solving the problem with Lagrange multiplier, then the Lagrange function is:
$$L(x,y,lambda_1,lambda_2)=y+lambda_1(400-x^2-y^2)+lambda_2(25-(x-5)(y-5)).$$



Now you can set partial derivatives equal to zero and find $(x,y)$. Note that when you take partial derivatives w.r.t. $lambda_1$ and $lambda_2$, you will anyway get the system of two equations mentioned above, which produces the two solutions.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
    $endgroup$
    – dra42841
    Dec 22 '18 at 11:57












  • $begingroup$
    Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
    $endgroup$
    – dra42841
    Dec 23 '18 at 3:03






  • 1




    $begingroup$
    Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:25






  • 1




    $begingroup$
    +1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:32














1












1








1





$begingroup$

It is good that you want to make up a new problem and solve it. It is also good that you refer to the existing problem. Later on you can consider more difficult Moving sofa problem.



Now speaking of your problem, you need to clarify what you want to optimize. This is the question you pose:




the question is then how high up the wall can it reach?




It looks you want to maximize $y$ subject to two constraints:
$$begin{cases} x^2 + y^2 = 400 text{(the pipe ends must touch the ground and the wall} \
(x-5)(y-5) = 25 text{(must pass through $(5,5)$)} end{cases}$$



The thing is you can solve the two constraints as a system and find $(x,y)=(6.8; 18.8), (18.8; 6.8)$. And choose $y=18.8$ as a maximum.



See the only two choices (other lines will not satisfy both constraints):



$hspace{3cm}$enter image description here



If you insist on solving the problem with Lagrange multiplier, then the Lagrange function is:
$$L(x,y,lambda_1,lambda_2)=y+lambda_1(400-x^2-y^2)+lambda_2(25-(x-5)(y-5)).$$



Now you can set partial derivatives equal to zero and find $(x,y)$. Note that when you take partial derivatives w.r.t. $lambda_1$ and $lambda_2$, you will anyway get the system of two equations mentioned above, which produces the two solutions.






share|cite|improve this answer









$endgroup$



It is good that you want to make up a new problem and solve it. It is also good that you refer to the existing problem. Later on you can consider more difficult Moving sofa problem.



Now speaking of your problem, you need to clarify what you want to optimize. This is the question you pose:




the question is then how high up the wall can it reach?




It looks you want to maximize $y$ subject to two constraints:
$$begin{cases} x^2 + y^2 = 400 text{(the pipe ends must touch the ground and the wall} \
(x-5)(y-5) = 25 text{(must pass through $(5,5)$)} end{cases}$$



The thing is you can solve the two constraints as a system and find $(x,y)=(6.8; 18.8), (18.8; 6.8)$. And choose $y=18.8$ as a maximum.



See the only two choices (other lines will not satisfy both constraints):



$hspace{3cm}$enter image description here



If you insist on solving the problem with Lagrange multiplier, then the Lagrange function is:
$$L(x,y,lambda_1,lambda_2)=y+lambda_1(400-x^2-y^2)+lambda_2(25-(x-5)(y-5)).$$



Now you can set partial derivatives equal to zero and find $(x,y)$. Note that when you take partial derivatives w.r.t. $lambda_1$ and $lambda_2$, you will anyway get the system of two equations mentioned above, which produces the two solutions.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 22 '18 at 10:04









farruhotafarruhota

22.2k2942




22.2k2942












  • $begingroup$
    Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
    $endgroup$
    – dra42841
    Dec 22 '18 at 11:57












  • $begingroup$
    Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
    $endgroup$
    – dra42841
    Dec 23 '18 at 3:03






  • 1




    $begingroup$
    Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:25






  • 1




    $begingroup$
    +1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:32


















  • $begingroup$
    Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
    $endgroup$
    – dra42841
    Dec 22 '18 at 11:57












  • $begingroup$
    Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
    $endgroup$
    – dra42841
    Dec 23 '18 at 3:03






  • 1




    $begingroup$
    Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:25






  • 1




    $begingroup$
    +1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
    $endgroup$
    – farruhota
    Dec 23 '18 at 5:32
















$begingroup$
Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
$endgroup$
– dra42841
Dec 22 '18 at 11:57






$begingroup$
Thanks very much for that insight. I knew there were 2 solutions (via symmetry) but I never thought to put the extra y in the L (i.e. $L(x,y,lambda_1,lambda_2)=y+ $ ...etc ) - I also didnt think I would need two lambda's. Can you please explain how you can mathematically justify the extra y term in L, as all the examples I have seen just use the 2 functions as given and 1 lambda. I have also solved this problem using pure trigonometry (via a quadratic involving $Tan^2theta$ and $Cot^2theta$) but I was wanting to enhance my skills at the Lagrangian method. Thanks again
$endgroup$
– dra42841
Dec 22 '18 at 11:57














$begingroup$
Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
$endgroup$
– dra42841
Dec 23 '18 at 3:03




$begingroup$
Hi again - On reflection I realize the answer to my query about the extra y is so obvious that I couldn't see it (must have been an off day) - y is the thing we are trying to maximize of course, so naturally it must be in the L. Thus the 2 Eqns I provided are BOTH constraints (and hence the need for $lambda1$ and $lambda2$ ) and I was trying to treat 1 of them as the thing I was trying to maximize-which was a wrong move on my part.
$endgroup$
– dra42841
Dec 23 '18 at 3:03




1




1




$begingroup$
Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
$endgroup$
– farruhota
Dec 23 '18 at 5:25




$begingroup$
Yes, you explained it very well. As I said in the answer, you should always clarify what you want to optimize (here $y$, in the other problem, the length of pipe). In general, in the Lagrange function there will be as many lambdas as the number of constraints. Good luck.
$endgroup$
– farruhota
Dec 23 '18 at 5:25




1




1




$begingroup$
+1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
$endgroup$
– farruhota
Dec 23 '18 at 5:32




$begingroup$
+1 for the good question and analysis. I see you are new to this forum. You can also upvote the answers you find useful, accept (hit the tick mark on the left) the answer that fully answers your questions or wait until better answers are provided.
$endgroup$
– farruhota
Dec 23 '18 at 5:32


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3049239%2flagrange-multiplier-method-cannot-resolve-equations-but-graphically-i-have-the%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Brian Clough

Cáceres