I asked this question some time ago in MSE but I didn't recieved any feedback.
https://math.stackexchange.com/questions/4672664/diagonalization-of-symmetric-matrices-of-functions
This problem arised to me when I was trying to find an analog to orthogonal reference frames for singular metric tensors.
Let $U\subseteq\mathbb{R}^m$ be an open subset such that $0\in U$ and $n\leq m$. Let $G(p)=\begin{pmatrix} g_{11}(p) & g_{12}(p) & \cdots & g_{1n}(p)\\ g_{12}(p) & g_{22}(p) & \cdots & g_{2n}(p)\\ \vdots & \vdots & \ddots & \vdots \\ g_{1n}(p) & g_{2n}(p) & \cdots & g_{nn}(p)\\ \end{pmatrix} $ be a symmetric matrix of infinitely differentiable functions $g_{ij}:U\rightarrow\mathbb{R}$ such that $G(0)=0\in\mathcal{M}_{n\times n}(\mathbb{R})$, that is $g_{ij}(0)=0$ for all $i,j$.
To diagonalize the matrix near $0\in\mathbb{R}^m$, the Gram-Schmidt process doesn't work because it will divide by $0\in\mathbb{R}$ in some steps. You can not even do an adaptation of this process beacause there is no initial orthonormal basis to start with or more acurately any basis will be orthogonal but not normal since the "norms" will be zero. I write norms between quotation marks because $G(p)$ isn't positive semidefinite so it doesn't define any norm and I don't want to put any condition about the "definitness" of the matrix.
Said that, the question is: is it possible to find an open subset $V\subseteq U$ such that $0\in V$ where such a matrix is diagonalizable? Maybe with a different process than Gram-Schmidt or even leaving the ring of infinitely differentiable functions. I just need to prove the existence theoretically, in other words, I don't need it to be computable.
Thank you in advance!