If $f,g$ are quadratic forms over $\mathbb{R}$ and $f$ is positive definite, can you reduce the both simultaneously to sum of squares?
This question appeared from a friend of mine and I did not understand the relation between being positive definite and can be diagonalizable simultaneously.
I appreciate any help!
Thanks


I'm assuming that we are talking about a finite-dimensional real vector space $V$.
You can use the positive definite form $f$ in order to install a scalar product $\langle\cdot,\cdot\rangle$ on $V$ such that $f(x)=\langle x,x\rangle$ for all $x$. Then the matrix of $f$ with respect to any orthonormal basis is simply the identity matrix. By the spectral theorem for real symmetric matrices you then can choose an orthonormal basis of $V$ which diagonalizes $g$. With respect to this basis both $f$ and $g$ are diagonalized.