Let the following be a ternary quadratic form:
$$A = \begin{pmatrix}0 & a & b \\ a & 0 & c \\ b & c & 0 \end{pmatrix}$$
with $a,b,c\in\mathbb{Q}$. If at least one term in the diagonal was nonzero, one could transform it into a canonical form by "completing squares".
How would one proceed in this case?
In essence, I need to find two matrices $R$ and $D$ where $D$ is diagonal so that $R^TDR = A$. How would one find such matrices?
Also, could one ensure that the entries on $R$ and $D$ are rational?