I was tasked to prove that if $M$ is a real symmetric matrix such that $$\boldsymbol{x}^TM\boldsymbol{x} = 0\ \forall\ \boldsymbol{x},$$ then $M=\boldsymbol{0}$.
I did manage to prove it in a rather round about way. I started considering $$\boldsymbol{x}^TA\boldsymbol{x} = a,$$ where $A$ is a real skew-symmetric matrix and $a \neq 0$ is a real number. Transposing both sides, we get $$\boldsymbol{x}^TA^T\boldsymbol{x} = a\\ \boldsymbol{x}^TA\boldsymbol{x} = -a,$$ from where we can conclude, by contradiction, that $a$ must be zero. Hence, it's proven that $$\boldsymbol{x}^TA\boldsymbol{x} = 0\ \forall\ \boldsymbol{x}.$$
Next, I considered the matrix $\Sigma$ which isn't symmetric or skew-symmetric. It can be noted that $\Sigma + \Sigma^T$ is symmetric since $(\Sigma + \Sigma^T)^T = \Sigma^T + \Sigma = \Sigma + \Sigma^T$ and that $\Sigma - \Sigma^T$ is skew-symmetric since $(\Sigma - \Sigma^T)^T = \Sigma^T - \Sigma = -(\Sigma - \Sigma^T)$. Furthermore, it can be verified that $\Sigma$ can be decomposed as $$\Sigma = {\Sigma + \Sigma^T\over 2} + {\Sigma - \Sigma^T\over 2},$$ that is, we can express $\Sigma$ as the sum of a symmetric and a skew-symmetric matrix.
Finally, I considered the equation $$\boldsymbol{x}^T\Sigma\boldsymbol{x} = 0,$$ which can be factored as $$\boldsymbol{x}^T\underbrace{\Sigma + \Sigma^T\over 2}_{\text{symmetric}}\boldsymbol{x} + \boldsymbol{x}^T\underbrace{\Sigma - \Sigma^T\over 2}_{\text{skew-symmetric}}\boldsymbol{x} = 0.$$ It was already shown that $\boldsymbol{x}^TA\boldsymbol{x}=0$ if $A$ is skew-symmetric, therefore, we have that $$\boldsymbol{x}^T{\Sigma + \Sigma^T\over 2}\boldsymbol{x}=0$$ which implies that $${\Sigma + \Sigma^T\over 2} = 0$$ meaning that for $\boldsymbol{x}^T\Sigma\boldsymbol{x}=0$ to be true for all $\boldsymbol{x}$, the symmetric factor of $\Sigma$, and the original matrix $M$, by extension, must be $\boldsymbol{0}$.
While my work does prove the first statement, I feel like it should be possible to prove it in many steps fewer, but I'm stumped and any pointers would be much appreciated.
Given that $M$ is a real symmetric matrix we can decompose it as $$ M = Q \Lambda Q^T$$ where $Q$ is an orthogonal matrix whose columns are the real, orthonormal eigenvectors of $M$, and $\Lambda$ is a diagonal matrix whose entries are the eigenvalues of $M$. Let us pick a eigenvalue/eigenvector pair $\lambda$/$v$: $$Mv = \lambda v$$ Multiplying both sides with $v^T$ gives: $$0 = v^T M v = \lambda v^T v = \lambda \|v\|^2.$$ Given that $\|v\|\neq0$ by definition, we must conclude that $\lambda = 0$. We picked an arbitrary eigenvalue/eigenvector pair and so we have shown that every eigenvalue is $0$. Thus the eigenvalue matrix $\Lambda$ is the zero matrix, and in turn we have that $M = 0$.