Mark M. answered 03/02/23
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
f(x) = (x - 2)(x2 - 6x + 9) = x3 - 6x2 + 9x - 2x2 + 12x - 18 = x3 - 8x2+ 21x - 18
f'(x) = 3x2 - 16x + 21 = (3x - 7)(x - 3)
f'(x) = 0 when x = 7/3 or x = 3
When x < 7/3, 3x - 7 and x - 3 are both negative. So, f'(x) > 0. Therefore, f is increasing
When 7/3 < x < 3, 3x - 7 is positive and x - 3 is negative. So, f'(x) < 0. Therefore, f is decreasing
When x > 3, 3x - 7 and x - 3 are both positive. So, f'(x) > 0. Therefore, f is increasing.