f(x) = x*3 - 6x*2 + 9x - 1

find max meaning of function on [0; 2] segment

f(x) = x^3 - 6x^2 + 9x - 1

f'(x) = 3x^2 - 12x + 9
= 3(x-1)(x-3)

f(1) = 3 a max
f(3) = -1 a min

On the interval [0,2]
f(1) will be the max