Let $f(x) = \begin{cases} x^2+4x, & x<1; \\ x^3-6x+10, & x\geq1. \end{cases}$
Find the critical points.
I have solved. The function is not differentiable at $x=1$. So $x=1$ is a critical point. Again by setting $f'(x)=0$, we get $-2$, $-\sqrt{2}$, $1$, $\sqrt{2}$ are the critical points. But when I enter the number in the machine, it says its wrong. Kindly help.
For $x<1$ we have $x_{min}=-2$ and $(-2,-4)$ it's a minimum point.
$f$ increases on $[-2,1]$ and decreases on $[1,\sqrt2]$, which says that $x_{max}=1$ and $(1,5)$ is a maximum point.
For $x\geq1$ we have $f'(x)=3x^2-6=3(x-\sqrt2)(x+\sqrt2),$ which gives $x_{min}=\sqrt2$
and $(\sqrt2,10-4\sqrt2)$ is a minimum point.
$x=-\sqrt2$ it's nothing of course.