I am trying to prove the following statement.
Let $d = \gcd(x_1,x_2)$. If $x_1 x_2$ is a square, then ($x_1 = d M^{2}$ and $x_2 = dN^2$) or ($x_1 = -d M^{2}$ and $x_2 = -dN^2$), where $\gcd(N,M) =1$.
This is true if $d=1$: If a and b are relatively prime and ab is a square, then a and b are squares.
Thank you very much.
Note $\,x_1 x_2 = c^2\,\Rightarrow\, x_1/x_2 = (c/x_2)^2 = (a/b)^2\,$ for $\,a/b\,$ in least terms, i.e. $(a,b) = 1$.
By Euclid $\begin{align} (a,\ b)\ &=1\\ \iff\! (a^2,b^2)&=1\end{align}\,\ $ so $\,\ \dfrac{x_1}{x_2} = \dfrac{a^2}{b^2}\,\Rightarrow\begin{align}x_1 = d a^2\\ x_2 = d b^2\end{align},\ d\in\Bbb Z\ $ by Unique Fractionization