How to solve an equation of the form $ax^2 - by^2 + cx - dy + e =0$? I am trying to find out how to solve $ax^2 - by^2 + cx - dy + e = 0$ to get integer solutions, failing this the rational solutions.
Thanks!

Solutions of the equation: 
$ax^2-by^2+cx-dy+q=0$
you can record if the root of the whole: $k=\sqrt{(c-d)^2-4q(a-b)}$
Then using the solutions of the equation Pell: $p^2-abs^2=\pm1$
Then the formula of the solution, you can write:
$x=\frac{\pm1}{2(a-b)}(((d-c)\pm{k})p^2+2(bk\mp(bc-ad))ps+b(a(d+c)-2bc\pm{ak})s^2)$
$y=\frac{\pm1}{2(a-b)}(((d-c)\pm{k})p^2+2(ak\mp(bc-ad))ps-a(b(d+c)-2ad\mp{bk})s^2)$
If the root is a need to find out if this is equivalent to the quadratic form in which the root of the whole. This is usually accomplished this replacement: $x$ in such number $x+ty$
