a) Ta có: \(\left(a+b\right)^2=4ab\)<=> \(a^2+b^2+2ab=4ab\)
<=> \(a^2-2ab+b^2=0\)
<=> \(\left(a-b\right)^2=0\)=> a=b (đpcm)
b) Ta có: \(\left(a^2+b^2\right)\left(x^2+y^2\right)=\left(ax+by\right)^2\)
<=> \(a^2x^2+a^2y^2+b^2x^2+b^2y^2=a^2x^2+2axby+b^2y^2\)
<=> \(a^2y^2+b^2x^2-2axby=0\)
<=>\(\left(ay-bx\right)^2=0\)
<=>ay=bx(đpcm)