This is LaTeX code:
[latex]
f(x) = (\mathrm{ctg}\ x - 1)^2 + 1
[/latex]