If we want to solve in in the integers, then how would you actually describe all the integer solutions? Does anyone happen to know the correct answer of this problem?

I am solving it in the integers, so the question should say:

**Find all INTEGER solutions of $\displaystyle x^2 + y^2 = 2z^2$.** __Attempt:__
$\displaystyle x^2 + y^2 = 2z^2$

<=> $\displaystyle (x+y)^2 + (x-y)^2 = (2z)^2 $

<=>

x+y = +/- $\displaystyle (m^2 - n^2)d $

x-y = +/- $\displaystyle 2mnd$

2z = +/- $\displaystyle (m^2 + n^2)d$

where d=0,2,4,6,...,

m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1

[I say +/- because x+y,x-y,2z may be a Pythagorean triple which requires x+y,x-y,2z to be positive, or some of x+y,x-y,2z may simply be the negatives of it]

<=>

x = +/- $\displaystyle d(m^2 - n^2 + 2mn) / 2$

y = +/- $\displaystyle d(m^2 - n^2 - 2mn) / 2$

z = +/- $\displaystyle d(m^2 + n^2) / 2$

where d=0,2,4,6,...,

m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1

<=>

x = $\displaystyle d(m^2 - n^2 + 2mn) / 2$

y = $\displaystyle d(m^2 - n^2 - 2mn) / 2$

z = $\displaystyle d(m^2 + n^2) / 2$

where d is any EVEN INTEGER, m and n are any integers of opposite parity with m>n>0 and gcd(m,n)=1

Is this the right way to analyze this problem? Is this the correct description of ALL (up to a reordering of x and y of course) integer solutions of $\displaystyle x^2 + y^2 = 2z^2$?? Did I miss any?

My textbook doesn't give the answer at the back, so there is no way for me to check my work. Can someone confirm that this is correct (or point out any mistake), please?

Thank you very much!