Use Lagrange multipliers to find the max and min of the function $f(x,y)=xe^y$ subject to the constraint...
Use Lagrange multipliers to find the max and min of the function $f(x,y)=xe^y$ subject to the constraint $x^2+y^2=6$.
My attempt:
I tried to find both partials and set them equal to $lambda$ times the partial of the constraint and got the following equations
$$e^y=2x(lambda)$$
$$x(e^y)=2y(lambda) $$
I then solved for $x$ and $y$ and got :
$$x=frac{e^y}{2lambda}$$
$$y=frac{xe^y}{2lambda}$$
I then plugged those into the original equation and got
$$frac{(x^2+1)(e^(2y) )}{4lambda^2}=6$$
I'm confused where to go from here and any help will be greatly appreciated
multivariable-calculus lagrange-multiplier
add a comment |
Use Lagrange multipliers to find the max and min of the function $f(x,y)=xe^y$ subject to the constraint $x^2+y^2=6$.
My attempt:
I tried to find both partials and set them equal to $lambda$ times the partial of the constraint and got the following equations
$$e^y=2x(lambda)$$
$$x(e^y)=2y(lambda) $$
I then solved for $x$ and $y$ and got :
$$x=frac{e^y}{2lambda}$$
$$y=frac{xe^y}{2lambda}$$
I then plugged those into the original equation and got
$$frac{(x^2+1)(e^(2y) )}{4lambda^2}=6$$
I'm confused where to go from here and any help will be greatly appreciated
multivariable-calculus lagrange-multiplier
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10
add a comment |
Use Lagrange multipliers to find the max and min of the function $f(x,y)=xe^y$ subject to the constraint $x^2+y^2=6$.
My attempt:
I tried to find both partials and set them equal to $lambda$ times the partial of the constraint and got the following equations
$$e^y=2x(lambda)$$
$$x(e^y)=2y(lambda) $$
I then solved for $x$ and $y$ and got :
$$x=frac{e^y}{2lambda}$$
$$y=frac{xe^y}{2lambda}$$
I then plugged those into the original equation and got
$$frac{(x^2+1)(e^(2y) )}{4lambda^2}=6$$
I'm confused where to go from here and any help will be greatly appreciated
multivariable-calculus lagrange-multiplier
Use Lagrange multipliers to find the max and min of the function $f(x,y)=xe^y$ subject to the constraint $x^2+y^2=6$.
My attempt:
I tried to find both partials and set them equal to $lambda$ times the partial of the constraint and got the following equations
$$e^y=2x(lambda)$$
$$x(e^y)=2y(lambda) $$
I then solved for $x$ and $y$ and got :
$$x=frac{e^y}{2lambda}$$
$$y=frac{xe^y}{2lambda}$$
I then plugged those into the original equation and got
$$frac{(x^2+1)(e^(2y) )}{4lambda^2}=6$$
I'm confused where to go from here and any help will be greatly appreciated
multivariable-calculus lagrange-multiplier
multivariable-calculus lagrange-multiplier
edited Dec 2 '18 at 23:02
asked Dec 2 '18 at 22:56
Emily
133
133
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10
add a comment |
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10
add a comment |
3 Answers
3
active
oldest
votes
We have,
$$e^y = 2 lambda x$$
$$x e^y = 2 lambda y$$
thus,
$$x = frac{2 lambda y}{e^y} = frac{2 lambda y}{2 lambda x} = frac{y}{x}$$
finally,
$$x^2 = y$$
Now we replace into the original (constraint) equation
$$y^2 + y - 6 = 0$$
You have now the constraint in the form of a quadratic equation, you can easily find the value of $y$ through solving the equation.
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
add a comment |
Following your calculations:
$$2lambda=e^y/x$$
$$2lambda=xe^y/y$$
so
$$e^y/x=xe^y/y iff ye^y=x^2e^y iff y=x^2$$ where in the last equivalency we use that $e^yne0$.
Now, use this information with your constraint to get a bicuadratic equation on $x$ that you can solve alone.
add a comment |
Without Lagrange Multipliers
Calling
$$
x = rcos(theta)\
y = rsin(theta)
$$
we have the equivalent problem
$$
maxmin_{theta}f(theta) = sqrt{6}cos(theta) e^{sqrt 6sin(theta)}
$$
and
$$
f'(theta) = sqrt{6}e^{sqrt{6} sin (theta )} left(sqrt{6} cos ^2(theta )-sin (theta )right)to sqrt{6} cos ^2(theta )-sin (theta ) = 0
$$
etc.
NOTE
This result is equivalent to the system
$$
x^2+y^2=6\
x^2-y = 0
$$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023338%2fuse-lagrange-multipliers-to-find-the-max-and-min-of-the-function-fx-y-xey-s%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
We have,
$$e^y = 2 lambda x$$
$$x e^y = 2 lambda y$$
thus,
$$x = frac{2 lambda y}{e^y} = frac{2 lambda y}{2 lambda x} = frac{y}{x}$$
finally,
$$x^2 = y$$
Now we replace into the original (constraint) equation
$$y^2 + y - 6 = 0$$
You have now the constraint in the form of a quadratic equation, you can easily find the value of $y$ through solving the equation.
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
add a comment |
We have,
$$e^y = 2 lambda x$$
$$x e^y = 2 lambda y$$
thus,
$$x = frac{2 lambda y}{e^y} = frac{2 lambda y}{2 lambda x} = frac{y}{x}$$
finally,
$$x^2 = y$$
Now we replace into the original (constraint) equation
$$y^2 + y - 6 = 0$$
You have now the constraint in the form of a quadratic equation, you can easily find the value of $y$ through solving the equation.
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
add a comment |
We have,
$$e^y = 2 lambda x$$
$$x e^y = 2 lambda y$$
thus,
$$x = frac{2 lambda y}{e^y} = frac{2 lambda y}{2 lambda x} = frac{y}{x}$$
finally,
$$x^2 = y$$
Now we replace into the original (constraint) equation
$$y^2 + y - 6 = 0$$
You have now the constraint in the form of a quadratic equation, you can easily find the value of $y$ through solving the equation.
We have,
$$e^y = 2 lambda x$$
$$x e^y = 2 lambda y$$
thus,
$$x = frac{2 lambda y}{e^y} = frac{2 lambda y}{2 lambda x} = frac{y}{x}$$
finally,
$$x^2 = y$$
Now we replace into the original (constraint) equation
$$y^2 + y - 6 = 0$$
You have now the constraint in the form of a quadratic equation, you can easily find the value of $y$ through solving the equation.
answered Dec 2 '18 at 23:22
Blg Khalil
283
283
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
add a comment |
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
Thank you so much I just found the roots to be 2 and -3 but I'm confused what to do with those?
– Emily
Dec 2 '18 at 23:43
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
You repalce the values of $y$ that you have found in the constraint equation & you end up getting two points $(x_1,y_1)$ & $(x_2,y_2)$, one of these two points is the local max. while the other is the local min., to verify which one is the local max. & which one is the local min. you calculate the second order partial derivatives of $f(x,y)$ because it's a multivariate function you will calculate the Hessian matrix & its determinant to find out which of the two points is local min. & which is the local max.,more here: analyzemath.com/calculus/multivariable/maxima_minima.html
– Blg Khalil
Dec 3 '18 at 2:28
add a comment |
Following your calculations:
$$2lambda=e^y/x$$
$$2lambda=xe^y/y$$
so
$$e^y/x=xe^y/y iff ye^y=x^2e^y iff y=x^2$$ where in the last equivalency we use that $e^yne0$.
Now, use this information with your constraint to get a bicuadratic equation on $x$ that you can solve alone.
add a comment |
Following your calculations:
$$2lambda=e^y/x$$
$$2lambda=xe^y/y$$
so
$$e^y/x=xe^y/y iff ye^y=x^2e^y iff y=x^2$$ where in the last equivalency we use that $e^yne0$.
Now, use this information with your constraint to get a bicuadratic equation on $x$ that you can solve alone.
add a comment |
Following your calculations:
$$2lambda=e^y/x$$
$$2lambda=xe^y/y$$
so
$$e^y/x=xe^y/y iff ye^y=x^2e^y iff y=x^2$$ where in the last equivalency we use that $e^yne0$.
Now, use this information with your constraint to get a bicuadratic equation on $x$ that you can solve alone.
Following your calculations:
$$2lambda=e^y/x$$
$$2lambda=xe^y/y$$
so
$$e^y/x=xe^y/y iff ye^y=x^2e^y iff y=x^2$$ where in the last equivalency we use that $e^yne0$.
Now, use this information with your constraint to get a bicuadratic equation on $x$ that you can solve alone.
answered Dec 2 '18 at 23:19
Tito Eliatron
1,553622
1,553622
add a comment |
add a comment |
Without Lagrange Multipliers
Calling
$$
x = rcos(theta)\
y = rsin(theta)
$$
we have the equivalent problem
$$
maxmin_{theta}f(theta) = sqrt{6}cos(theta) e^{sqrt 6sin(theta)}
$$
and
$$
f'(theta) = sqrt{6}e^{sqrt{6} sin (theta )} left(sqrt{6} cos ^2(theta )-sin (theta )right)to sqrt{6} cos ^2(theta )-sin (theta ) = 0
$$
etc.
NOTE
This result is equivalent to the system
$$
x^2+y^2=6\
x^2-y = 0
$$
add a comment |
Without Lagrange Multipliers
Calling
$$
x = rcos(theta)\
y = rsin(theta)
$$
we have the equivalent problem
$$
maxmin_{theta}f(theta) = sqrt{6}cos(theta) e^{sqrt 6sin(theta)}
$$
and
$$
f'(theta) = sqrt{6}e^{sqrt{6} sin (theta )} left(sqrt{6} cos ^2(theta )-sin (theta )right)to sqrt{6} cos ^2(theta )-sin (theta ) = 0
$$
etc.
NOTE
This result is equivalent to the system
$$
x^2+y^2=6\
x^2-y = 0
$$
add a comment |
Without Lagrange Multipliers
Calling
$$
x = rcos(theta)\
y = rsin(theta)
$$
we have the equivalent problem
$$
maxmin_{theta}f(theta) = sqrt{6}cos(theta) e^{sqrt 6sin(theta)}
$$
and
$$
f'(theta) = sqrt{6}e^{sqrt{6} sin (theta )} left(sqrt{6} cos ^2(theta )-sin (theta )right)to sqrt{6} cos ^2(theta )-sin (theta ) = 0
$$
etc.
NOTE
This result is equivalent to the system
$$
x^2+y^2=6\
x^2-y = 0
$$
Without Lagrange Multipliers
Calling
$$
x = rcos(theta)\
y = rsin(theta)
$$
we have the equivalent problem
$$
maxmin_{theta}f(theta) = sqrt{6}cos(theta) e^{sqrt 6sin(theta)}
$$
and
$$
f'(theta) = sqrt{6}e^{sqrt{6} sin (theta )} left(sqrt{6} cos ^2(theta )-sin (theta )right)to sqrt{6} cos ^2(theta )-sin (theta ) = 0
$$
etc.
NOTE
This result is equivalent to the system
$$
x^2+y^2=6\
x^2-y = 0
$$
answered Dec 3 '18 at 0:02
Cesareo
8,2583516
8,2583516
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023338%2fuse-lagrange-multipliers-to-find-the-max-and-min-of-the-function-fx-y-xey-s%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Try to eliminate $lambda$ from the two equations.
– Tito Eliatron
Dec 2 '18 at 23:08
How would I go about doing that?
– Emily
Dec 2 '18 at 23:10