Help solving over the integers: $$ax^2+by^2+cz^2+dxy+exz+fzy=0$$ where $(x_0,y_0,z_0)$ is a known integral solution and $a,b,c,d,e,f$ are integral coefficients.
I found in Tito Piezas' identities the solutions. However, I am more interested in the steps followed to get the results. Any hints?
I think I ought to start by pointing out that we find all primitive solutions to $x^2 + y^2 - z^2 = 0$ (Pythagorean triples) using a parametrization in two variables, $x=r^2 - s^2, y = 2 r s, z = r^2 + s^2,$ with $\gcd(r,s) = 1$ and one odd, one even. This type of $2$ variable outcome is evident when, in the original question, $d=e=0,$ so that we have $a x^2 + d x y + b y^2 = - c z^2.$ We simply define rational variables $u = x/z$ and $v = y/z.$ The hypothesis is that there is at least one rational point $(u_0, v_0)$ on the conic section $a u^2 + d u v + b v^2 = -c.$ We find all rational points by stereographic projection, $u = u_0 + t u_1,$ $v = v_0 + t v_1.$ Plug into the defining equation for the conic section, take $t \neq 0$ gives another, nonzero value for $t,$ plug that into the projection, clear denominators, the result is a parametrization by two variables.
With $ax^2+by^2+cz^2+dxy+exz+fzy=0,$ we may use stereographic projection around a given integer solution. This results in a three parameter description of solutions. It gives a multiple of every primitive solution. It is sometimes a little hard to predict the GCD of the three variables, meaning it is hard to be sure we have found all solutions with given bounds on the entries.
There is an interesting alternative, method goes back to Fricke and Klein, gives a two variable parametrization, and can be adjusted to deal with GCD's. There is a complete answer to this, finding all primitive solutions, meaning $\gcd(x,y,z) = 1.$
We begin with finding all primitive solutions to $y^2 - z x = 0.$ If $g = \gcd(x,z) > 1,$ then $g^2 | y^2$ and $g | y,$ so $g | \gcd(x,y,z).$ However, $\gcd(x,y,z) = 1.$ So, $\gcd(x,z) = 1.$ Since $xz = y^2,$ either $x=u^2, z=v^2,$ or $x=-u^2,z=-v^2,$ in either case with $\gcd(u,v) = 1.$ That is, possibly by changing from $(x,y,z)$ to $(-x,-y,-z)$ so as to arrange $x \geq 0,$ all primitive solutions are $$ x = u^2, y = u v, z = v^2. $$
Next, your quadratic form is $X^T G X / 2,$ where $$ G = \left( \begin{array}{rrr} 2a & d & e \\ d & 2b & f \\ e & f &2c \end{array} \right) $$ and $$ X = \left( \begin{array}{r} x \\ y \\ z \end{array} \right) $$
The quadratic form $y^2 - z x$ is $X^T H X / 2,$ where $$ H = \left( \begin{array}{rrr} 0 & 0 & -1 \\ 0 & 2 & 0 \\ -1 & 0 & 0 \end{array} \right) $$ It is a theorem in Fricke and Klein (1897), pages 507-508 that, because your quadratic form has at least one integer solution, in which $(x,y,z)$ are not all zero, there exists a square matrix of integers $R$ and a nonzero integer $n$ such that $$ R^T G R = n H. $$ As $R$ has an inverse, we can take $S$ to have integral entries and minimize positive $k$ in $$ RS = SR = k I. $$
We already know that we can take all solutions of $y^2 - z x = 0$ as the column vector $$ U = \left( \begin{array}{r} u^2 \\ uv \\ v^2 \end{array} \right) $$ for relatively prime $(u,v).$ That is, $U^T H U = 0,$ and all solutions are a scalar multiple of $U.$
What happens if $X^T G X = 0,$ the "solutions" we want, with gcd one? Well, $R^T G R = n H,$ so $S^T R^T G R S = n S^T H S,$ so $$ G = \frac{n}{k^2} S^T H S, $$ and $X^T G X = 0$ says $$ X^T S^T H S X = 0. $$ We have already shown that there is some integer $w$ with $$ SX = w U. $$ This gives us $RSX = w RU$ and $kX = w RU.$ Now, as $\gcd(x,y,z) = 1,$ there is a row vector $A = (\alpha,\beta,\gamma)$ with $AX = 1.$ This tells us $k = w ARU.$ As $ARU$ is some integer, $w | k,$ and the earlier $kX = w RU$ becomes $$ X = \frac{1}{h} R U $$ for $h = \frac{k}{w} \in \mathbb Z.$ Furthermore, as $ RS = SR = k I, $ we know $k | \det R,$ so $h | k$ tells us $h | \det R.$ One may leave it this way: list the divisors of $\det R,$ including $\det R$ itself. For each primitive pair $(u,v),$ produce the column vector $RU,$ which will be a solution but perhaps not primitive. Divide out by the gcd of the entries of $RU.$ All integer primitive solutions are given by $$ X = RU/ g_1, $$ where $g_1$ is the gcd of the three entries of $RU.$ It is worth emphasizing that $g_1$ is a divisor of $\det R.$ Also, we get some explicit bounds, as $$ |X|^2 = \frac{1}{g_1^2} U^T R^T R U, $$ since $R$ is nonsingular integer and $R^T R$ is symmetric positive definite. So, no matter what, we have a way to find all primitive solutions $X$ with some $|X| \leq \mbox{bound}$ by taking $|u|, |v|$ up to some other bound we can figure out. $$ \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc \bigcirc $$ A more interesting alternative: for each divisor of $\det R,$ we may rewrite the eventual primitive solution with that gcd as a new recipe, $R_1 U$ for a new integer matrix $R_1$ that also solves $R_1^T G R_1 = n H.$
The example I like to show is solving $$ 2(x^2 + y^2 + z^2) - 113(yz + zx + xy)=0, $$ four "recipes," $$ \left( \begin{array}{r} x \\ y \\ z \end{array} \right) = \left( \begin{array}{r} 37 u^2 + 51 uv + 8 v^2 \\ 8 u^2 -35 uv -6 v^2 \\ -6 u^2 + 23 uv + 37 v^2 \end{array} \right) $$
$$ \left( \begin{array}{r} x \\ y \\ z \end{array} \right) = \left( \begin{array}{r} 32 u^2 + 61 uv + 18 v^2 \\ 18 u^2 -25 uv -11 v^2 \\ -11 u^2 + 3 uv + 32 v^2 \end{array} \right) $$
$$ \left( \begin{array}{r} x \\ y \\ z \end{array} \right) = \left( \begin{array}{r} 38 u^2 + 45 uv + 4 v^2 \\ 4 u^2 -37 uv -3 v^2 \\ -3 u^2 + 31 uv + 38 v^2 \end{array} \right) $$
$$ \left( \begin{array}{r} x \\ y \\ z \end{array} \right) = \left( \begin{array}{r} 29 u^2 + 63 uv + 22 v^2 \\ 22 u^2 -19 uv -12 v^2 \\ -12 u^2 -5 uv + 29 v^2 \end{array} \right) $$
In all four cases we simply discard occurrences when the resulting $x,y,z$ have a common factor. With the understanding that we negate all $x,y,z$ so that the entry with largest absolute value is positive, then sort so that $$ x \geq |y| \geq |z|, $$ here are the answers with maximum up to $1200$
I should probably point out that, while it was quite easy (after writing the C++ programs) to make a list of primitive solutions to $ 2(x^2 + y^2 + z^2) - 113(yz + zx + xy)=0 $ with $x \geq |y| \geq |z|$ for $x \leq 1200,$ and just as easy to identify the four square matrices $R_1,R_2,R_3,R_4$ used above, it was quite a big job to prove that these really do give all (ordered) primitive solutions. I have a pdf of the whole business in detail, about twenty pages Latex. Oh: in the above, we may always take $u,v \geq 0.$ It is a reasonable conjecture that the problem $ A(x^2 + y^2 + z^2) - B(yz + zx + xy)=0, $ with $\gcd(A,B)=0,$ $B > A > 0,$ and both $B-A$ and $B + 2A$ expressible in integers as $s^2 + 3 t^2,$ always works out with a finite number of such $R_i.$ No proof.