- #1

- 2,985

- 15

- Thread starter Cyrus
- Start date

- #1

- 2,985

- 15

- #2

matt grime

Science Advisor

Homework Helper

- 9,395

- 3

work out an example, see what happens.

eg try maximizing x^2+y^2 subject to the conditions y=x^3+1, this is a case where you have one of your points of inflection...

eg try maximizing x^2+y^2 subject to the conditions y=x^3+1, this is a case where you have one of your points of inflection...

Last edited:

- #3

- 2,985

- 15

hmmm, I did your example. If I do it by direct substitution I find three points, x=0, y=1; x=-.8462932 y=.39387; x=-.347794 y=.957930606. This agrees with the graph on matlab. x=0 is a local min, x=-.8462932 is an absolute min, x=-.347794 is a local max. When I use lagranges method, I can only find two solutions. I cant get the solution for x=0, which is odd. I did get the local max value, so I should be able to get the local min value as well.

Edit: Never mind I got the solution of x=0, y=1 via lagrange as well now too.

Ok, I attached a graph to show you my question a little better. The blue graph is that of the function given the restriction. You think I said that the critical point had to do with the constraint equation, i.e. y=x^3+1. Thats not what im saying at all. What im saying is, look at the red line. I added that myself. Lets say given SOME constraint equation, it looks like the blue curve, plus the red curve. That point that WAS a maximum, is now going to be an inflection point of the equation under constraint. Since it IS a CRITICAL point, the derivative is going to equal zero there. So if you do lagranges method or direct substitution, its going to spit that value at you. And you will plug it into the function to find the value at that point. But without a visual aid, you might not know if that is a max or a min. See what I mean?

Edit: Never mind I got the solution of x=0, y=1 via lagrange as well now too.

Ok, I attached a graph to show you my question a little better. The blue graph is that of the function given the restriction. You think I said that the critical point had to do with the constraint equation, i.e. y=x^3+1. Thats not what im saying at all. What im saying is, look at the red line. I added that myself. Lets say given SOME constraint equation, it looks like the blue curve, plus the red curve. That point that WAS a maximum, is now going to be an inflection point of the equation under constraint. Since it IS a CRITICAL point, the derivative is going to equal zero there. So if you do lagranges method or direct substitution, its going to spit that value at you. And you will plug it into the function to find the value at that point. But without a visual aid, you might not know if that is a max or a min. See what I mean?

Last edited:

- #4

EnumaElish

Science Advisor

Homework Helper

- 2,304

- 124

- #5

- 2,985

- 15

I think so too, im trying to think of a proper equation and constraint equation that would prove my point, but im drawing a blank. I want the equation with the constraint to look like a cubic function. That would prove my point.

Ah, here is a simple one. Lets say the equation of the function were optimizing, after giving it SOME constraint, takes on the form, x^6+x^3.

This has two critical points, an absolute max, and an inflectoin point at 0,0. If I were to use lagranges method and get 0,0 as a possible anwser, then thats enough to show that lagrange might possibly spit out values that make no sense, if you dont double check them graphically.

Ah perfect Ive come up with what im talking about.

Take F(x,y) = x^6 + y

the constraint g(x,y)= y-x^3 = 1

You can do a direct substitution easily and find that it has two critical values, one at an abs min, one at an inflection point.

x=0 y=1 is the inflection point, and x=-.7937022 y=.75 is the abs min.

HA! HA ! HA! Looky what lagrange tells us. It says that x=0 y=1 and x=(-3/6)^(1/3)= -.79370526. So it proves exactly my point. The gradient IS perpendicular to the CRITICAL points of the function under constraint. In the proof of lagranges method, they say, "suppose f has an EXTREME value at a point P(x0,y0,z0) on the surface S and...." Its not that it has to be EXTREME, it just has to be CRITICAL. You can use the function I made up, use lagrange, and get a bogus anwser. Yeah, thats an inflection point, lagrange will spit out an anwser for you, and you can plug it in and get a value, but so what. Its not even a local min or max, none the less absolute. Without a graph, or pluging in values NEAR that point, I dont see how you can judge if its a valid anwser or not. Does any of what im saying make any sense to anyone?

To be more sensible, even if there is one of these critical points, we know that one of two things can happen. The function can continue unbounded in one direction, and be bound in the other, as in the this case when you graph it. Which means that there WILL be at least ONE value that WILL be, at least, a local max or min. The time caution should be used is if lagrange gives you only one critical value, because that value may be an inflection point only. In that case, there is no local or absolute max /min.

This seems to make good sense, because an inflection point would be another place where the functiong g(x,y) would be tangent to f(x,y) for two particular level curves. And it would make sense if this extends into functions of three variables for a saddle point.

Ah, here is a simple one. Lets say the equation of the function were optimizing, after giving it SOME constraint, takes on the form, x^6+x^3.

This has two critical points, an absolute max, and an inflectoin point at 0,0. If I were to use lagranges method and get 0,0 as a possible anwser, then thats enough to show that lagrange might possibly spit out values that make no sense, if you dont double check them graphically.

Ah perfect Ive come up with what im talking about.

Take F(x,y) = x^6 + y

the constraint g(x,y)= y-x^3 = 1

You can do a direct substitution easily and find that it has two critical values, one at an abs min, one at an inflection point.

x=0 y=1 is the inflection point, and x=-.7937022 y=.75 is the abs min.

HA! HA ! HA! Looky what lagrange tells us. It says that x=0 y=1 and x=(-3/6)^(1/3)= -.79370526. So it proves exactly my point. The gradient IS perpendicular to the CRITICAL points of the function under constraint. In the proof of lagranges method, they say, "suppose f has an EXTREME value at a point P(x0,y0,z0) on the surface S and...." Its not that it has to be EXTREME, it just has to be CRITICAL. You can use the function I made up, use lagrange, and get a bogus anwser. Yeah, thats an inflection point, lagrange will spit out an anwser for you, and you can plug it in and get a value, but so what. Its not even a local min or max, none the less absolute. Without a graph, or pluging in values NEAR that point, I dont see how you can judge if its a valid anwser or not. Does any of what im saying make any sense to anyone?

To be more sensible, even if there is one of these critical points, we know that one of two things can happen. The function can continue unbounded in one direction, and be bound in the other, as in the this case when you graph it. Which means that there WILL be at least ONE value that WILL be, at least, a local max or min. The time caution should be used is if lagrange gives you only one critical value, because that value may be an inflection point only. In that case, there is no local or absolute max /min.

This seems to make good sense, because an inflection point would be another place where the functiong g(x,y) would be tangent to f(x,y) for two particular level curves. And it would make sense if this extends into functions of three variables for a saddle point.

Last edited:

- #6

matt grime

Science Advisor

Homework Helper

- 9,395

- 3

- #7

- 2,985

- 15

- #8

matt grime

Science Advisor

Homework Helper

- 9,395

- 3

there is nothing that states that where grad(f) and grad(g) are parralel has to be any kind of local maximum for either fucntion. It amy, it may not, it is immaterial.

now, apart from inventing the term "critical curve" what are you getting at, cos i'm getting lost again.?

- #9

- 2,985

- 15

- #10

matt grime

Science Advisor

Homework Helper

- 9,395

- 3

cyrusabdollahi said:but its more than just extreme values where lagrange method hold true, that the gradients are parallel.

Yes, obviously, as Stewart states (if i recall correclty from teaching from it 4, no 5, years ago), and as we can easily visualize. as i said before being a "solution" found by lagrange multipliers is not a sufficient condition (nor even necessary) for an extremal value.

- #11

- 2,985

- 15

- #12

matt grime

Science Advisor

Homework Helper

- 9,395

- 3

Now, imagine, for argument's sake that f(x,y,z)=x^2+y^2+z^2. now the way to imagine it is to hink of a balloon being blown up, this represents the f, and the first time it touches the surface g=0 is our minimal point (it is the smallest value of f lyingon the surface). This shows why lagrange multipliers work when they work. there is nothing to stop us supposing that if we blow up the balloon more we get another point where they touch again (and it cannot be minimal).

- Replies
- 13

- Views
- 10K

- Last Post

- Replies
- 10

- Views
- 5K

- Last Post

- Replies
- 1

- Views
- 3K

- Last Post

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 1

- Views
- 3K

- Last Post

- Replies
- 6

- Views
- 2K

- Last Post

- Replies
- 2

- Views
- 610

- Last Post

- Replies
- 1

- Views
- 1K