Max/Min of f(x,y): Answer & How-To

  • Thread starter Panphobia
  • Start date
  • Tags
    Absolute
In summary: X, X must approach what value?X must approach 0. 1/y approaches 0 as y approaches infinity, so when you replace 1/y with Y, Y must approach what value?Y must also approach 0. So, in the constraint equation X^2 + Y^2 = 1, X and Y must approach 0. This is why we can make the substitution 1/x = X and 1/y = Y, because as x and y approach infinity, X and Y approach 0.
  • #1
Panphobia
435
13

Homework Statement


Max/min of f(x, y) = 1/x + 1/y
Constraint 1/x^2 + 1/y^2 = 1

The Attempt at a Solution


This was a question on my midterm exam and I am just wondering what the right answer would be.
With lagrange multipliers, I got two candidate points (sqrt (2), sqrt (2)) and (-(sqrt (2),-sqrt (2)) then I did what the prof taught in class and I checked the end behaviour, I concluded that as either x or y go to infinity or negative infinity, the other variable goes to 1, now I wrote that there is no max or min, but I know I'm not right, what is the right answer and how would I get it?
 
Physics news on Phys.org
  • #2
Panphobia said:

Homework Statement


Max/min of f(x, y) = 1/x + 1/y
Constraint 1/x^2 + 1/y^2 = 1

The Attempt at a Solution


This was a question on my midterm exam and I am just wondering what the right answer would be.
With lagrange multipliers, I got two candidate points (sqrt (2), sqrt (2)) and (-(sqrt (2),-sqrt (2)) then I did what the prof taught in class and I checked the end behaviour, I concluded that as either x or y go to infinity or negative infinity, the other variable goes to 1, now I wrote that there is no max or min, but I know I'm not right, what is the right answer and how would I get it?

Put ##X = 1/x## and ##Y = 1/y##. Your problem becomes ##\max / \min F(X,Y) = X+Y##, subject to the constraint ##X^2 + Y^2 = 1##. The solutions are essentially obvious without calculus (but can be obtained via calculus, if you want): either ##(X,Y) = (1/\sqrt{2},1\sqrt{2})## or ##(X,Y) = (-1/\sqrt{2},-1/\sqrt{2})##. (Just look at contour curves of ##Z = X+Y## and see how the relate to the circle ##X^2+Y^2 = 1##.)

These are true maxima and minima, because they are nowhere near the disallowed points having ##X = 0## or ##Y = 0## (which would be at ##\infty## in the original variables ##x,y##).
 
Last edited:
  • Like
Likes mfb
  • #3
Hmm, I still don't think I understand fully, I'll look at the problem.
 
  • #4
Panphobia said:
Hmm, I still don't think I understand fully, I'll look at the problem.
upload_2014-11-19_14-13-29.png
The red line is the line of constant X+Y that is as far to the right as possible, while still touching the constraint curve. The blue line is the one as far as possible to the left.
 
  • #5
On an exam I don't think with 50 minutes to do 6 long answer problems and 10 short answers we have time to plot the contour plot. Without looking at the contour plot, and just looking at the end behaviours how can you tell which ones are max/mins?
 
  • #6
Panphobia said:
On an exam I don't think with 50 minutes to do 6 long answer problems and 10 short answers we have time to plot the contour plot. Without looking at the contour plot, and just looking at the end behaviours how can you tell which ones are max/mins?

Try computing the numerical value of ##f(x,y)##, to see which one is the largest. Anyway, you need not do lots of contour lines; just draw one or two, so you can understand what is happening. I will let you figure out the rest.
 
  • #7
Panphobia said:
On an exam I don't think with 50 minutes to do 6 long answer problems and 10 short answers we have time to plot the contour plot.
I don't think this is the right way to approach things. Any time you can draw a quick sketch of things, you're going to be ahead of the game. In my experience as a college math teacher, students often think they will save time by not drawing a sketch, at the cost of getting a visual understanding of the problem, and consequently getting it wrong.

For this problem, making the realization that you can replace 1/x by X and 1/y by Y -- then all you need to do is plot a circle and a bunch of straight lines all of which have slope -1.
Panphobia said:
Without looking at the contour plot, and just looking at the end behaviours how can you tell which ones are max/mins?
 
  • #8
So this replacing 1/x with X and 1/y with Y, I should have come up by myself? Just a quick question, can you replace 1/x with X and 1/y with Y because as x or y approach infinity 1/x approaches 0 same with 1/y, so in X^2 + Y^2, X approaches 0, and Y approaches 1, and vice versa? The thing is, I didn't even know you could do that, is this a realization I am supposed to come to by myself? Or should I have been taught that?
 
  • #9
Panphobia said:
So this replacing 1/x with X and 1/y with Y, I should have come up by myself? Just a quick question, can you replace 1/x with X and 1/y with Y because as x or y approach infinity 1/x approaches 0 same with 1/y, so in X^2 + Y^2, X approaches 0, and Y approaches 1, and vice versa? The thing is, I didn't even know you could do that, is this a realization I am supposed to come to by myself? Or should I have been taught that?
I think these fall under the heading of substitutions, which you probably have already been taught in your calculus course. These would be natural substitutions, given that the function and the constraint both involve 1/x and 1/y.
 
  • #10
I will ask my professor today if we have learned substitutions, I don't remember learning them.
 
  • #11
I just went to my professors office hours and he didn't even know you could do that. But he did give an explanation as to how the question is solved.
 
  • #12
Panphobia said:
So this replacing 1/x with X and 1/y with Y, I should have come up by myself?
I would think so.
Panphobia said:
can you replace 1/x with X and 1/y with Y because as x or y approach infinity 1/x approaches 0 same with 1/y, so in X^2 + Y^2, X approaches 0, and Y approaches 1, and vice versa?
You are right that in any such substitution you need to think about the ranges involved. Since x and y are by definition not infinite, X and Y cannot be zero, so you can discard such solutions. Correspondingly, the substitution does not allow you to consider x = 0 or y = 0, so you need to analyse those separately.
 
  • #13
haruspex said:
Correspondingly, the substitution does not allow you to consider x = 0 or y = 0
Well, neither does the original function or the constraint, so this is easy.
 

Related to Max/Min of f(x,y): Answer & How-To

1. What is the concept of "Max/Min of f(x,y)" in mathematics?

The concept of "Max/Min of f(x,y)" refers to the maximum and minimum values of a function with two variables, x and y. It is the highest and lowest points on the graph of the function where the output value (y) is either the largest or smallest among all possible input values (x).

2. How do you find the maximum and minimum values of a function with two variables?

To find the maximum and minimum values of a function with two variables, you can use partial derivatives. Take the partial derivative of the function with respect to both x and y, set them equal to 0, and solve for the values of x and y. These values will give you the coordinates of the maximum and minimum points.

3. Can a function have more than one maximum or minimum point?

Yes, a function can have more than one maximum or minimum point. This can happen if the function has multiple local maximum or minimum points within a certain interval. However, there can only be one global maximum and one global minimum point for a function.

4. What is the difference between a local and global maximum or minimum point?

A local maximum or minimum point is the highest or lowest point within a specific interval of a function. This means that there can be multiple local maximum and minimum points for a function. On the other hand, a global maximum or minimum point is the highest or lowest point of the entire function, meaning there can only be one global maximum and minimum point for a function.

5. How can finding the maximum and minimum values of a function be useful?

Finding the maximum and minimum values of a function can be useful in various applications, such as optimization problems in economics, physics, and engineering. It can also help in determining the critical points of a function, which can be used to analyze its behavior and make predictions about its future values.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
567
  • Calculus and Beyond Homework Help
Replies
30
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
602
  • Calculus and Beyond Homework Help
2
Replies
36
Views
4K
  • Calculus and Beyond Homework Help
Replies
10
Views
608
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
910
  • Calculus and Beyond Homework Help
Replies
5
Views
961
  • Calculus and Beyond Homework Help
Replies
6
Views
629
  • Calculus and Beyond Homework Help
Replies
8
Views
562
Back
Top