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