a: ĐKXĐ: x>0; x<>1
\(D=\left(\dfrac{\sqrt{x}+2}{x+2\sqrt{x}+1}-\dfrac{\sqrt{x}-2}{x-1}\right)\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
\(=\left(\dfrac{\left(\sqrt{x}+2\right)}{\left(\sqrt{x}+1\right)^2}-\dfrac{\sqrt{x}-2}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\right)\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
\(=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)-\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}+1\right)^2\cdot\left(x-1\right)}\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
\(=\dfrac{x+\sqrt{x}-2-\left(x-\sqrt{x}-2\right)}{\sqrt[]{x}\left(x-1\right)}=\dfrac{2}{x-1}\)
b: Để D có giá trị nguyên lớn nhất thì x-1=1
=>x=2