This is LaTeX code:
[latex]
\frac{\sqrt{x+1}-1-\frac{1}{2}x}{x^2}
[/latex]