Proof. Assume that the above equation has a solution in nonzero integers x,y,z. Since we may replace any number of the variables with their negatives without changing the validity of the equation, we may assume that x,y,z are positive integers.
We may also suppose that (x,y)=1. To see this, let (x,y)=d. Then x=dx1 and y=dy1, with (x1,y1)=1, where x1 and y1 are positive integers. Since x4+y4=z2, we have
(dx1)4+(dy1)4=z2
so that
d4(x14+y14)=z2
Hence d4∣z2, and, by problem 32 of Section 2.2 , we know that d2∣z. Therefore, z=d2z1, where z1 is a positive integer. Thus,
d4(x14+y14)=(d2z1)2=d4z12
so that
x14+y14=z12
This gives a solution of x4+y4=z2 in positive integers x=x1,y=y1,z=z1 with (x1,y1)=1.
So, suppose that x=x0,y=y0,z=z0 is a solution of x4+y4=z2, where x0,y0, and z0 are positive integers with (x0,y0)=1. We will show that there is another solution in positive integers x=x1,y=y1,z=z1 with (x1,y1)=1, such that z1<z0.
Since x04+y04=z02, we have
(x02)2+(y02)2=z02
so that x02,y02,z0 is a Pythagorean triple. Furthermore, we have (x02,y02)=1, for if p is a prime such that p∣x02 and p∣y02, then p∣x0 and p∣y0, contradicting the fact that (x0,y0)=1. Hence, x02,y02,z0 is a primitive Pythagorean triple, and by Theorem 11.1, we know that there are positive integers m and n with (m,n),m≡n(mod2), and
x02y02z0=m2−n2=2mn=m2+n2,
where we have interchanged x02 and y02, if necessary, to make y02 the even integer of this pair.
From the equation for x02, we see that
x02+n2=m2
Since (m,n)=1, it follows that x0,n,m is a primitive Pythagorean triple. Again using Theorem 11.1, we see that there are positive integers r and s with (r,s)=1,r≡s(mod2), and
x0nm=r2−s2=2rs=r2+s2
Since m is odd and (m,n)=1, we know that (m,2n)=1. We note that because y02=(2n)m, Lemma 11.3 tells us that there are positive integers z1 and w with m=z12 and 2n=w2. Since w is even, w=2v where v is a positive integer, so that
v2=n/2=rs
Since (r,s)=1, Lemma 11.3 tells us that there are positive integers x1 and y1 such that r=x12 and s=y12. Note that since (r,s)=1, it easily follows that (x1,y1)=1. Hence,
x14+y14=z12
where x1,y1,z1 are positive integers with (x1,y1)=1. Moreover, we have z1<z0, because
z1⩽z14=m2<m2+n2=z0.
To complete the proof, assume that x4+y4=z2 has at least one integral solution. By the well-ordering property, we know that among the solutions in positive integers, there is a solution with the smallest value z0 of the variable z. However, we have shown that from this solution we can find another solution with a smaller value of the variable z, leading to a contradiction. This completes the proof by the method of infinite descent.