This is LaTeX code:

[latex]
\frac{2k^2-k+1}{k-2} = \frac{2(k-2)^2 + 7(k-2) + 7 }{k-2} = 2(k-2) +7 + \frac{7}{k-2}
[/latex]