Solving the quadratic equation x ^ 2 - | X-1 | - 1 = 0 with absolute value

Solving the quadratic equation x ^ 2 - | X-1 | - 1 = 0 with absolute value


When x ≥ 1;
The equation is as follows:
x²-x+1-1=0;
X = 1 or x = 0 (rounding off);
When x