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.
  • #36
So now that you know \(\displaystyle g_x(x,y)=g_y(x,y)=1\) you can set up the equations you need to find $\lambda$. MarkFL alright wrote out $f_x(x,y)$ and $f_y(x,y)$ so you don't have to do as much work to use this method.

\(\displaystyle x^4y^4e^{-3(x+y)}(5-3x)=1*\lambda\)

\(\displaystyle x^5y^3e^{-3(x+y)}(4-3y)=1*\lambda\)

\(\displaystyle x+y=6\)

Since the first two equations are equal to lambda, set them equal to each other and a bunch of stuff should cancel out. Once you simplify that you should have have an equation in terms of $x$ and $y$. Now use this and the third equation to find $x$ and $y$.
 
Physics news on Phys.org
  • #37
I was able to get in a few minutes here...(Whew)

Yes, what I did was what Jameson suggests...I equated the two first partials, simplified and solved for $y$, then plugged that into the constraint and obtained a quadratic in $x$. As I mentioned before, only one of the roots is $0<x<6$.

Can you find this valid root?
 
  • #38
MarkFL said:
I was able to get in a few minutes here...(Whew)

Yes, what I did was what Jameson suggests...I equated the two first partials, simplified and solved for $y$, then plugged that into the constraint and obtained a quadratic in $x$. As I mentioned before, only one of the roots is $0<x<6$.

Can you find this valid root?
Wat I get is \(\displaystyle (\frac{-10}{3},\frac{8}{3})\) but that is not in the range... (have I done something wrong?)
 
  • #39
Petrus said:
Wat I get is \(\displaystyle (\frac{-10}{3},\frac{8}{3}\) but that is not in the range... (have I done something wrong?

Yes. It's going to be impossible to know what you did without seeing your work.

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

\(\displaystyle y(5-3x)=x(4-3y)\)

\(\displaystyle 5y-3xy=4x-3xy \implies 5y-3xy+3xy=4x \implies 5y=4x\)

You can now solve for $y$ and then plug in that into $x+y=6$ to solve. Hopefully I didn't make any errors but check my work.
 
Last edited:
  • #40
Jameson said:
Yes. It's going to be impossible to know what you did without seeing your work.

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

\(\displaystyle y(5-3x)=x(4-3y)\)

\(\displaystyle 5y-3xy=4x-12xy \implies 5y-3xy+12xy=4x \implies y(5-3x+12x)=4x\)

You can now solve for $y$ and then plug in that into $x+y=6$ to solve. Hopefully I didn't make any errors but check my work.
Ok I am confused..? I get same as you but I get \(\displaystyle x(4-3y)=4x-3xy\)
 
  • #41
Petrus said:
Ok I am confused..? I get same as you but I get \(\displaystyle x(4-3y)=4x-3xy\)

That is an error on my part. Thanks for pointing it out! :) Will edit now.

EDIT: Fixed. You should get \(\displaystyle \left( +\frac{10}{3}, \frac{8}{3} \right)\). Somehow you ended up with a negative. This is definitely inside the triangle so that is a good sign. MarkFL said that he found two solutions though and we've only found one, so I hope he can point out if we took a wrong step.
 
Last edited:
  • #42
\(\displaystyle (\frac{6}{5},\frac{24}{5})\)
That means max:0.005 and min:0
I am correct?
 
  • #43
I'm not sure where you got those values. I posted the solution to the two equations in my previous post. Assuming that we correctly found the critical point, we need to plug that into $f(x,y)$ to find it's value so we can compare it to the other critical points. Like I said though, we should wait for MarkFL to comment on how we solved the Lagrange multiplier equations. Once we make sure that we've solved for the last critical point correctly then you are almost done!
 
  • #44
Jameson said:
I'm not sure where you got those values. I posted the solution to the two equations in my previous post. Assuming that we correctly found the critical point, we need to plug that into $f(x,y)$ to find it's value so we can compare it to the other critical points. Like I said though, we should wait for MarkFL to comment on how we solved the Lagrange multiplier equations. Once we make sure that we've solved for the last critical point correctly then you are almost done!
Hello Jameson,
You got correct... I was just confusing with another problem I just finish ( It was a square a lot more easy:D), I was just rushing myself:P We wait for Mark:)
 
  • #45
Jameson said:
...MarkFL said that he found two solutions though and we've only found one, so I hope he can point out if we took a wrong step.

I made a silly blunder in my algebra. (Blush) Jameson is absolutely correct that we should in fact find:

\(\displaystyle y=\frac{5}{4}x\)

which means:

\(\displaystyle (x,y)=\left(\frac{10}{3},\frac{8}{3} \right)\)

Now, you want to determine which is greater, \(\displaystyle f\left(\frac{5}{3},\frac{4}{3} \right)\) or \(\displaystyle f\left(\frac{10}{3},\frac{8}{3} \right)\).
 
  • #46
MarkFL said:
I made a silly blunder in my algebra. (Blush) Jameson is absolutely correct that we should in fact find:

\(\displaystyle y=\frac{5}{4}x\)

which means:

\(\displaystyle (x,y)=\left(\frac{10}{3},\frac{8}{3} \right)\)

Now, you want to determine which is greater, \(\displaystyle f\left(\frac{5}{3},\frac{4}{3} \right)\) or \(\displaystyle f\left(\frac{10}{3},\frac{8}{3} \right)\).
Hi Mark
I now correctly find \(\displaystyle f\left(\frac{10}{3},\frac{8}{3} \right)\) but how do you get \(\displaystyle f\left(\frac{5}{3},\frac{4}{3} \right)\) from this equation? Or I am missunderstanding and there should be only one root?
 
  • #47
The first point is inside the triangle (look at post #17, remember the critical point from equating the first partials to zero?) while the second point is on the boundary, specifically the hypotenuse. These are your two candidates for the absolute maximum, so you need to compare the function's value at those points and take the greater value as the absolute maximum.
 
  • #48
MarkFL said:
The first point is inside the triangle (look at post #17, remember the critical point from equating the first partials to zero?) while the second point is on the boundary, specifically the hypotenuse. These are your two candidates for the absolute maximum, so you need to compare the function's value at those points and take the greater value as the absolute maximum.
Yeah I know that but Then Jameson Said that you Said that you did find Two critical point from the last equation but \(\displaystyle f(\frac{10}{3},\frac{8}{3})<f(\frac{5}{3},\frac{4}{3})\)
 
  • #49
I was mistaken, that was the silly blunder to which I referred. There is only 1 critical point on the hypotenuse as correctly found by Jameson.

Yes, you have correctly found that the function's value at the point in the interior is greater than the function's value at the point on the hypotenuse.

So, you are done! :D
 
  • #50
MarkFL said:
I was mistaken, that was the silly blunder to which I referred. There is only 1 critical point on the hypotenuse as correctly found by Jameson.

Yes, you have correctly found that the function's value at the point in the interior is greater than the function's value at the point on the hypotenuse.

So, you are done! :D
That means min value:\(\displaystyle f(0,0),f(x,0),f(0,y)\) where x and y \(\displaystyle [0,6]\)
max value: \(\displaystyle f(\frac{5}{3},\frac{4}{3})\)
I am correct?
 
  • #51
I would state the actual extrema values (which I gave earlier), as well as where they occur.
 
  • #52
Hello,
Thanks Mark,Jameson,Zaid! For helping me with this problem! and taking your time:) problem solved but I will try later today this problem again without that lamda way (tomorow:))
 
  • #53
You had mentioned not knowing how to handle differentiating the product of 3 functions, and here is a formula you may use:

If $f(x)=f_1(x)f_2(x)f_3(x)$ then:

$f'(x)=f_1'(x)f_2(x)f_3(x)+f_1(x)f_2'(x)f_3(x)+f_1(x)f_2(x)f_3'(x)$

For practice, can you derive this formula from the product rule for 2 functions?
 
Back
Top