Given line equation of 2-order:
$$- 4 x_{1}^{2} + 4 x_{1} x_{2} - 7 x_{2}^{2} = 0$$
This equation looks like:
$$a_{11} x_{2}^{2} + 2 a_{12} x_{1} x_{2} + 2 a_{13} x_{2} + a_{22} x_{1}^{2} + 2 a_{23} x_{1} + a_{33} = 0$$
where
$$a_{11} = -7$$
$$a_{12} = 2$$
$$a_{13} = 0$$
$$a_{22} = -4$$
$$a_{23} = 0$$
$$a_{33} = 0$$
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}-7 & 2\\2 & -4\end{matrix}\right|$$
$$\Delta = 24$$
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_{20} + a_{12} x_{10} + a_{13} = 0$$
$$a_{12} x_{20} + a_{22} x_{10} + a_{23} = 0$$
substitute coefficients
$$2 x_{10} - 7 x_{20} = 0$$
$$- 4 x_{10} + 2 x_{20} = 0$$
then
$$x_{20} = 0$$
$$x_{10} = 0$$
Thus, we have the equation in the coordinate system O'x'y'
$$a'_{33} + a_{11} x2'^{2} + 2 a_{12} x1' x2' + a_{22} x1'^{2} = 0$$
where
$$a'_{33} = a_{13} x_{20} + a_{23} x_{10} + a_{33}$$
or
$$a'_{33} = 0$$
$$a'_{33} = 0$$
then equation turns into
$$- 4 x1'^{2} + 4 x1' x2' - 7 x2'^{2} = 0$$
Rotate the resulting coordinate system by an angle φ
$$x2' = - \tilde x1 \sin{\left(\phi \right)} + \tilde x2 \cos{\left(\phi \right)}$$
$$x1' = \tilde x1 \cos{\left(\phi \right)} + \tilde x2 \sin{\left(\phi \right)}$$
φ - determined from the formula
$$\cot{\left(2 \phi \right)} = \frac{a_{11} - a_{22}}{2 a_{12}}$$
substitute coefficients
$$\cot{\left(2 \phi \right)} = - \frac{3}{4}$$
then
$$\phi = - \frac{\operatorname{acot}{\left(\frac{3}{4} \right)}}{2}$$
$$\sin{\left(2 \phi \right)} = - \frac{4}{5}$$
$$\cos{\left(2 \phi \right)} = \frac{3}{5}$$
$$\cos{\left(\phi \right)} = \sqrt{\frac{\cos{\left(2 \phi \right)}}{2} + \frac{1}{2}}$$
$$\sin{\left(\phi \right)} = \sqrt{1 - \cos^{2}{\left(\phi \right)}}$$
$$\cos{\left(\phi \right)} = \frac{2 \sqrt{5}}{5}$$
$$\sin{\left(\phi \right)} = - \frac{\sqrt{5}}{5}$$
substitute coefficients
$$x2' = \frac{\sqrt{5} \tilde x1}{5} + \frac{2 \sqrt{5} \tilde x2}{5}$$
$$x1' = \frac{2 \sqrt{5} \tilde x1}{5} - \frac{\sqrt{5} \tilde x2}{5}$$
then the equation turns from
$$- 4 x1'^{2} + 4 x1' x2' - 7 x2'^{2} = 0$$
to
$$- 7 \left(\frac{\sqrt{5} \tilde x1}{5} + \frac{2 \sqrt{5} \tilde x2}{5}\right)^{2} + 4 \left(\frac{\sqrt{5} \tilde x1}{5} + \frac{2 \sqrt{5} \tilde x2}{5}\right) \left(\frac{2 \sqrt{5} \tilde x1}{5} - \frac{\sqrt{5} \tilde x2}{5}\right) - 4 \left(\frac{2 \sqrt{5} \tilde x1}{5} - \frac{\sqrt{5} \tilde x2}{5}\right)^{2} = 0$$
simplify
$$- 3 \tilde x1^{2} - 8 \tilde x2^{2} = 0$$
$$3 \tilde x1^{2} + 8 \tilde x2^{2} = 0$$
Given equation is degenerate ellipse
$$\frac{\tilde x1^{2}}{\left(\frac{\sqrt{3}}{3}\right)^{2}} + \frac{\tilde x2^{2}}{\left(\frac{\sqrt{2}}{4}\right)^{2}} = 0$$
- reduced to canonical form
The center of canonical coordinate system at point O
(0, 0)
Basis of the canonical coordinate system
$$\vec e_1 = \left( \frac{2 \sqrt{5}}{5}, \ - \frac{\sqrt{5}}{5}\right)$$
$$\vec e_2 = \left( \frac{\sqrt{5}}{5}, \ \frac{2 \sqrt{5}}{5}\right)$$