Michael H. answered 03/09/20
High School Math, Physics, Computer Science & SAT/GRE/AP/PRAXIS Prep
P(x) = x3 + x2 − x − 1
= x2(x+1) - (x+1)
= (x+1)(x2 - 1)
= (x+1)(x - 1)(x + 1)
= (x - 1)(x+1)2
= 0 when x = 1 or -1 with -1 as double root.
Answer: -1, -1, 1
The reason that 1, -1 is wrong is that there are three roots to cubic equations, not two.