a) ĐKXĐ: \(x>0,x\ne1\)
\(P=\dfrac{x-2\sqrt{x}}{x\sqrt{x}-1}+\dfrac{\sqrt{x}+1}{x\sqrt{x}+x+\sqrt{x}}+\dfrac{1+2x-2\sqrt{x}}{x^2-\sqrt{x}}\)
\(=\dfrac{x-2\sqrt{x}}{\left(\sqrt{x}\right)^3-1}+\dfrac{\sqrt{x}+1}{\sqrt{x}\left(x+\sqrt{x}+1\right)}+\dfrac{1+2x-2\sqrt{x}}{\sqrt{x}\left(\left(\sqrt{x}\right)^3-1\right)}\)
\(=\dfrac{x-2\sqrt{x}}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}+\dfrac{\sqrt{x}+1}{\sqrt{x}\left(x+\sqrt{x}+1\right)}+\dfrac{1+2x-2\sqrt{x}}{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{\left(x-2\sqrt{x}\right)\sqrt{x}+\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)+1+2x-2\sqrt{x}}{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{x\sqrt{x}+x-2\sqrt{x}}{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}=\dfrac{\sqrt{x}\left(x+\sqrt{x}-2\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}=\dfrac{\sqrt{x}+2}{x+\sqrt{x}+1}\)
b) Ta có: \(\left\{{}\begin{matrix}\sqrt{x}+2>0\\x+\sqrt{x}+1>0\end{matrix}\right.\Rightarrow P>0\)
Vì \(x>0\Rightarrow2x+\sqrt{x}>0\Rightarrow2x+2\sqrt{x}+2-\left(\sqrt{x}+2\right)>0\)
\(\Rightarrow2\left(x+\sqrt{x}+1\right)>\sqrt{x}+2\Rightarrow\dfrac{\sqrt{x}+2}{x+\sqrt{x}+1}< 2\)
mà P nguyên \(\Rightarrow\dfrac{\sqrt{x}+2}{x+\sqrt{x}+1}=1\Rightarrow\sqrt{x}+2=x+\sqrt{x}+1\)
\(\Rightarrow x-1=0\Rightarrow x=1\) mà \(x\ne1\Rightarrow\) không có x để P nguyên