a) \(P=\dfrac{\left(x^2+2xy+9y^2\right)-\left(x+3y-2\sqrt{xy}\right)2\sqrt{xy}}{x+3y-2\sqrt{xy}}\)
\(=\dfrac{\left(x^2+6xy+9y^2\right)-\left(x+3y\right)2\sqrt{xy}}{x+3y-2\sqrt{xy}}\)
\(=\dfrac{\left(x+3y\right)^2-\left(x+3y\right)2\sqrt{xy}}{x+3y-2\sqrt{xy}}\)
\(=\dfrac{\left(x+3y\right)\left(x+3y-2\sqrt{xy}\right)}{x+3y-2\sqrt{xy}}\)
\(P=x+3y\)
b) \(\dfrac{P}{\sqrt{xy}+y}=\dfrac{x+3y}{\sqrt{xy}+y}=\dfrac{\left(x+3y\right):y}{\left(\sqrt{xy}+y\right):y}=\dfrac{\dfrac{x}{y}+3}{\sqrt{\dfrac{x}{y}}+1}\)
Đặt \(t=\sqrt{\dfrac{x}{y}}>0\) và \(\dfrac{P}{\sqrt{xy}+y}=Q\) thì \(Q=\dfrac{t^2+3}{t+1}=\dfrac{\left(t-1\right)^2+2\left(t+1\right)}{t+1}=2+\dfrac{\left(t-1\right)^2}{t+1}\ge2\)
\(Q_{min}=2\Leftrightarrow t=1\Leftrightarrow x=y\)