I'm looking for a method to find the parametric solutions of a Diophantine equation of this kind
$$ \alpha x^2 +\beta y^2 = \gamma w^2+\delta z^2 $$
$(\alpha,\beta,\gamma,\delta,x,y,w,z) \in \mathbb{N}$
es: $$ 3x^2+y^2=2w^2 +2z^2 $$ $$3x^2+2y^2=4w^2+z^2 $$
thank you
In either case it is easy enough to find all rational solutions by stereographic projection around a known solution, both have (1,1,1,1). Take a relatively prime quadruple $(p,q,r,s)$ and evaluate the quadratic form at $$ (1,1,1,1) + t (p,q,r,s). $$ The first form is $3x^2 + y^2 - 2 z^2 - 2 w^2.$ The second is $3x^2 + 2 y^2 - z^2 - 4 w^2.$ In either case $t=0$ is always a solution, then there is a nonzero rational value for $t$ that gives a solution in that direction, and $t$ depends on the direction integers $(p,q,r,s).$
Give me a few minutes. Note that sorting out the primitive integral solutions is the real problem and harder.
Here is the calculation for the first using gp-pari. I will also typeset it. Before I do that, note that, even though we take $\gcd(p,q,r,s) = 1,$ it is still easy to get common factors in $(x,y,z,w).$ So, one half-satisfactory way to proceed is just to say "use these formulas and then divide out by any $\gcd(x,y,z,w).$" ADDED: I am not so sure the set of possible gcd's is finite with four variables. It is in three variables, goes back to Fricke and Klein (1897). I did a trial run with bounds on $p,q,r,s,$ the list of all gcds was:
$$ x = -3p^2 + q^2 - 2 r^2 - 2 s^2 - 2 pq + 4pr + 4ps \; , \; $$ $$ y = 3p^2 - q^2 - 2 r^2 - 2 s^2 - 6 pq + 4qr + 4qs \; , \; $$ $$ z = 3p^2 + q^2 + 2 r^2 - 2 s^2 - 6 pr -2qr + 4rs \; , \; $$ $$ w = 3p^2 + q^2 - 2 r^2 + 2 s^2 - 6 ps -2qs + 4rs \; , \; $$
See how, if we simply take $p=1$ and the others $0,$ we get $(-3,3,3,3)$ with a common factor of $3$