This is LaTeX code:
[latex]
=\left(1+\frac{g_2}{2g_1}\right)\left(2+\frac{g_2}{g_1^2}\right)=
[/latex]