idn if you still need this information, after all, 7.5 years have passed. But at least for those who came here like me, I'll write this:
First, use $ signs as brackets to display inline LaTeX formula.
So the answer will be: $g \approx f$
And now about the sources.
Informative article about Mathematics in LaTeX
And another useful paper