I have seen this question, and I would like to prove the converse, namely:
Prove that $Q$ is PSD given $f(x)=x^T Q x$ is convex.
Here is my attempt:
As seen in the linked quesiton:
$$f(\alpha x+(1-\alpha)y)\leq \alpha f(x)+(1-\alpha)f(y)\\ \Leftrightarrow -\alpha(1-\alpha)(x-y)^TQ(x-y)\leq 0$$
For the last inequality to be true, we have to ensure that $(x-y)^TQ(x-y)\geq0$ for all $z=x-y$. This is true only when $Q$ is positive semidefinite. Hence if $f$ is convex $Q$ is positive semidefinite.
Is this correct?
I think there is a much simpler argument. If the statement is true, then it is clear that $x = \underline{0}$ gives a global minimum. This gives us a possible approach. Note that $\forall x$,
$$0 = f(\underline{0}) \le \frac{1}{2}\bigg(f(x)+f(-x)\bigg) = f(x).$$
$$\implies x^TQx \ge 0.$$