Multivariable optimization with constraint

In summary: At point (0,0), the tangent line is at y=0.At point (6,0), the tangent line is at y=6.At point (0,6), the tangent line is at y=0.
  • #1
Petrus
702
0
Calculate biggest and lowest value to function
\(\displaystyle f(x,y)=x^5y^4e^{-3x-3y}\)
In the triangle has vertices in points \(\displaystyle \left(0,0 \right)\),\(\displaystyle \left(6,0 \right)\) and \(\displaystyle \left(0,6 \right)\)
Before I start I want to warn that I used google translate in the text 'In the triangle has vertices in points'
Progress:
I start to derivate (I need confirm if I did right when I did it)
Derivate x: \(\displaystyle 5x^4y^4e^{-3x-3y}(-3-3y)\)
Derivate y: \(\displaystyle x^5 4y^3e^{-3x-3y}(-3x-3)\)
 
Physics news on Phys.org
  • #2
Re: Two variable, e

I think you are trying to find the derivative with respect to x and the derivative with respect to y , right ?

To do so you must treat the other variable as constant ...
 
  • #3
Re: Two variable, e

ZaidAlyafey said:
I think you are trying to find the derivative with respect to x and the derivative with respect to y , right ?

To do so you must treat the other variable as constant ...
I think I got it now, I forgot to use product and chain rule..
Respect to x: \(\displaystyle 5x^4y^4e^{-3x-3y}-x^5y^4e^-3{-3x-3y}\)
Respect to y: \(\displaystyle x^54y^3e^{-3x-3y}-x^5y^4e^-3{-3x-3y}\)
I am correct?
 
Last edited:
  • #4
Re: Two variable, e

Petrus said:
I think I got it now, I forgot to use product and chain rule..
Respect to x: \(\displaystyle 5x^4y^4e^{-3x-3y}-x^5y^4e^{-3x-3y}-3\)
Respect to y: \(\displaystyle x^54y^3e^{-3x-3y}-x^5y^4e^{-3x-3y}-3\)
I am correct?

How did you get -3 at the end ?
 
  • #5
Re: Two variable, e

ZaidAlyafey said:
How did you get -3 at the end ?
Sorry forgot to write... I did edit my post. Next I shall find critical point and that I got problem... I know that I have to rewrite y as a function of x..
 
  • #6
Re: Two variable, e

what is the derivative of \(\displaystyle e^{-3x-3y}\) with respect to x ?
 
  • #7
Re: Two variable, e

ZaidAlyafey said:
what is the derivative of \(\displaystyle e^{-3x-3y}\) with respect to x ?

\(\displaystyle e^{-3x-3y}(-3-3y)\)
 
  • #8
Re: Two variable, e

Petrus said:
\(\displaystyle e^{-3x-3y}(-3-3y)\)
That's wrong... It should be \(\displaystyle -3e^{-3x-3y}\)
 
  • #9
Respect to x: \(\displaystyle 5x^4y^4e^{-3x-3y}+x^5y^43e^{-3x-3y}\)
Respect to y: \(\displaystyle x^54y^3e^{-3x-3y}+x^5y^43e^{-3x-3y}\)
And now I have to find critical point.
If we start with respect to y
I can factor out \(\displaystyle x^5e^{3x-3y}\)
so I got \(\displaystyle x^5e^{3x-3y}(4y^3+3y^4)\) I am correct?
 
Last edited:
  • #10
You are given the function:

\(\displaystyle f(x,y)=x^5y^4e^{-3(x+y)}\)

To find the critical values, you want to equate the partial derivatives to zero:

i) \(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)=x^4y^4e^{-3(x+y)}(5-3x)=0\)

ii) \(\displaystyle f_y(x,y)=x^5\left(y^4\left(e^{-3(x+y)}(-3) \right)+4y^3e^{-3(x+y)} \right)=x^5y^3e^{-3(x+y)}(4-3y)=0\)

What are your critical or stationary points? For each point within the given triangle, you may now use the second partials test for relative extrema to determine that nature of the extrema. Lastly, you want to check the boundary extrema:

Recall that if a function $f$ of a single variable $x$ is continuous on a closed interval $[a,b]$, then $f$ always has absolute extrema on the interval. In this case, an absolute extremum could be an endpoint extremum. For a function $f$ of two variables $x$ and $y$, the Extreme Value Theorem states that if $f$ is continuous on a closed and bounded region $R$, then $f$ has absolute extrema at points in $R$. Analogous to endpoint extrema, a function of two variables could have boundary extrema.

Can you give the boundaries of the region $R$ in this case?
 
  • #11
MarkFL said:
You are given the function:

\(\displaystyle f(x,y)=x^5y^4e^{-3(x+y)}\)

To find the critical values, you want to equate the partial derivatives to zero:

i) \(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)=x^4y^4e^{-3(x+y)}(5-3x)=0\)

ii) \(\displaystyle f_y(x,y)=x^5\left(y^4\left(e^{-3(x+y)}(-3) \right)+4y^3e^{-3(x+y)} \right)=x^5y^3e^{-3(x+y)}(4-3y)=0\)

What are your critical or stationary points? For each point within the given triangle, you may now use the second partials test for relative extrema to determine that nature of the extrema. Lastly, you want to check the boundary extrema:

Recall that if a function $f$ of a single variable $x$ is continuous on a closed interval $[a,b]$, then $f$ always has absolute extrema on the interval. In this case, an absolute extremum could be an endpoint extremum. For a function $f$ of two variables $x$ and $y$, the Extreme Value Theorem states that if $f$ is continuous on a closed and bounded region $R$, then $f$ has absolute extrema at points in $R$. Analogous to endpoint extrema, a function of two variables could have boundary extrema.

Can you give the boundaries of the region $R$ in this case?
Is this correct?
Open: \(\displaystyle 0<x<6\), \(\displaystyle 0<y<6\)
Closed: \(\displaystyle 0≤x≤6\), \(\displaystyle 0≤y≤6\)
Our tangent line is \(\displaystyle y=-x+6\)
 
Last edited:
  • #12
Your boundaries are correct. You need to find the critical values of $f(x,y)$ using what MarkFL wrote in his last post, which is to solve \(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\) and \(\displaystyle x^5y^3e^{-3(x+y)}(4-3y)=0\) for all $(x,y)$ pairs in the region of the triangle. Then you need to determine the nature of the critical points. Have you done this before? Here is a useful webpage that goes over all of this.
 
  • #13
Jameson said:
Your boundaries are correct. You need to find the critical values of $f(x,y)$ using what MarkFL wrote in his last post, which is to solve \(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\) and \(\displaystyle x^5y^3e^{-3(x+y)}(4-3y)=0\) for all $(x,y)$ pairs in the region of the triangle. Then you need to determine the nature of the critical points. Have you done this before? Here is a useful webpage that goes over all of this.
Hello Jameson!
Don't get me wrong but I do understand the progress I am just having big problem even thought Mark gave me big respons about critical point but I still got problem with it... I only done simpel problem, I understand that I Will find a subsitate for exempel y and put in the other equation. I am having problem with this one.

edit: I Will post some calcululate without Max,min value
 
Last edited:
  • #14
Hi Petrus. We can simplify the two equations Mark gave you. :)

\(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\) can be simplified to \(\displaystyle (5-3x)=0\) in this problem. Why? Since $x,y >0$ that means $x^4 y^4 e^{-3(x+y)}$ cannot be 0 in that domain, so we can cancel out all of those things and we're left with something much simpler. You can do the same thing for the second equation. Once you do that, you should solve the two equations for the critical points.
 
  • #15
Jameson said:
Hi Petrus. We can simplify the two equations Mark gave you. :)

\(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\) can be simplified to \(\displaystyle (5-3x)=0\) in this problem. Why? Since $x,y >0$ that means $x^4 y^4 e^{-3(x+y)}$ cannot be 0 in that domain, so we can cancel out all of those things and we're left with something much simpler. You can do the same thing for the second equation. Once you do that, you should solve the two equations for the critical points.
Hello Jameson,
I did understand but I did not understand what you mean with \(\displaystyle x,y>0\) what domain did you talk about? e^0=1 so that works?
 
  • #16
Petrus said:

Hello Jameson,
I did understand but I did not understand what you mean with \(\displaystyle x,y>0\) what domain did you talk about? e^0=1 so that works?

I want to say I am not 100% sure about this since it's been some time since I took this course, but I'll explain my thoughts.

The triangle has three boundary lines and is a closed region. We will test the boundaries separately though at the end of the problem because we can't use calculus to solve for that like we can for the relative maximums and minimums. So we can just focus on the interior of the triangle for now which means that $x>0$ and $y>0$.

Anyway, so if $x,y>0$ that means neither one can be 0 obviously. Now if we look at \(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\) we notice that there are two groups of terms. One group is \(\displaystyle x^4y^4e^{-3(x+y)}\) and the other is \(\displaystyle (5-3x)\). Why? All of these things are multiplied together so whenever anyone term equals 0, the whole thing equals 0. As we said though, $x \ne 0$, $y \ne 0$ and $e^{x}$ is never negative, so these terms can't help us find when the expression is 0 and we can remove them.

Only the last terms in both equations can be used to solve which simplifies the math quite a lot. What is left is $5-3x=0$ and $4-3y=0$. So from those two equations we should have a critical point to check now.
 
  • #17
I think I was wrong actually about not including 0. :(

You can include $x=0$, $y=0$ in the region. If you do then you get another point for the derivative equal to zero, the point (0,0). So you should have two points to test from the derivative calculations, $(0,0)$ and \(\displaystyle \left( \frac{5}{3}, \frac{4}{3} \right)\).

Now you need to test the boundaries of the triangle. I know this is the correct method for doing this but in this problem two equations are always 0 and I need to check how to interpret that but here's the math. We start with \(\displaystyle f(x,y)=x^5y^4e^{-3x-3y}\). The triangle has one leg on the x-axis from [0,6] so for that leg, $y=0$. We can plug that into $f(x,y)$ to define a new function for this leg. \(\displaystyle f(x,0)=0*y^4e^{-3x-3y}=0\) and it seems the same thing happens for $f(0,y)$ when we test the other leg.

So all that's left is the third leg, which is $y=-x+6$ as you correctly stated. I think you'll have to use Lagrange multipliers for this one since there are two variables. I don't think this post has any new information for you but I just wanted to make sure.

So what's left is to find the critical points of $x+y=6$ over the region of the triangle and test the other points we've found. Hopefully MarkFL will be on soon to steer the thread back on course. Sorry I'm a little out of practice with this topic but hopefully something has been useful. :)
 
  • #18
Jameson said:
I think I was wrong actually about not including 0. :(

You can include $x=0$, $y=0$ in the region. If you do then you get another point for the derivative equal to zero, the point (0,0). So you should have two points to test from the derivative calculations, $(0,0)$ and \(\displaystyle \left( \frac{5}{3}, \frac{4}{3} \right)\).

Now you need to test the boundaries of the triangle. I know this is the correct method for doing this but in this problem two equations are always 0 and I need to check how to interpret that but here's the math. We start with \(\displaystyle f(x,y)=x^5y^4e^{-3x-3y}\). The triangle has one leg on the x-axis from [0,6] so for that leg, $y=0$. We can plug that into $f(x,y)$ to define a new function for this leg. \(\displaystyle f(x,0)=0*y^4e^{-3x-3y}=0\) and it seems the same thing happens for $f(0,y)$ when we test the other leg.

So all that's left is the third leg, which is $y=-x+6$ as you correctly stated. I think you'll have to use Lagrange multipliers for this one since there are two variables. I don't think this post has any new information for you but I just wanted to make sure.

So what's left is to find the critical points of $x+y=6$ over the region of the triangle and test the other points we've found. Hopefully MarkFL will be on soon to steer the thread back on course. Sorry I'm a little out of practice with this topic but hopefully something has been useful. :)
Hello Jameson,
Cleaver cleaver, math is such so intressing how you think (There is always trick that is so logic but you never think about!) .. basicly when you solve the equation you think 2 case.
case 1 \(\displaystyle x,y=0\)
case 2 \(\displaystyle x,y>0\)
I want to add that I solved the problem min =0 and max =0.005. I want to check Mark progress on that simplify that I always get stuck on when I try:( I will try more and try understand!
Thanks to you all who respond and helped me! (Dance)
 
  • #19
Jameson said:
...

You can include $x=0$, $y=0$ in the region. If you do then you get another point for the derivative equal to zero, the point (0,0). So you should have two points to test from the derivative calculations, $(0,0)$ and \(\displaystyle \left( \frac{5}{3}, \frac{4}{3} \right)\).

Yes, I agree with those critical points since they are on the region $R$, and I was wrong about needing to use the second partials test, in this case we merely need to evaluate the function at these points and take these values as possible absolute extrema.

Jameson said:
...

Now you need to test the boundaries of the triangle. I know this is the correct method for doing this but in this problem two equations are always 0 and I need to check how to interpret that but here's the math. We start with \(\displaystyle f(x,y)=x^5y^4e^{-3x-3y}\). The triangle has one leg on the x-axis from [0,6] so for that leg, $y=0$. We can plug that into $f(x,y)$ to define a new function for this leg. \(\displaystyle f(x,0)=0*y^4e^{-3x-3y}=0\) and it seems the same thing happens for $f(0,y)$ when we test the other leg.

Yes, I agree, we find that the function is zero on all points of the two legs of the bounding triangle. For all other points on the triangle we will find $0<f(x,y)$, so we may conclude at this point that the absolute minimum on the given region is $f(x,y)=0$.

Jameson said:
...

So all that's left is the third leg, which is $y=-x+6$ as you correctly stated. I think you'll have to use Lagrange multipliers for this one since there are two variables. I don't think this post has any new information for you but I just wanted to make sure.

We could use Lagrange multipliers, or we may substitute for one of the variables using the constraint to get a function in one variable and optimize by equating the derivative of that function in one variable to zero.

I think it is much simpler in this case to use Lagrange multipliers, as this simply implies equating the partials we have already computed. From this we may get an equation relating $x$ and $y$ that we may use in the constraint to get a quadratic with two real roots, giving us two possible points on the hypotenuse of the triangle as possible absolute extrema, however, care must be taken to ensure these points are on the hypotenuse (one is not hint hint). :D
 
  • #20
MarkFL said:
Yes, I agree with those critical points since they are on the region $R$, and I was wrong about needing to use the second partials test, in this case we merely need to evaluate the function at these points and take these values as possible absolute extrema.

I completely forgot to mention testing for a saddle point. Your point though, I think, is that since we have all of the critical points over the region then we can test all of them to find the absolute max and min over the region. If the point we found in the interior of the triangle is in fact a saddle point it wouldn't matter because it's value would fall between the max and min that we will find. Is that your reasoning?

This is a good problem for me to brush up on my Calc III knowledge. I won't need to use a lot of the material usually covered but being able to analyze functions of more than one variable is a useful skill to have.
 
  • #21
MarkFL said:
You are given the function:

\(\displaystyle f(x,y)=x^5y^4e^{-3(x+y)}\)

To find the critical values, you want to equate the partial derivatives to zero:

i) \(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)=x^4y^4e^{-3(x+y)}(5-3x)=0\)

ii) \(\displaystyle f_y(x,y)=x^5\left(y^4\left(e^{-3(x+y)}(-3) \right)+4y^3e^{-3(x+y)} \right)=x^5y^3e^{-3(x+y)}(4-3y)=0\)
Hello Mark,
I don't understand the last part of i) \(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)=x^4y^4e^{-3(x+y)}(5-3x)=0\)
How do you get it to \(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\)
 
  • #22
Jameson said:
I completely forgot to mention testing for a saddle point. Your point though, I think, is that since we have all of the critical points over the region then we can test all of them to find the absolute max and min over the region. If the point we found in the interior of the triangle is in fact a saddle point it wouldn't matter because it's value would fall between the max and min that we will find. Is that your reasoning?...

Yes exactly, in much the same way for a function in one variable for which a critical point is not an extremum as the second derivative is zero there. Rather than compute the second derivative to then find we may discard this point, it is simpler just to evaluate the function at that point, and then find it lies in between the actual absolute extrema at the endpoints, and discard it then.

It doesn't hurt to go ahead and find the nature of the extrema, but is simply unnecessary for problems like this. It alleviates the need to compute all of the second partials, etc.
 
  • #23
Petrus said:
Hello Mark,
I don't understand the last part of i) \(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)=x^4y^4e^{-3(x+y)}(5-3x)=0\)
How do you get it to \(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=0\)

Okay, let's look at:

\(\displaystyle f_x(x,y)=y^4\left(x^5\left(e^{-3(x+y)}(-3) \right)+5x^4e^{-3(x+y)} \right)\)

Look at the two terms within the outer parentheses, and you should notice that both have \(\displaystyle x^4e^{-3(x+y)}\) as factors, so pull that factor out front to get:

\(\displaystyle f_x(x,y)=x^4y^4e^{-3(x+y)}\left(x(-3)+5 \right)=x^4y^4e^{-3(x+y)}(5-3x)\)

Does this make sense?
 
  • #24
Jameson said:
I completely forgot to mention testing for a saddle point. Your point though, I think, is that since we have all of the critical points over the region then we can test all of them to find the absolute max and min over the region. If the point we found in the interior of the triangle is in fact a saddle point it wouldn't matter because it's value would fall between the max and min that we will find. Is that your reasoning?

This is a good problem for me to brush up on my Calc III knowledge. I won't need to use a lot of the material usually covered but being able to analyze functions of more than one variable is a useful skill to have.
Hello Jameson,
I think you are confusing yourself now:P ( I do it as well with this problem)
I don't calculate local min and max values ( that means I don't use 'Second Derivate Test')
edit: I am wrong?
 
  • #25
Petrus said:
Hello Jameson,
I think you are confusing yourself now:P ( I do it as well with this problem)
I don't calculate local min and max values ( that means I don't use 'Second Derivate Test')

No, Jameson is correctly clarifying a point I made earlier.

You DO want to find all potential local or relative extrema within the triangle as critical values to test. You also want to test the boundaries. All we were saying is that the second partials test is unnecessary.

What have you found so far just so we know where you are at and where you need to go. :D
 
  • #26
MarkFL said:
No, Jameson is correctly clarifying a point I made earlier.

You DO want to find all potential local or relative extrema within the triangle as critical values to test. You also want to test the boundaries. All we were saying is that the second partials test is unnecessary.

What have you found so far just so we know where you are at and where you need to go. :D
Hello Mark,
Ok I need explain. Cause the method I use was I will use citat
"To find the absolute maximum and minimum values of a continuous function f on a closed, bounded set D:
1. Find the values of f at the critical points of f in D.
2. Find the extreme values of f on the boundary of D.
3. The largest of the values from steps 1 and 2 is the absolute maximum value; the smallest of these values is the absolute minimum value."
(I want to add that I now got how you did that simplify! thanks again Mark:))
 
Last edited:
  • #27
That looks good, Petrus. The only thing that hasn't been done in this thread is to find any critical points on the boundary line $x+y=6$. MarkFL suggested using Lagrange multipliers to find the critical points, which I agree with. Once you find the last point (MarkFL gave us a hint that there is just one more) then you can finally plug in all of your test points and be done. One more thing to solve for and then it's just plugging in numbers for the final answer.
 
  • #28
Okay, sounds like you have a good plan of attack. (Cool)

1.) Have you determined the value of $f(x,y)$ at your two critical points? If so what are they?

2.) You know that $f(x,y)=0$ on the two legs of the bounding triangle. Have you determined the critical point on the hypotenuse? Can you state the relationship between $x$ and $y$ as found by the method of Lagrange multipliers? If so, can you state a quadratic by using this relationship in the constraint given by the hypotenuse? If so can you state the roots, and show why one must be discarded? Once you do this, then evaluate the function at this boundary point. You should now have 3 values for part 3.).

3.) Once you have successfully completed 1.) and 2.) then this should be easy.
 
  • #29
Ok here we go:cool: (sorry for bad use of latex)
1. Our critical points are \(\displaystyle (0,0)\) and \(\displaystyle \left(\frac{5}{3},\frac{4}{3} \right)\)

Well our critical point \(\displaystyle (0,0)\) will give us the result 0. And the critical point \(\displaystyle \left(\frac{5}{3},\frac{4}{3} \right)\) give us 0.005

2. As Jameson said:

\(\displaystyle f(0,y)=0 \) on \(\displaystyle [0,6]\)
\(\displaystyle f(x,0)=0\) on \(\displaystyle [0,6]\)

(Now for the next hardest part :()

\(\displaystyle f(x,6-x)=x^5*(6-x)^4e^{-3x-3(6-x)}\) on \(\displaystyle [0,6]\) (I need to find the critical points as well...)

let's call it $g(x)$
$g'(x)=?$ I am struggling with derivative that product rule when I got 3 function :S
 
Last edited by a moderator:
  • #30
Hey Petrus,

I dressed up your $\LaTeX$ just a bit. For the most part it was fine. I will address your points as follows:

Petrus said:
...
1. Our critical points are \(\displaystyle (0,0)\) and \(\displaystyle \left(\frac{5}{3},\frac{4}{3} \right)\)

Well our critical point \(\displaystyle (0,0)\) will give us the result 0. And the critical point \(\displaystyle \left(\frac{5}{3},\frac{4}{3} \right)\) give us 0.005

Yes, that is correct, although I would keep the exact value for the purpose of answering the question, and use the decimal approximation for the purpose of comparison. So, we have:

\(\displaystyle f(0,0)=0\)

\(\displaystyle f\left(\frac{5}{3},\frac{4}{3} \right)=\frac{800000}{19683e^9}\approx0.005015894084709833\)

Petrus said:
...

2. As Jameson said:

\(\displaystyle f(0,y)=0 \) on \(\displaystyle [0,6]\)
\(\displaystyle f(x,0)=0\) on \(\displaystyle [0,6]\)

Yes, the function is zero at every point on the two legs. So we know the absolute minimum is zero, do you see why?

Petrus said:
...

(Now for the next hardest part :()

\(\displaystyle f(x,6-x)=x^5*(6-x)^4e^{-3x-3(6-x)}\) on \(\displaystyle [0,6]\) (I need to find the critical points as well...)

let's call it $g(x)$
$g'(x)=?$ I am struggling with derivative that product rule when I got 3 function :S

This part will be made much easier if you use Lagrange multipliers. Can you show us why this would imply:

\(\displaystyle f_x(x,y)=f_y(x,y)\) ?
 
  • #31
MarkFL said:
Hey Petrus,

I dressed up your $\LaTeX$ just a bit. For the most part it was fine. I will address your points as follows:
Yes, that is correct, although I would keep the exact value for the purpose of answering the question, and use the decimal approximation for the purpose of comparison. So, we have:

\(\displaystyle f(0,0)=0\)

\(\displaystyle f\left(\frac{5}{3},\frac{4}{3} \right)=\frac{800000}{19683e^9}\approx0.005015894084709833\)
Yes, the function is zero at every point on the two legs. So we know the absolute minimum is zero, do you see why?
This part will be made much easier if you use Lagrange multipliers. Can you show us why this would imply:

\(\displaystyle f_x(x,y)=f_y(x,y)\) ?
Can you help me with start with lagrange multipliers with this function?I can't see where I shall put the landa
 
  • #32
Petrus said:
Can you help me with start with lagrange multipliers with this function?I can't see where I shall put the landa

I will show you the way I was taught to set it up.

We have the objective function $f(x,y)$ subject to the constraint $g(x,y)=x+y-6=0$

So, the method of Lagrange multipliers tells us to set up the system:

\(\displaystyle f_x(x,y)=\lambda\cdot g_x(x,y)\)

\(\displaystyle f_y(x,y)=\lambda\cdot g_y(x,y)\)

Now, what are \(\displaystyle g_x(x,y)\) and \(\displaystyle g_y(x,y)\) ?
 
  • #33
MarkFL said:
I will show you the way I was taught to set it up.

We have the objective function $f(x,y)$ subject to the constraint $g(x,y)=x+y-6=0$

So, the method of Lagrange multipliers tells us to set up the system:

\(\displaystyle f_x(x,y)=\lambda\cdot g_x(x,y)\)

\(\displaystyle f_y(x,y)=\lambda\cdot g_y(x,y)\)

Now, what are \(\displaystyle g_x(x,y)\) and \(\displaystyle g_y(x,y)\) ?
We got our tangent line \(\displaystyle y=6-x<=>6-x-y=0\) and that is equalt to \(\displaystyle x+y-6=0\)
Answer to your question
\(\displaystyle g_x(x,y)=-5\)
\(\displaystyle g_y(x,y)=-5\)
 
Last edited:
  • #34
Petrus said:
We got our tangent line \(\displaystyle y=6-x<=>0=6-x-y=0\) and that is equalt to\(\displaystyle x+y-6\)
Answer to your question
\(\displaystyle g_x(x,y)=-5\)
\(\displaystyle g_y(x,y)=-5\)

No, you want to take the partial derivatives of $g(x,y)$ with respect to the two variables. What you should find is:

\(\displaystyle g_x(x,y)=g_y(x,y)=1\)

Do you see why?

Note: I must leave for about 4.5 hours now, so if anyone else wishes to jump in that is fine with me. Petrus has informed me that he has not actually studied Lagrange multipliers yet, but he looked it up and wants to use it here. I have also told him once this is completed, I would help him also finish the problem by using the constraint to express $f$ as a function in one variable and optimizing with the method taught in Calc I. Petrus, when I return, I will check back in here first thing! :D
 
  • #35
MarkFL said:
No, you want to take the partial derivatives of $g(x,y)$ with respect to the two variables. What you should find is:

\(\displaystyle g_x(x,y)=g_y(x,y)=1\)

Do you see why?

Note: I must leave for about 4.5 hours now, so if anyone else wishes to jump in that is fine with me. Petrus has informed me that he has not actually studied Lagrange multipliers yet, but he looked it up and wants to use it here. I have also told him once this is completed, I would help him also finish the problem by using the constraint to express $f$ as a function in one variable and optimizing with the method taught in Calc I. Petrus, when I return, I will check back in here first thing! :D
Hello Mark,
I see why, I just confused myself exemple when you derivate respect to x I did treated y as a constant and forgot to treat 6 as a constant aswell, my bad.
 
Back
Top