If we add \displaystyle 2 to both sides in the equation,
\displaystyle x-2+2=-1+2
we get \displaystyle x by itself on the left-hand side and can see the solution directly:
\displaystyle x=1 .