Ta có: \(P=\frac{a^2+3ab+b^2}{\sqrt{ab}\left(a+b\right)}=\frac{\left(a+b\right)^2+ab}{\sqrt{ab}\left(a+b\right)}=\frac{a+b}{\sqrt{ab}}+\frac{\sqrt{ab}}{a+b}\)
\(=\frac{3\left(a+b\right)}{4\sqrt{ab}}+\left(\frac{a+b}{4\sqrt{ab}}+\frac{\sqrt{ab}}{a+b}\right)\ge\frac{3.2\sqrt{ab}}{4\sqrt{ab}}+2=\frac{6}{4}+2=2,5\)Vậy Min P = 2,5 đạt được khi a = b