ĐKXĐ: ...
\(P=a+b+1-2\sqrt{ab}-2\sqrt{a}+2\sqrt{b}+2b-2\sqrt{b}+\frac{1}{2}-\frac{1}{2}\)
\(=\left(\sqrt{a}-\sqrt{b}-1\right)^2+\frac{1}{2}\left(2\sqrt{b}-1\right)^2-\frac{1}{2}\ge-\frac{1}{2}\)
Dấu "=" xảy ra khi \(\left\{{}\begin{matrix}\sqrt{a}-\sqrt{b}-1=0\\2\sqrt{b}-1=0\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a=\frac{9}{4}\\b=\frac{1}{4}\end{matrix}\right.\)