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