a/ Ta có: \(x+2\sqrt{x}+1=\left(\sqrt{x}+1\right)^2\)
Và: \(x-1=\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)\)
=> \(P=\left[\frac{\sqrt{x}+2}{\left(\sqrt{x}+1\right)^2}-\frac{\sqrt{x}-2}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\right].\frac{\sqrt{x}+1}{\sqrt{x}}\)
=> \(P=\frac{\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.\left(\sqrt{x}-1\right)}.\frac{\sqrt{x}+1}{\sqrt{x}}\)
=> \(P=\frac{x+2\sqrt{x}-\sqrt{x}-2-x-\sqrt{x}+2\sqrt{x}+2}{\left(\sqrt{x}+1\right).\left(\sqrt{x}-1\right)}.\frac{1}{\sqrt{x}}=\frac{2\sqrt{x}}{\left(\sqrt{x}+1\right).\left(\sqrt{x}-1\right)}.\frac{1}{\sqrt{x}}\)
=> \(P=\frac{2}{\left(\sqrt{x}+1\right).\left(\sqrt{x}-1\right)}=\frac{2}{x-1}\)
b/ Thay \(x=\frac{\sqrt{3}}{2+\sqrt{3}}\) => \(P=\frac{2}{\frac{\sqrt{3}}{2+\sqrt{3}}-1}=\frac{2\left(2+\sqrt{3}\right)}{\sqrt{3}-2-\sqrt{3}}\)
=> \(P=-\left(2+\sqrt{3}\right)\)
c/ \(P=\frac{2}{x-1}=-\frac{4}{\sqrt{x}+1}\) <=> \(\frac{1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}=-\frac{2}{\sqrt{x}+1}\)
<=> \(\frac{1}{\sqrt{x}-1}=-2\)
<=> \(1=-2\sqrt{x}+2\)
<=> \(2\sqrt{x}=1=>\sqrt{x}=\frac{1}{2}=>x=\frac{1}{4}\)