In the recent Qualifying Exam, there was a very nice (I mean, tough) problem in the Linear Optimization paper that nobody could solve. I was able to crack it two days later. Here it is:

**Problem**

A matrix is positive semidefinite if . Prove that if is positive semidefinte then the following system has a solution: .

**Solution**

where is a vector in whose entries are all 1.

Consider the following linear program

subject to

Its dual is

subject to

Observe that the dual is infeasible, because if there exists a solution such that and then this implies , contradicting the fact that A is positive semidefinite.

Since the dual is infeasible, the primal is either infeasible or unbounded. But is a solution to the primal, so it is unbounded. Thus there exists a solution such that Q.E.D.

Now that the math is done, it’s time for some story. All of us were taught that the Farkas lemma is extremely important, and thus all of us tried to use it to solve this problem, to no avail. I was particularly bugged by the condition , which we had never seen in all our exercises. The exam was on a Wednesday. Two days later, on a Friday evening, on a bus ride from school home, I was determined to solve it. Perhaps it was the motion and the rumbling sound of the bus, perhaps it was my subconscious mind having spent enough time on the problem, or perhaps it was just my shining moment, but I finally realized that means , given that . Now the next question is how do I use that in an LP? Well, I can’t use it in the constraints, so it must be in the objective function. Let’s try to . But wait, I have a constraint, so I must . And the rest is easy. That was probably one of my proudest moments in the PhD program so far.