Let $x,y,z \in \mathbb{N}$ where x is even; x,y are relatively prime and $x^{2}+y^{2}=z^{2}$. It will be tried to show that there exist $u,v \in \mathbb{N}$ relatively prime and $u> v$ and
$x=2uv, y=u^{2}-v^{2}, z=u^{2}+v^{2}$
We look at : $x^{2} = z^{2}-y^{2} = (z-y)(z+y)$ so we get the conditions:
$x= \sqrt{z-y)(z+y)} ; y= \sqrt{z^{2}-x^{2}} ; z=\sqrt{(x+y)(x+y)} $
then plug one of them into the conditions for u,v :
$x = 2uv ; \sqrt{(z-x)}\sqrt{(z+x)} = u^{2}-v^{2}; z=u^{2}+v^{2} $
Original idea was to plug x into
Now there are 4 variables and 3 equations! So this seems to be wrong.
Does anybody see the right way.
Tell me. Please.
The easiest way to see this is to know that unique factorization exists in $\mathbb Z[i]$. Then, if $x$ an $y$ are relatively prime, and $x$ is even, you can show that $x+yi$ and $x-yi$ must be relatively prime in $\mathbb Z[i]$. But $(x+yi)(x-yi)=z^2$ is a perfect square, so, since the factors are relatively prime, $x+yi=e(u+vi)^2$ where $e$ is a unit (so $e\in \{ 1,-1,i,-i \}$.)
But $(u+vi)^2 = (u^2-v^2) + 2uv i$, so, since $y$ is necessarily odd, $e$ must be $i$ or $-i$, and you get that $x+yi = \pm 2uv \mp (u^2-v^2)i$
In particular, if $x,y>0$, we can see that $x=2|u||v|$ and $y=|u|^2-|v|^2$ or $|v|^2-|u|^2$.