Given line equation of 2-order:
$$x^{2} - 4 x + 2 y^{2} + 2 y - 20 = 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} = 1$$
$$a_{12} = 0$$
$$a_{13} = -2$$
$$a_{22} = 2$$
$$a_{23} = 1$$
$$a_{33} = -20$$
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}1 & 0\\0 & 2\end{matrix}\right|$$
$$\Delta = 2$$
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
$$x_{0} - 2 = 0$$
$$2 y_{0} + 1 = 0$$
then
$$x_{0} = 2$$
$$y_{0} = - \frac{1}{2}$$
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} = - 2 x_{0} + y_{0} - 20$$
$$a'_{33} = - \frac{49}{2}$$
then equation turns into
$$x'^{2} + 2 y'^{2} - \frac{49}{2} = 0$$
Given equation is ellipse
$$\frac{\tilde x^{2}}{\left(\frac{1}{\frac{1}{7} \sqrt{2}}\right)^{2}} + \frac{\tilde y^{2}}{\left(\frac{\frac{1}{2} \sqrt{2}}{\frac{1}{7} \sqrt{2}}\right)^{2}} = 1$$
- reduced to canonical form
The center of canonical coordinate system at point O
(2, -1/2)
Basis of the canonical coordinate system
$$\vec e_1 = \left( 1, \ 0\right)$$
$$\vec e_2 = \left( 0, \ 1\right)$$