Lời giải:
a. ĐKXĐ: $x>0; x\neq 1$
\(P=\frac{1}{\sqrt{x}+1}+\frac{x}{\sqrt{x}(1-\sqrt{x})}=\frac{1}{\sqrt{x}+1}+\frac{\sqrt{x}}{1-\sqrt{x}}=\frac{1-\sqrt{x}+x+\sqrt{x}}{(1-\sqrt{x})(\sqrt{x}+1)}=\frac{x+1}{1-x}\)
b.
\(P=\frac{\frac{1}{\sqrt{2}}+1}{1-\frac{1}{\sqrt{2}}}=3+2\sqrt{2}\)