\(=\frac{\sqrt{a}\left(a+2\right)+3a}{a^2+2\sqrt{a^3}+a}\)
\(=\frac{2}{a}-\frac{2-a}{a\left(\sqrt{a}+1\right)}=\frac{2\sqrt{a}+2-2+a}{a\left(\sqrt{a}+1\right)}\)
\(=\frac{\sqrt{a}\left(\sqrt{a}+2\right)}{a\left(\sqrt{a}+1\right)}=\frac{\sqrt{a}+2}{a+\sqrt{a}}\)