This is LaTeX code:

[latex]
\displaystyle\frac{\sqrt{\frac{1}{x^2}+1+\ln(\frac{x}{x+1})}-1}{\frac{1}{x}}
[/latex]