令a=(x-1)/x
则a2-a-2=0
(a-2)(a+1)=0
a=2,a=-1
(x-1)/x=2
x-1=2x
x=-1
(x-1)/x=-1
x-1=-x
x=1/2
所以x=-1,x=1/2