This is LaTeX code:

[latex]
\frac{sinx-1}{2-sinx}=\frac{sinx-2+1}{2-sinx}=\frac{sinx-2}{2-sinx}+\frac{1}{2-sinx}=-1+\frac{1}{2-sinx}
[/latex]