By observation, we can see that x = 1 is a root because (1)^3 - 2(1) + 1 = 1 - 2 + 1 = 0
If x = 1, then (x - 1) = 0
Assuming x^3 - 2x + 1 = 0 can be written as (x+a)(x+b)(x+c) = 0, where -a, -b, and -c are the roots, then we can divide the equation by the root we already know to simplify it.
(x^3 - 2x + 1) / (x - 1) = x^2 + x - 1
Use the quadratic equation to find the roots of x^2 + x - 1
x = (-b +/- (b^2 - 4ac)^(0.5)) / (2a) = (-(1) +/- ((1)^2 - 4(1)(-1))^(0.5)) / (2(1)) = -0.5 +/- (5^0.5) / 2
The other 2 roots are x = -0.5 + (5^0.5) / 2 ~= 0.6 and x = -0.5 - (5^0.5) / 2 ~= -1.6
The largest root is x = 1, so let r = 1, s = 0.6, t = -1.6
r^3 - s - t = (1)^3 - (0.6) - (-1.6) = 2
2 is the maximal value!