ĐKXĐ: \(x\ge0;x\ne1\)
Sửa lại đề chỗ \(\dfrac{\sqrt{x-1}}{\sqrt{x}+2}\) thành \(\dfrac{\sqrt{x}-1}{\sqrt{x}+2}\)
\(P=\dfrac{3\sqrt{x}\left(\sqrt{x}+2\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}-\dfrac{\sqrt{x}-1}{\sqrt{x}+2}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}\)
\(P=\dfrac{3\sqrt{x}}{\sqrt{x}-1}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}-\dfrac{\sqrt{x}-1}{\sqrt{x}+2}\)
\(P=\dfrac{3\sqrt{x}-\sqrt{x}-2}{\sqrt{x}-1}-\dfrac{\sqrt{x}-1}{\sqrt{x}+2}\)
\(P=\dfrac{2\left(\sqrt{x}-1\right)}{\sqrt{x}-1}-\dfrac{\sqrt{x}-1}{\sqrt{x}+2}=2-\dfrac{\sqrt{x}-1}{\sqrt{x}+2}\)
\(P=\dfrac{2\sqrt{x}+4-\sqrt{x}+1}{\sqrt{x}+2}=\dfrac{\sqrt{x}+5}{\sqrt{x}+2}=1+\dfrac{3}{\sqrt{x}+2}\)
Để P lớn nhất \(\Rightarrow\dfrac{3}{\sqrt{x}+2}\) lớn nhất
Mà \(\sqrt{x}+2\ge2\Rightarrow\dfrac{3}{\sqrt{x}+2}\le\dfrac{3}{2}\)
\(\Rightarrow P_{max}=1+\dfrac{3}{2}=\dfrac{5}{2}\) khi \(\sqrt{x}+2=2\Leftrightarrow x=0\)