f a ( x , y ) = a x 2 + 4 a y 2 + 2 0 x y + 3 x + 6 y + 7
Find the smallest value of the parameter a such that f a ( x , y ) attains a global minimum.
Enter 666 if you come to the conclusion that no such smallest value of a exists.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
You are doing good work (+1), but I'm still trying to fully understand your solution.
Let me ask you, if we were to replace the term 3 x in f a ( x , y ) by 4 x , what would your answer be?
Log in to reply
I see that this tiny change brings some new facts. Now I need to learn these from you that :
1) Taking first partial derivative we get the equations as : { 2 a x + 2 0 y + 4 = 0 8 a y + 2 0 x + 6 = 0 . Proceeding like same we obtain a ≥ 5 . But, the equations are inconsistent. There do not exists x , y that satisfy these.
2) In the original problem the equations satisfied the property of having infinite number of solutions ( x , y ) . So as f is convex & increasing through the domain , the entire equation depends on a and we get the smallest such a as 5.
What I am not able to understand is If the equations are inconsistent then what should we say ? There aren't any stationary points and the function attains it's global minimum at a = 5
Log in to reply
I'm getting ready for work (it's 6:30 am at the US East coast)... I will answer fully in the evening unless somebody else does.
Let me just give you a simple analogy: The function g a ( x ) = a x 2 + 7 was a global minimum for a ≥ 0 , but the function h a ( x ) = a x 2 + 3 x + 7 has a minimum for a > 0 only.
The Hessian being positive semi-definite does not guarantee the existence of a minimum; you have to consider the linear terms also... you need a critical point.
Log in to reply
@Otto Bretscher – Oh I see sir. I am trying to modify my solution a bit if possible considering this fact that the linear terms are also necessary. I will be waiting for your solution. And yeah it took me a while to understand that line since it's already evening here ;)
Log in to reply
@Aditya Narayan Sharma – You can easily make your solution complete by adding a little something to the paragraph "So a = 5 gives local as well as global minimum for the function as the function is convex & it's Hessian is positive semi-definite." You need to add that there are critical points in this case (because the coefficient vector [ 3 , 6 ] T of the linear terms is in the image (or range) of the Hessian).
Log in to reply
@Otto Bretscher – Ok then I am adding that step in & I think I've understood why it was incomplete. I need to study on it harder . But how do we know they're in the range ?
Log in to reply
@Aditya Narayan Sharma – Well, you solve the linear system, as you said, or you observe that [ 3 , 6 ] T is parallel to the columns of the Hessian.
One more tiny point, just to make your solution flawless: You need to include 8 a in your list of the principal minors when you test for positive semi-definiteness.
Log in to reply
@Otto Bretscher – I have done that correction sir . But when do we actually need to work on the linear terms and how would we ? As you said that the linear terms must be considered so what will be the effect of considering them ? I mean how will it affect the minima or maxima .
Log in to reply
@Aditya Narayan Sharma – The sentence "So a = 5 gives local as well as global minimum for the function as the function is convex & it's Hessian is positive semi-definite" is misleading. As we discussed, the Hessian being positive semi-definite does not by itself guarantee the existence of a minimum.
More later. Obviously, the linear terms may affect the value of the minimum and the point(s) where it is attained... consider the simple example p ( x ) = a x 2 + b x + c again
Log in to reply
@Otto Bretscher – So should I remove that line (So a = 5 gives local ....) or it is fine as it is ? I've added that line referring to coefficient vector of linear terms already.
Yes in the example it is obvious that the linear term affects the minimum, but in our problem it doesn't. I learnt a whole lot of facts today.
Log in to reply
@Aditya Narayan Sharma – I would reverse the order of the two sentences in that paragraph. First state that there are critical points in the case a = 5 . Now, since the graph is convex, the function must attain its global minimum at those critical points.
Log in to reply
@Otto Bretscher – Oh I got it. I reversed them and it looks good now. I think it's okay now. Thanks sir again !
Log in to reply
@Aditya Narayan Sharma – Yes great! I'm about to teach a class on determinants... I will mention the Hessian as an example that the students have seen in their calculus class.
I wish all my (college) students would understand this stuff as well as you do ;)
Log in to reply
@Otto Bretscher – That will be great :D . I think my use of Hessian Inspired you to give the example ;)
Log in to reply
@Aditya Narayan Sharma – Exactly! See, I'm an algebraist by training (and by disposition), I find algebra "cleaner" than calculus, so, I'm thinking of the Hessian as twice the matrix of the quadratic form... the reasoning is equivalent.
Note that the Topic for this problem is Algebra ;)
Log in to reply
@Otto Bretscher – Your C a l g e b r a view is great ! The hessian as twice as the matrix of the quadratic form. Wow ! I would like to continue discussion on this . when you become free actually at the evening when it would be (12:00 PM) here and my mom would be shouting at me to go to bed :P .
Considering the topic as algebra the partial derivatives which is the most necessary step for the problem must be avoided. Can we use partial derivatives here ? But the topic is algebra. What should be the approach then ?
Log in to reply
@Aditya Narayan Sharma – On Mondays we have a colloquium on 4 pm, so, I will not get home before 6 pm my time. But I may have some free time during the day, unless the students keep pestering me with questions about determinants ;)
Log in to reply
@Otto Bretscher – So I will be awake by 7 PM(In your zone) as that would be nearly 5 AM here. The students must keep you pestering with questions, as I have done here one after another ;) and continuing to do so .
Log in to reply
@Aditya Narayan Sharma – I like and enjoy your line of questioning.... your curiosity and insight
Log in to reply
@Otto Bretscher – Thanks Comrade ! I hope you won't mind me calling you that . That word is an I n s p i r a t i o n from you ;)
Log in to reply
@Aditya Narayan Sharma – I'm always honoured to be called a Comrade! Thanks Comrade!
Log in to reply
@Otto Bretscher – Yeah definitely we had comrade !, So better I should wait for the next problem to have a conversation with you :)
Log in to reply
@Aditya Narayan Sharma – As Comrade @Khang Nguyen Thanh points out, a simple way to examine the case f 5 ( x , y ) is to complete the squares. To proceed systematically, it is sensible to multiply with 5 first (or with a in general) and then collect all the terms involving x :
5 f 5 ( x , y ) = 2 5 x 2 + 1 0 0 y 2 + 1 0 0 x y + 1 5 x + 3 0 y + 3 5 = ( 5 x + 1 0 y + 2 3 ) 2 + 3 5 − 4 9 ≥ 4 1 3 1
There are quite a few ways to tackle this problem!
@Aditya Narayan Sharma – I think we are pretty much done with this problem... are we? We had a good dialogue indeed!
We have: f a ( x , y ) = 5 x 2 + 2 0 x y + 2 0 y 2 + 3 ( x + 2 y ) + 7 + ( a − 5 ) ( x 2 + 4 y 2 ) = 5 ( x + 2 y ) 2 + 3 ( x + 2 y ) + 7 + ( a − 5 ) ( x 2 + 4 y 2 ) = 5 ( x + 2 y + 1 0 3 ) 2 + 2 0 1 3 1 + ( a − 5 ) ( x 2 + 4 y 2 )
If a < 5 , we can choose y = k ; x = − 2 k − 1 0 3 and k → + ∞ .
This implies f a ( x , y ) = ( a − 5 ) ( ( 2 k + 1 0 3 ) 2 + 4 k 2 ) → + ∞ when k → + ∞
If a = 5 , we get f a ( x , y ) = 5 ( x + 2 y + 1 0 3 ) 2 + 2 0 1 3 1 ≥ 2 0 1 3 1
The equality holds when x + 2 y + 1 0 3 = 0 .
So a = 5 is the smallest value satisfied.
Your first step gives you ( 1 5 + a ) y 2 , not 4 a y 2 as required.
Log in to reply
I corrected it.
Log in to reply
Yes, this works! (+1) A skillful completion of squares.
We first prove that a > 0 : Suppose otherwise, that is suppose there exists a minimum value when a ≤ 0 , then setting y = 0 shows that f a ( x , 0 ) = a x 2 + 3 x + 7 is either a straight line or a parabola that concave downwards. Either way, neither them has a minimum value. Thus, a > 0 must be true.
We can rewrite the matrix of the quadratic part of f a ( x , y ) as
A a = [ a 1 0 1 0 4 a ]
By Cayley-Hamilton theorem , the eigenvalues of A a satisfy the equation ∣ λ I 2 − A ∣ = 0 , or equivalently,
0 = ∣ ∣ ∣ ∣ λ − a − 1 0 − 1 0 λ − 4 a ∣ ∣ ∣ ∣ ⇔ 0 = ( λ − a ) ( λ − 4 a ) − 1 0 0 ⇔ 0 = λ 2 + λ ( − 5 a ) + ( 4 a 2 − 1 0 0 ) .
Applying the quadratic formula , we can solve for λ to get λ = 2 5 a ± 9 a 2 + 4 0 0 .
The necessary requirement for the function f a ( x , y ) to have a minimum value, is to have all its eigenvalues to be strictly non-negative.
Let λ 1 < λ 2 denote these two eigenvalues. Because we have shown that a > 0 , then λ 2 ≥ 0 . We are left to determine the range of a such that λ 1 ≥ 0 as well. So,
2 5 a − 9 a 2 + 4 0 0 ≥ 0 ⇔ ( 2 5 a ) 2 ≥ 9 a 2 + 4 0 0 ⇔ a ≥ 5 .
Thus, we know that there is a minimum value when a > 5 . What's left to prove is to determine whether a = 5 gives a minimum f a ( x , y ) :
f 5 ( x , y ) = 5 x 2 + 2 0 y 2 + 2 0 x y + 3 x + 6 y + 7 .
We then find the kernel of this quadratic form:
[ 5 1 0 1 0 2 0 0 0 ] ⟶ R 2 → R 2 − 2 R 1 [ 5 0 1 0 0 0 0 ] ⇔ ( x , y ) = ( − 2 t , t ) , t ∈ R .
Now f 5 ( − 2 t , t ) = 7 , showing that f 5 ( x , y ) has a minimum value. And we're done! We successfully proved that f a ( x , y ) has a minimum value when a ≥ 5 .
Yes, indeed, very nicely done! You got it, Comrade!
As you can see from the various solutions here, there are quite a few ways to show that f 5 ( x , y ) has a global minimum.
The most straightforward approach is to complete the squares, as Comrade @Khang Nguyen Thanh did.
We can also point out that the coefficient vector of the linear terms, [ 3 , 6 ] T , is in the image (or range or column space) of the matrix, which guarantees the existence of a critical point; that was Comrade @Aditya Sharma 's approach.
All in all, we have some interesting and high-quality solutions here.
Log in to reply
Log in to reply
As you wish , Comrade
Log in to reply
@Otto Bretscher – Is the expression f ( x , y , z , w ) = x 2 + 9 y 2 + 4 z 2 + w 2 − 6 x y + 4 x z − 2 x w − 1 2 y z + 6 y w − 4 z w + x − 3 y + 2 z + w
Log in to reply
@Aditya Narayan Sharma – Yes, isn't that what I typed? It's easy to get one of them wrong...
So far so good... keep up the good work, Comrade!
One detail: There is no need to invoke Hamilton-Cayley here: The eigenvalues are the solutions of det ( λ I 2 − A ) = 0 by definition .
Log in to reply
Okay doneeeeeee!
By definition? Really? Okay then....
You got a typo there: it's Cayley-Hamilton, not Hamiltion-Cayley. That's like attributing Leibniz for discovering calculus. Ahahahahaha!
The matrix for a = 5 is [ 5 1 0 1 0 2 0 ]
You need to fix a typo @Pi Han Goh ,
2 5 a − 9 a 2 + 4 0 0 > 0 would be 2 5 a − 9 a 2 + 4 0 0 ≥ 0 . Else all is well.
The 2nd order equation
a x 2 + 4 a y 2 + 2 0 x y + 3 x + 6 y + 7 = k
becomes a family of hyperbolas for ∣ a ∣ < 5 , because then
B 2 − 4 A C = 2 0 2 − 4 ⋅ 1 a ⋅ 4 a = 4 0 0 − 1 6 a 2 > 0
Hence, we first seek if there is a value for a ≥ 5 such that this reduces to a pair of lines. To find that, letting the equation equal k , we solve for y
y = 8 a 1 ( − 6 − 2 0 x ± ( ( 4 0 0 − 1 6 a 2 ) x 2 + ( 2 4 0 − 4 8 a ) x + 1 6 a k − 1 1 2 a + 3 6 )
We see that if a = 5 , then the radical becomes independent of x , and the problem is answered. For a < − 5 , the 2nd order equation becomes a family of ellipses with a global maximum and no global minimum.
I detect a computational error in the 4th line where you claim that 1 6 a 2 = 4 a 2 . Correcting this will somewhat alter your argument... we will take it from there.
Your work shows that the equation f 5 ( x , y ) = k has solutions if k ≥ 2 0 1 3 1 , which proves that there is a minimum in this case. But why does f a ( x , y ) fail to have a minimum when a < 5 ?
Log in to reply
Okay, fixed. For − 5 < a < 5 , we have a family of hyperbolas. More specifically, we have a hyperbolic paraboloid, which doesn't have a global minimum anywhere. For a = 5 , then we have a parabolic cylinder, which does have a global minimum, which is in the form of a line. I'll come back to this later and look for more problems and clean up my solution, and maybe expand on it.
For the function (which is a second degree equation in 2 variables) to have a global minimum and a to be smallest , I think it must represent a parabola. So, H^2= A.B where 2H is the coefficient of xy , B is the coefficent of y^2 and A is the coefficient of x^2 . Therefore, a comes out to be 5.
Please improve my solution, I know I've answered it vaguely.
Despite not knowing about Hessian matrices, here is my solution. Taking partials, 2ax+20y=-3, 8ay+20x=-6. Now substitute y in terms of x and a and one gets 2a^2x-15-50x+3a=0. Tracking the discrimant for a to real in terms of x yields eventually x=-3/20. When we track this discriminant, we are finding the smallest x such that there is a corresponding real a, as this will occur in an increasing multivariable function. Plug this back into the equation 2ax+20y=-3, with y substituted, yielding a^2-10a+25=0. And the solution is obvious.
You have shown the calculations for there to be a local minimum. Why must this be the global minimum also? For example, y = x ( x − 1 ) ( x + 1 ) has a local minimum but doesn't have a global minimum.
In this case, the result still holds true because of the classification of quadratic forms.
You are losing me in the second line when you say "Tracking the discriminant..." Please be more explicit. How did you find x = − 2 0 3 and what is the significance of that value?
Also, there are typos in both of your partials in the first line.
I would have loved to solve the problems you recently posted, including the one dedicated to me, if only the numbers involved weren't that huge. You are "number crazy" indeed! I don't see any way to do those in a reasonable amount of time without cheating and resorting to technology ;)
Log in to reply
Sorry. I am twelve. I have a lot to learn in life and I am in that stage of experimentation. Thank you for your consideration.
Log in to reply
You are doing great for your age! Keep up that enthusiasm and curiosity!
You have shown the calculations for there to be a local minimum. Why must this be the global minimum also? For example, y = x ( x − 1 ) ( x + 1 ) has a local minimum but doesn't have a global minimum.
In this case, the result still holds true because of the classification of quadratic forms.
I DONE IT IN A DIFFERENT WAY
CLEARLY THE EQUATION IS HOMOGENOUS OF 2 DEGREE FOR MIN (global min) ITS DETERMINANT MUST BE ZERO (pair of straight lines) solving determinant will give directly 5
You need to pay attention to the linear terms as well, as we have discussed in other solutions.
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Hessian Matrix
The function is : f a ( x , y ) = a x 2 + 4 a y 2 + 2 0 x y + 3 x + 6 y + 7
Finding the first partial derivatives gives us : { 2 a x + 2 0 y + 3 = 0 8 a y + 2 0 x + 6 = 0
Taking the Hessian we see,
Δ 2 f a ( x , y ) = ( 2 a 2 0 2 0 8 a )
For attaining a global minima it must be Positive Semi-Definite which implies in turn f should be convex throughout the domain.
The principal minors must be non-negative , 1 6 a 2 − 4 0 0 ≥ 0 & 2 a , 8 a ≥ 0 . We get on solving a ≥ 5
{ For a=5, f 5 ( x , y ) = ( x + 2 y ) ( 5 x + 1 0 y + 3 ) + 7 For a>5, f a ( x , y ) is continously increasing for all positive a
There are critical points in this case as the coefficient vector of the linear terms [ 3 , 6 ] T is in the range of the Hessian. So a = 5 gives local as well as global minimum for the function as the function f is convex & it's Hessian is positive semi-definite.