In order to find the extrema, we need to solve the equation
$$\frac{d}{d x} f{\left(x \right)} = 0$$
(the derivative equals zero),
and the roots of this equation are the extrema of this function:
$$\frac{d}{d x} f{\left(x \right)} = $$
the first derivative$$6 - 2 x = 0$$
Solve this equationThe roots of this equation
$$x_{1} = 3$$
The values of the extrema at the points:
(3, 9)
Intervals of increase and decrease of the function:Let's find intervals where the function increases and decreases, as well as minima and maxima of the function, for this let's look how the function behaves itself in the extremas and at the slightest deviation from:
The function has no minima
Maxima of the function at points:
$$x_{1} = 3$$
Decreasing at intervals
$$\left(-\infty, 3\right]$$
Increasing at intervals
$$\left[3, \infty\right)$$