Solve for x |x^2+x-1|=1