I am given the following symmetric matrix:
$$ A=\begin{pmatrix} 1 & 2 & 0 & 1\\ 2 & 0 & 3 & 0\\ 0 & 3 & -1 & 1\\ 1 & 0 & 1 & 4\\ \end{pmatrix}\in M_4(\Bbb R) $$ Let $f\in Bil(V), f(u,v)=u^tAv.$
I want to find a base $B \subset \Bbb R^4$ such that the matrix representing $f $ in respect to $B$ is diagonal.
I took $ v_1=\begin{pmatrix} 1 \\ 0 \\ 0 \\ 0 \end{pmatrix} $ and found a vector space $V_2=\{v\in\Bbb R^4$| $f(v,v_1)=0\}$, and got $V_2 =sp\{ \begin{pmatrix} -2 \\ 1 \\ 0 \\ 0 \end{pmatrix},\begin{pmatrix} 0 \\ 0 \\ 1 \\ 0 \end{pmatrix},\begin{pmatrix} -1 \\ 0 \\ 0 \\ 1 \end{pmatrix}\} =sp\{v_2,v_3,v_4\}$
Now, the matrix in repect to $B=\{v_1,v_2,v_3,v_4\}$ looks like this:$$ \begin{pmatrix} 1 & 0 & 0 & 0\\ 0 & -4 & 3 & -2\\ 0 & 3 & -1 & 1\\ 0 & -2 & 1 & 3\\ \end{pmatrix} $$
I want to continue inductively, but I'm not sure how to procceed.



It doesn't seem that it can be done in a straightforward way. The entries of the main diagonal of the matrix of $f$ with respect to the new basis are the roots of the characteristic polynomial of $A$, which is $x^4-4 x^3-16 x^2+61 x-19$. It seems to be irreducible in $\mathbb{Q}[x]$.