Given a general ellipse $$Ax^2+Bxy+Cy^2+Dx+Ey+F=0$$ where $B^2<4AC$, what are the major and minor axes of symmetry in the form $ax+by+c=0$?
It is possible of course to first work out the angle of rotation such that $xy,x,y$ terms disappear, in order to get an upright ellipse of the form $x^2/p^2+y^2/q^2=1$ and proceed from there. This may involve some messy trigonometric manipulations.
Could there be another approach perhaps, considering only quadratic/diophantine and linear equations?
Addendum
Here's a graphical implementation based on the answer by Ng Chung Tak.
Addendum 2
Based on the answers by amd and by Ng Chung Tak, the equations for the axes are
$$\color{red}{\left(y-\frac {2AE-BD}{B^2-4AC}\right)=\frac {C-A\pm \sqrt{(A-C)^2+B^2}}B\left(x-\frac {2CD-BE}{B^2-4AC}\right)}$$
Note that $$\frac{C-A\pm \sqrt{(A-C)^2+B^2}}B\cdot \color{lightgrey}{\frac {C-A\mp\sqrt{(A-C)^2+B^2}}{C-A\mp\sqrt{(A-C)^2+B^2}}}=-\frac B{C-A\mp\sqrt{(A-C)^2+B^2}}$$ i.e. it is equal to the negative of its own reciprocal. Hence the equations for the axes can also be written as
$$\color{red}{\left(x-\frac {2CD-BE}{B^2-4AC}\right)=-\frac {C-A\mp \sqrt{(A-C)^2+B^2}}B\left(y-\frac {2AE-BD}{B^2-4AC}\right)}$$
hence the two symmetrical anti-symmetrical forms for the axes. Here's the graphical implementation.