Let the function f be defined as follows:
$$f(x) = x^3 - 6x^2 + 9x + 1$$
Determine the value of x where the function attains its maximum. After finding the x value, calculate f(x) at that point.