Lời giải:
a. \(B=\frac{3(\sqrt{x}+1)}{(\sqrt{x}-1)(\sqrt{x}+1)}-\frac{\sqrt{x}+5}{(\sqrt{x}-1)(\sqrt{x}+1)}=\frac{3(\sqrt{x}+1)-(\sqrt{x}+5)}{(\sqrt{x}-1)(\sqrt{x}+1)}=\frac{2(\sqrt{x}-1)}{(\sqrt{x}-1)(\sqrt{x}+1)}=\frac{2}{\sqrt{x}+1}\)
b.
\(P=2AB+\sqrt{x}=2.\frac{\sqrt{x}+1}{\sqrt{x}+2}.\frac{2}{\sqrt{x}+1}+\sqrt{x}=\frac{4}{\sqrt{x}+2}+\sqrt{x}\)
Áp dụng BĐT Cô-si:
$P=\frac{4}{\sqrt{x}+2}+(\sqrt{x}+2)-2\geq 2\sqrt{4}-2=2$
Vậy $P_{\min}=2$ khi $\sqrt{x}+2=2\Leftrightarrow x=0$