Given line equation of 2-order:
$$8 x^{2} + 20 y^{2} + y - 31 = 0$$
This equation looks like:
$$a_{11} x^{2} + 2 a_{12} x y + 2 a_{13} x + a_{22} y^{2} + 2 a_{23} y + a_{33} = 0$$
where
$$a_{11} = 8$$
$$a_{12} = 0$$
$$a_{13} = 0$$
$$a_{22} = 20$$
$$a_{23} = \frac{1}{2}$$
$$a_{33} = -31$$
To calculate the determinant
$$\Delta = \left|\begin{matrix}a_{11} & a_{12}\\a_{12} & a_{22}\end{matrix}\right|$$
or, substitute
$$\Delta = \left|\begin{matrix}8 & 0\\0 & 20\end{matrix}\right|$$
$$\Delta = 160$$
Because
$$\Delta$$
is not equal to 0, then
find the center of the canonical coordinate system. To do it, solve the system of equations
$$a_{11} x_{0} + a_{12} y_{0} + a_{13} = 0$$
$$a_{12} x_{0} + a_{22} y_{0} + a_{23} = 0$$
substitute coefficients
$$8 x_{0} = 0$$
$$20 y_{0} + \frac{1}{2} = 0$$
then
$$x_{0} = 0$$
$$y_{0} = - \frac{1}{40}$$
Thus, we have the equation in the coordinate system O'x'y'
$$a'_{33} + a_{11} x'^{2} + 2 a_{12} x' y' + a_{22} y'^{2} = 0$$
where
$$a'_{33} = a_{13} x_{0} + a_{23} y_{0} + a_{33}$$
or
$$a'_{33} = \frac{y_{0}}{2} - 31$$
$$a'_{33} = - \frac{2481}{80}$$
then equation turns into
$$8 x'^{2} + 20 y'^{2} - \frac{2481}{80} = 0$$
Given equation is ellipse
$$\frac{\tilde x^{2}}{\left(\frac{\frac{1}{4} \sqrt{2}}{\frac{4}{2481} \sqrt{12405}}\right)^{2}} + \frac{\tilde y^{2}}{\left(\frac{\frac{1}{10} \sqrt{5}}{\frac{4}{2481} \sqrt{12405}}\right)^{2}} = 1$$
- reduced to canonical form
The center of canonical coordinate system at point O
(0, -1/40)
Basis of the canonical coordinate system
$$\vec e_1 = \left( 1, \ 0\right)$$
$$\vec e_2 = \left( 0, \ 1\right)$$