<s>[INST] Prove that there are no positive integers $a,b,c,d$ such that $a^2 + b^2 = c^2$ and $a^2 - b^2 = d^2$ Prove that there are no positive integers $a,b,c,d$ such that $a^2 + b^2 = c^2$ and $a^2 - b^2 = d^2$?
Could you show me the proof?
 [/INST] $${ \left( \frac { a }{ b }  \right)  }^{ 2 }+1={ \left( \frac { c }{ b }  \right)  }^{ 2 }\\ \frac { c }{ b } +\frac { a }{ b } =k\\ \frac { c }{ b } -\frac { a }{ b } =\frac { 1 }{ k } \\ \frac { c }{ b } =\frac { { k }^{ 2 }+1 }{ 2k } \\ \frac { a }{ b } =\frac { { k }^{ 2 }-1 }{ 2k } \\ $$Say:$$a=({ k }^{ 2 }-1)n\\ b=2kn\\ { a }^{ 2 }-{ b }^{ 2 }={ n }^{ 2 }({ k }^{ 4 }-6{ k }^{ 2 }+1)=n^2(k^2-3)^2-8=d^2$$
Is the result a perfect square?
</s>