How can I bring $$5x_1^2 - 26x_1x_2 + 5x_2^2 + 10x_1 - 26x_2 = 31$$ to the form $$\langle x',Ax' \rangle = 1$$ where $x' = \alpha x + \beta$ where $\alpha \in \mathbb{R}^+$ and $\beta \in \mathbb{R}^n$ in order to diagonalize $A$.
I tried to rewrite it to a vector and a matrix. But when I multiply it out I don't get the original equation.
Does anybody can help me?
Thank you a lot!