This is LaTeX code:

[latex]
f=g_1(p_1) + 3g_1(p_2) -6
[/latex]