+) Ta có : \(x^2+y^2=a^2+b^2\)
\(\Leftrightarrow x^2-a^2=b^2-y^2\)
\(\Leftrightarrow\left(x-a\right)\left(x+a\right)=\left(b-y\right)\left(b+y\right)\) ( * )
+) Ta có : \(x+y=a+b\)
Thay \(x-a=b-y\) vào ( * ) ta được :
\(\left(b-y\right)\left(x+a\right)=\left(b-y\right)\left(b+y\right)\)
\(\Leftrightarrow\left(b-y\right)\left(x+a\right)-\left(b-y\right)\left(b+y\right)=0\)
\(\Leftrightarrow\left(b-y\right)\left[\left(x+a\right)-\left(b+y\right)\right]=0\)
\(\Leftrightarrow\left(b-y\right)\left(x+a-b-y\right)=0\)
\(\Leftrightarrow\orbr{\begin{cases}b-y=0\\x+a-b-y=0\end{cases}}\)
\(\Leftrightarrow\orbr{\begin{cases}b=y\\x+a=b+y\end{cases}}\)
TH1 :\(b=y\)
\(\Rightarrow b-y=0\)
\(\Rightarrow x-a=0\)
\(\Rightarrow x=a\)
\(\Rightarrow x^n+y^n=a^n+b^n\) ( 1 )
TH2 : \(x+a=b+y\)
Mà \(x-a=b-y\)
\(\Rightarrow x+a+x-a=b+y+b-y\)
\(\Rightarrow2x=2b\)
\(\Rightarrow x=b\)
\(\Rightarrow a=y\)
\(\Rightarrow x^n+y^n=a^n+b^n\) ( 2 )
Từ ( 1 ) ; ( 2 )
\(\Rightarrow\) đpcm