Find the local minima and maxima (or local extrema) of $f$. For each extremum, determine three things: its location (i.e., value of $x$), its value (i.e., value of $f(x)$), and whether it is a local maximum or a local minimum.
Find the global maximum and global minimum of the function $f(x)$ on the interval $0 \le x \le 3$. Also indicate the location (the value of $x$) of the global maximum and global minimum.
Find the global maximum and global minimum of the function $f(x)$ on the interval $\frac{1}{2} \le x \le 3$. Also indicate the location (the value of $x$) of the global maximum and global minimum.
Find the global maximum and global minimum of the function $f(x)$ on the interval $-8 \le x \le 5$. Also indicate the location (the value of $x$) of the global maximum and global minimum.