Must find a function with specified max and min

In summary, the conversation is about finding a function with a local maximum at (1,1) and a local minimum at (-1,-1). The criteria for this function include setting the partial derivatives to 0 at the specified points and ensuring that the determinant of the Hessian is greater than 0. The suggested approach is to use a cubic function and solve for the coefficients using the given criteria. The function should also be smooth and continuous.
  • #1
Boyle22
7
0
This is a calc 3 problem dealing with partial derivatives in 3space:

Find a function (continuous, smooth) which has a local max at (1,1) and a local minimum at (-1,-1) and prove.

I know that for a function to have a max at a specified point (a,b):

Fx(a,b)=0
Fy(a,b)=0
D>0 where D=Fxx(a,b)Fyy(a,b)-[Fxy(a,b)]^2
D can not equal 0
Fxx(a,b)<0

For a min at specified point:

Fx(a,b)=0
Fy(a,b)=0
D>0 where D=Fxx(a,b)Fyy(a,b)-[Fxy(a,b)]^2
D can not equal 0
Fxx(a,b)>0So I've been spending the past few hours trying to figure out this problem and I'm not exactly sure how to go about doing it. I've just been making up functions by trial and error and haven't been getting anywhere really.

The one function that comes closest that I came up with was:

(x^2)(y^3)-(x^4)(y^6)+1/2(x^4)(y^6)

since x and y partials are both equal to 0 at point (1,1) and Fxx partial is negative... but when i plug in for D I get 0.

So what is the proper way of approaching this problem?
 
Last edited:
Physics news on Phys.org
  • #2
My guess at a simple function would be

y=a*[(x-b)^3-(x-b)^2]+c

with a, b c to be determined by differentiation.
 
  • #3
christianjb said:
My guess at a simple function would be

y=a*[(x-b)^3-(x-b)^2]+c

with a, b c to be determined by differentiation.

I am a bit confused with how you came up with that equation. I need a function of two variables (x,y)... I think?

Something similar to this : f(x,y)=(x^2)(y^3)-(x^4)(y^6)+1/2(x^4)(y^6)

Thanks for your help.
 
Last edited:
  • #4
Boyle22 said:
I am a bit confused with how you came up with that equation. I need a function of two variables (x,y)... I think?

A function of two variables defines a surface z=f(x,y). For every point in the x-y plane the function value gives its 'height'.
 
  • #5
Well, it is a two-variable function you're after.

So, because you know that the second derivatives of quadratic functions equal some constant, they are clearly unsuitable, because the Hessian is needed to change its value at times.

Try therefore for a general cubic:
[tex]f(x,y)=ax^{3}+bx^{2}y+cxy^{2}+dy^{3}+ex^{2}+fxy+gy^{2}[/tex]
Since you are essentially dealing with six restrictions, you should be able to determine paremeters a,b,c,d, e,f,g wirhout having to take into account linear terms as well.
 
Last edited:
  • #6
Solve the four linear equations first, getting two free variables.

Then fiddle with those variables so that the Hessians at both points have the correct signs.
 
  • #7
OK- it sounds like I'm confused. A max at (1,1) could mean a max at y(1)=1, or it could mean a max at f(1,1).
 
  • #8
The four equations are:
[tex]3a+2b+c+2e+f=0[/tex] (fx at (1,1))
[tex]b+2c+3d+f+2g=0[/tex] (fy at (1,1))
[tex]3a+2b+c-2e-f=0[/tex] (fx at (-1,-1))
[tex]b+2c+3d-f-2g=0[/tex] (fy at (-1,-1))

Probably, you can set e=f=g=0; and solve the resultantant system:
3a+2b+c=0
b+2c+3d=0

whereby c=-3a-2b, yielding d=2a+b
 
Last edited:
  • #9
christianjb said:
OK- it sounds like I'm confused. A max at (1,1) could mean a max at y(1)=1, or it could mean a max at f(1,1).

Sorry for not being clear. I need a max at f(1,1) and a min at f(-1,-1).
 
  • #10
arildno said:
The four equations are:
[tex]3a+2b+c+2e+f=0[/tex] (fx at (1,1))
[tex]b+2c+3d+f+2g=0[/tex] (fy at (1,1))
[tex]3a+2b+c-2e-f=0[/tex] (fx at (-1,-1))
[tex]b+2c+3d-f-2g=0[/tex] (fy at (-1,-1))

Probably, you can set e=f=g=0; and solve the resultantant system:
3a+2b+c=0
b+2c+3d=0

whereby c=-3a-2b, yielding d=2a+b

Ok so the function has to be a cubic? Forgive me for being slow, I'm having a hard time understanding what's going on lol.
 
  • #11
Boyle22 said:
Ok so the function has to be a cubic? Forgive me for being slow, I'm having a hard time understanding what's going on lol.
Of course it doesn't have to be cubic!

There are zillions of functions satisfying your criteria.

However, out of CONVENIENCE, instead of looking after exotic functions that might satisfy your criteria, I choose to look for a boring polynomial because it is easy to deal with.

Understand the difference?
 
  • #12
arildno said:
Of course it doesn't have to be cubic!

There are zillions of functions satisfying your criteria.

However, out of CONVENIENCE, instead of looking after exotic functions that might satisfy your criteria, I choose to look for a boring polynomial because it is easy to deal with.

Understand the difference?

Yes I understand. After I solve for all the coefficients a,b,c,d,e,f,g(still working on it) isn't there other criteria that must be met? Since you just set all the partials to 0 at the points of interest that just tells you they are critical points. From there they could be max's, mins or saddle points. Right? I'm still working it out now, but thank you for your help.
 
  • #13
Boyle22 said:
Yes I understand. After I solve for all the coefficients a,b,c,d,e,f,g(still working on it) isn't there other criteria that must be met? Since you just set all the partials to 0 at the points of interest that just tells you they are critical points.
Correct!
From there they could be max's, mins or saddle points. Right?
Right!
But tackle the inequalities at the end.
I am quite sure you won't need e,f,g to be any other numbers than zero.
The reason for this is that even without them, you'll get two free parameters out of the partials equations. That should give you enough fiddling space to satisfy the Hessian demands.

I'm still working it out now, but thank you for your help.
Good luck to you!



The rest of your criteria is that your function should be smooth&continuous, which is automatically satisfied by all polynomials.
 
  • #14
arildno said:
Correct!

Right!
But tackle the inequalities at the end.
I am quite sure you won't need e,f,g to be any other numbers than zero.
The reason for this is that even without them, you'll get two free parameters out of the partials equations. That should give you enough fiddling space to satisfy the Hessian demands.


Good luck to you!



The rest of your criteria is that your function should be smooth&continuous, which is automatically satisfied by all polynomials.

I can't figure out the coefficients. :( I know this is just algebra and I should know it, but how do you solve for the 4 unknowns(a,b,c,d) with only the 2 equations(Fx,Fy)?
 
  • #15
I think I'm heading down the right track with the Cubic function thanks to arildno but I can't figure out the coefficients. Anyone else out there that could help?
 

FAQ: Must find a function with specified max and min

How do you find a function with a specified maximum and minimum?

To find a function with a specified maximum and minimum, you can use the Maximum and Minimum value theorem, which states that for any continuous function on a closed interval, the maximum and minimum values will occur at either the endpoints or at a critical point within the interval. By setting up and solving equations using this theorem, you can find the function that satisfies the given maximum and minimum values.

Can you provide an example of finding a function with a given maximum and minimum?

Yes, for example, if you are given a maximum value of 10 and a minimum value of 2, you can set up the equation f(x) = ax^2 + bx + c and use the Maximum and Minimum value theorem to find a, b, and c. Solving for these values will give you the function f(x) = 2x^2 + 4x + 2.

What are the limitations when finding a function with a specified maximum and minimum?

The main limitation is that the function must be continuous on a closed interval. This means that there can be no breaks or gaps in the graph of the function within the given interval. Additionally, the function must have a finite maximum and minimum value.

Are there any other methods for finding a function with a given maximum and minimum?

Yes, you can also use techniques such as optimization and Lagrange multipliers to find a function that satisfies the given maximum and minimum values. However, these methods can be more complex and require a deeper understanding of calculus.

Can a function have multiple maximum and minimum values?

Yes, a function can have multiple maximum and minimum values. In fact, most functions will have multiple critical points within a given interval. It is important to carefully examine the intervals and endpoints to determine which critical points correspond to the given maximum and minimum values.

Similar threads

Back
Top