By the Remainder Theorem, P(k) is the remainder when P(x) is divided by x-k.
So, P(k) = k
k3 + k2 - 2k + 1 = k
k3 + k2 - 3k + 1 = 0
By inspection, we see that 1 is a root.
Divide synthetically by k - 1:
1⌋ 1 1 -3 1
______1___ 2__-1
1 2 -1 0
So (k-1)(k2 + 2k - 1) = 0
If k2 + 2k - 1 = 0, then k = -2 ± √8 = -1± √2
2
k = 1, -1 + √2, -1 - √2