Given the equation $f(x)= |x^2-9|$ where $-4\le x\le 5$, I must find the extremes, as well as the concavities.
This I know how to do.
The issue is I'm unfamiliar on how to find the first and second derivative of the given function.
Thanks in advance.
The function $f(x)$ is
$$f(x)= \begin{cases} x^2-9,&\text{for}\,\,|x|\ge 3\\\\ 9-x^2,&\text{for}\,\,|x|\le 3& \end{cases}$$
Thus, the derivative $f'(x)$ is
$$f'(x)= \begin{cases} 2x,&\text{for}\,\,|x|\ge 3\\\\ -2x,&\text{for}\,\,|x|\le 3 \end{cases}$$
Both the derivative from the left and right are zero at $x=0$ and so this is a local extremum. To check to see if this is a local maximum or a local minimum we can either take a second derivative (which is $-2<0\implies \text{a local maximum}$) or observe that the derivative decreases to the right of $x=0$ and increases to the left (which implies a local maximum).
Thus, the other possible critical points are at the endpoints of the interval $[-4,5]$ or at $x=\pm 3$. The task then is to test these points, compare and determine the absolute extrema.
NOTE:
Aside, it might be of interest to note that inasmuch as
$$\frac{d|x|}{dx}=\frac{x}{|x|}$$
for $x\ne0$, then
$$\frac{d|f(x)|}{dx}=f'(x)\,\left(\frac{f(x)}{|f(x)|}\right)$$
for $f(x)\ne 0$