The excluded values are 1 and −1, and the LCD is (x−1)(x+1).
Multiplying every term by the LCD gives x(x+1)−2(x−1)=2, and the constants cancel:
x2−x=0⇒x(x−1)=0⇒x=0 or x=1
The candidate 1 is excluded, so it is extraneous. The candidate 0 is in the domain, so it is genuine: the left side is 0−2=−2 and the right side is −12=−2. The solution is x=0, which is a reminder that 0 is an ordinary value, excluded only when it makes a denominator vanish.