I am looking for a way to simultaneously transform the following four expressions into perfect squares, $1+x_1^2, 1+x_2^2, 1+x_3^2, x_1^2+x_2^2+x_3^2$, i.e. I want to find a rational parametrization of $x_1,x_2,x_3$, and some $a_1,a_2,a_3,a_4$, such that
$1+x_1^2 = a_1^2\quad$ $1+x_2^2 = a_2^2\quad $ $1+x_3^2 = a_3^2\quad $ $x_1^2+x_2^2+x_3^2 = a_4^2$
E.g. the first three equations can be satisfied by setting $x_{1} = 1/(2 y_1)-y_1/2$ and $a_1 = (1+y_1^2)/2/y_1$, etc., but then the forth equation still needs to be satisfied.
I have found similar cases on https://sites.google.com/site/tpiezas/007, but I don't know how to approach such questions systematically.