Confusion in proof that primes $p = 4k + 1$ are uniquely the sums of two squares
Write the two equations: $$p=a^2+b^2$$ $$p=c^2+d^2$$
Now, multiply the first by $d^2,$ the second by $b^2,$ and subtract the second from the first.
Write the two equations: $$p=a^2+b^2$$ $$p=c^2+d^2$$
Now, multiply the first by $d^2,$ the second by $b^2,$ and subtract the second from the first.