This is LaTeX code:

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