What Is the Maximum Value of f(x, y) = x + y Given the Constraint xy = 16?

Click For Summary
The discussion centers on finding the maximum value of the function f(x, y) = x + y under the constraint xy = 16, with x and y both positive. Initial attempts using substitution and Lagrange multipliers yielded a critical point at (4, 4), which is identified as a local minimum. Participants express confusion over why the Lagrange method does not yield a maximum, with suggestions that the function tends toward infinity as x and y vary. The conversation highlights the necessity of understanding the nature of stationary points and the limitations of finding maxima or minima in constrained optimization problems. Ultimately, the consensus is that the problem does not have a maximum value within the given constraints.
noelo2014
Messages
45
Reaction score
0

Homework Statement



Find the maximum value of the function f(x, y) = x + y subject to the con-
straint xy = 16, x > 0, y > 0.

Homework Equations



f(x, y) = x + y
xy = 16

The Attempt at a Solution



I attempted this first using substitution, then using LaGrange multipliers. Both times I got an answer of 8. I entered it into Wolfram Alpha, got an answer of 8. But I'm convinced the answer should be 17 since f(16,1)=16+1=17 which also fits the constraint 16.1=16

?
 
Physics news on Phys.org
noelo2014 said:

Homework Statement



Find the maximum value of the function f(x, y) = x + y subject to the con-
straint xy = 16, x > 0, y > 0.

Homework Equations



f(x, y) = x + y
xy = 16

The Attempt at a Solution



I attempted this first using substitution, then using LaGrange multipliers. Both times I got an answer of 8. I entered it into Wolfram Alpha, got an answer of 8. But I'm convinced the answer should be 17 since f(16,1)=16+1=17 which also fits the constraint 16.1=16

?

What you got is that x=y=4 is the only critical point. Getting a critical point doesn't automatically tell you it's a maximum. And I don't think 17 is what you are after either. 16=160*(1/10) as well.
 
  • Like
Likes 1 person
Thanks for the reply. I see your point but still don't know how to do the problem, anyway I'm going to bed now, I'll look at it tomorrow with fresh eyes.
 
noelo2014 said:
Thanks for the reply. I see your point but still don't know how to do the problem, anyway I'm going to bed now, I'll look at it tomorrow with fresh eyes.

Sure, but my point was just that you might want to think about whether your problem even has a maximum.
 
Dick said:
Sure, but my point was just that you might want to think about whether your problem even has a maximum.

Well if 160*(1/10)=16 the value of the function is 160+(1/10), if 16000000*(1/1000000)=16 the value is 16000000+(1/10), so I can see that it tends toward infinity

Still I'm not sure why the method of Lagrange doesn't work, and why does it give the answer (4,4). I know the gradients are in the direction at this point but I'm not sure what kind of point this is: Intuitively it's not a saddle point, or local max or local min.

Finally what way should I answer this question in an exam situation?
 
noelo2014 said:
Well if 160*(1/10)=16 the value of the function is 160+(1/10), if 16000000*(1/1000000)=16 the value is 16000000+(1/10), so I can see that it tends toward infinity

Still I'm not sure why the method of Lagrange doesn't work, and why does it give the answer (4,4). I know the gradients are in the direction at this point but I'm not sure what kind of point this is: Intuitively it's not a saddle point, or local max or local min.

Finally what way should I answer this question in an exam situation?

Why do you think (4,4) isn't a local min? In an exam I'd find the critical points and then give an argument like that to show there is no maximum.
 
noelo2014 said:
Well if 160*(1/10)=16 the value of the function is 160+(1/10), if 16000000*(1/1000000)=16 the value is 16000000+(1/10), so I can see that it tends toward infinity

Still I'm not sure why the method of Lagrange doesn't work, and why does it give the answer (4,4). I know the gradients are in the direction at this point but I'm not sure what kind of point this is: Intuitively it's not a saddle point, or local max or local min.

Finally what way should I answer this question in an exam situation?

Basically, you are just facing a two-dimensional version of a familiar one-dimensional phenomenon. Take, for example, the simple function f(x) = x^2 in 1-d. If you set f'(x) = 0 you get x = 0 as the (only) stationary point. However, x = 0 is a minimum---the global minimum in this case---and there is NO maximum at all.

The "theorems" about solving for max and or min by finding stationary points will (if stated properly) have hypotheses about the max and/or min actually existing in the region of interest. Just having a stationary point does not guarantee having an optimum, certainly not in a problem where there is no optimum. Example: f(x) = x^3 has no max and no min, but x = 0 is a stationary point.

In your example, the point (x,y) = (4,4) is a (constrained) global min; there are second-order tests to ascertain this fact, but they tend to be a bit lengthy for use on a short class-quiz: they involve looking at the Hessian matrix of the Lagrangian in the tangent subspace of the constraint! However, in your case you can reduce the whole problem to a 1-d case by putting y = 16/x and then looking at max/min f(x) = (x + 16/x), x>0.
 
Ray Vickson said:
Basically, you are just facing a two-dimensional version of a familiar one-dimensional phenomenon. Take, for example, the simple function f(x) = x^2 in 1-d. If you set f'(x) = 0 you get x = 0 as the (only) stationary point. However, x = 0 is a minimum---the global minimum in this case---and there is NO maximum at all.

The "theorems" about solving for max and or min by finding stationary points will (if stated properly) have hypotheses about the max and/or min actually existing in the region of interest. Just having a stationary point does not guarantee having an optimum, certainly not in a problem where there is no optimum. Example: f(x) = x^3 has no max and no min, but x = 0 is a stationary point.

In your example, the point (x,y) = (4,4) is a (constrained) global min; there are second-order tests to ascertain this fact, but they tend to be a bit lengthy for use on a short class-quiz: they involve looking at the Hessian matrix of the Lagrangian in the tangent subspace of the constraint! However, in your case you can reduce the whole problem to a 1-d case by putting y = 16/x and then looking at max/min f(x) = (x + 16/x), x>0.

Yeah, I just did it again... came out with x=y=λ=4. Doing the second-partials test would give an answer of 0 for D, meaning it's inconclusive. This is as far as the scope of my calculus course goes for these types of problems. I guess this is one they threw in just to see who the smart people were.
 
noelo2014 said:
Yeah, I just did it again... came out with x=y=λ=4. Doing the second-partials test would give an answer of 0 for D, meaning it's inconclusive. This is as far as the scope of my calculus course goes for these types of problems. I guess this is one they threw in just to see who the smart people were.

Your second-order test is wrong: in a constrained problem you need to look at the Hessian matrix of the Lagrangian, not of the function you are maximizing or minimizing. In this case your Lagrangian is
L = x+y + \lambda(xy-16).
The Hessian matrix of L is the matrix of second partial derivatives:
H = \pmatrix{\frac{\partial^2 L}{\partial x^2} &amp; \frac{\partial^2 L}{\partial x \partial y} \\<br /> \frac{\partial^2 L}{\partial y \partial x}&amp; \frac{\partial^2 L}{\partial y^2}}<br /> = \pmatrix{0 &amp; \lambda\\ \lambda &amp; 0 }
We must project ##H## down into the tangent subspace of the constraint at the soluton point, and examine whether that lower-dimensional matrix is positive-definite, negative-definite, or indefinite; it turns out to be positive-definite, so the point (x,y) = (4,4) is a strict local minimum. As I already stated in my previous post, this is all a bit much for a quick class-quiz. However, the important lesson is that you were doing the wrong type of optimality test.

You still have not dealt with the other issue several people have put to you: what about the maximum? Why does the Lagrange multiplier method fail to find it (if any)?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 4 ·
Replies
4
Views
13K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K