Let $A,B,C$ and $a,b,c$ are the sides of Pythagoras' triangles. Prove that there exists an integer $D$ or $E$ such that $(C+c)^2-(A+a)^2-(B+b)^2=D^2$ or $(C+c)^2-(A+a)^2-(B+b)^2=2E^2$
What is the method to prove this? Is it possible to use primitive Pythagoras' triples?
Assuming that $c$ and $C$ are the hypotenuses, and that both $(a,b,c)$ and $(A,B,C)$ are primitive, then there are integers $p$, $q$, $r$, $s$ such that $$c = p^2+q^2,\ b = p^2-q^2,\ a=2pq, \quad C = r^2+s^2,\ B=r^2-s^2,\ A=2rs$$ or (reversing $a$ and $b$, and $A$ and $B$ if necessary) $$c = p^2+q^2,\ b = p^2-q^2,\ a=2pq, \quad C = r^2+s^2,\ B=2rs,\ A=r^2-s^2.$$ Now, $(C+c)^2-(A+a)^2-(B+b)^2 = 2(Cc-Aa-Bb)$; substituting and simplifying gives for the first case $$2(Cc-Aa-Bb) = 2(qr-ps)^2$$ and for the second $$2(Cc-Aa-Bb) = (p (r-s)-q (r+s))^2.$$