what is f(x)=x^3-9x^2+15x+2 function max and how to do that if u could explain

f ' (x) = 3x^2 - 18x + 15

= 0 for a max/min

simplified:
x^2 - 6x + 5 = 0
(x-5)(x-1)= 0
x = 5 or x = 1

for x = 5, f(5) = 125 - 225 + 75 + 2 = -23
for x = 1, f(1) = 1 - 9 + 15 + 2 = 9

There is a local max of 9, when x = 1

As x gets larger or smaller the function rises to infinity in quadrant I
and drops to infinity in quad III