This is LaTeX code:
[latex]
f(x)=-(r^2+1)x^2 + 8(r-1)x + 40
[/latex]