"\$x^2\$" will be displayed as "\$x^2\$". Only when using "\$x\\^2\$", the power can be dispalyed properly.