\(\left(a^2+b^2-2\right)\left(a+b\right)^2+\left(1-ab\right)^2+4ab=0\)
\(\Leftrightarrow\left[\left(a+b\right)^2-2\left(ab+1\right)\right]\left(a+b\right)^2+1+2ab+a^2b^2=0\)
\(\Leftrightarrow\left(a+b\right)^4-2\left(a+b\right)^2\left(ab+1\right)+\left(ab+1\right)^2=0\)
\(\Leftrightarrow\left[\left(a+b\right)^2-\left(ab+1\right)\right]^2=0\)
\(\Leftrightarrow\left(a+b\right)^2-\left(ab+1\right)=0\)
\(\Leftrightarrow ab+1=\left(a+b\right)^2\)
\(\Rightarrow\sqrt{ab+1}=\left|a+b\right|\) là số hữu tỉ (đpcm)