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