a: \(P=\sqrt{x}\left(\sqrt{x}-1\right)-2\sqrt{x}-1+2\left(\sqrt{x}+1\right)\)
\(=x-\sqrt{x}-2\sqrt{x}-1+2\sqrt{x}+2\)
\(=x-\sqrt{x}+1\)
b: \(P=x-\sqrt{x}+\dfrac{1}{4}+\dfrac{3}{4}=\left(\sqrt{x}-\dfrac{1}{2}\right)^2+\dfrac{3}{4}>=\dfrac{3}{4}\)
Dấu '=' xảy ra khi x=1/4