This is LaTeX code:

[latex]
\displaystyle \lim_{x\to 0}\frac{\frac{\sqrt{x+1}-1}{x}-\frac{1}{2}}{x}
[/latex]