Câu trả lời:
ĐKXĐ:\(\sqrt{x}\ge0\Leftrightarrow x\ge0\)
Rút gọn: P=\(\left(\frac{\sqrt{x}-2}{x-1}-\frac{\sqrt{x}+2}{x+2\sqrt{x}+1}\right).\frac{\left(1-x\right)^2}{2}=\left(\frac{\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(x-1\right)\left(\sqrt{x}+1\right)}-\frac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}{\left(x-1\right)\left(\sqrt{x}+1\right)}\right).\frac{\left(x-1\right)^2}{2}\)
\(=\frac{x+\sqrt{x}-2\sqrt{x}-2-x+\sqrt{x}-2\sqrt{x}+2}{\left(x-1\right)\left(\sqrt{x}+1\right)}.\frac{\left(x-1\right)^2}{2}=\frac{2\sqrt{x}\left(x-1\right)^2}{2\left(x-1\right)\left(\sqrt{x}+1\right)}=\sqrt{x}\left(\sqrt{x}-1\right)=x-1\)