The derivative of the function $f$ is,
$$ f'(x)=\frac{x^2(x-1)}{x+2},~ x\ne-2. $$
The obvious critical points are $x=0$ and $x=1$. However, since $f'(-2)$ is not defined, can $-2$ be a critical point?
I have read that for $c$ to be a critical number/point, $f(c)$ must be well-defined, and $f'(c)$ must be $0$ or undefined. However, we are not given $f$. Assuming we have no way to integrate this function to check whether $f(-2)$ is defined or graph the given derivative, is it possible to consider $-2$ to be a critical number?
If not, how can we justify using $-2$ to split the domain of $f$ into sub-intervals along with the other critical numbers? The sub-intervals in which I test the trend of the function (increasing/decreasing) are formed using the critical numbers and $-2$, as the textbook dictates. So my intervals would be $(-\infty,-2)$, $(-2,0)$, $(0,1)$ and $(1,\infty)$.
PS: This textbook uses the terms "critical numbers" and "critical points" interchangeably.