This is LaTeX code:

[latex]
g : x \mapsto \sum_{n=1}^\infty (-1)^{n-1}\frac{x^n}{n}
[/latex]