Đặt \(P=a-2\sqrt{ab}+3b-2\sqrt{a}+1\)
\(=a-2\sqrt{a}\left(\sqrt{b}+1\right)+b+2\sqrt{b}+1+2b-2\sqrt{b}\)
\(=\left(\sqrt{a}-\sqrt{b}-1\right)^2+2\left(b-\sqrt{b}+\frac{1}{4}\right)-\frac{1}{2}\)
\(=\left(\sqrt{a}-\sqrt{b}-1\right)^2+2\left(\sqrt{b}-\frac{1}{2}\right)^2-\frac{1}{2}\ge\frac{1}{2}\)
Dấu "=" \(\Leftrightarrow b=\frac{1}{4};a=\frac{9}{4}\)