Lời giải:
ĐKXĐ: $x>0$
Áp dụng BĐT Cô-si:
$x+2\geq 2\sqrt{2x}$
$\Rightarrow x+2\sqrt{x}+2\geq \sqrt{x}(2+2\sqrt{2})$
$\Rightarrow \frac{x+2\sqrt{x}+2}{\sqrt{x}}\geq 2+2\sqrt{2}$
$\Rightarrow P=-\frac{x+2\sqrt{x}+2}{\sqrt{x}}\leq -(2+2\sqrt{2})$
Vậy $P_{\max}=-(2+2\sqrt{2})$ khi $x=2$