In Exercises $41-46,$ use a graphing utility to graph the function. Locate the absolute extrema of the function on the given interval.
$$
f(x)=\left\{\begin{array}{ll}{2-x^{2},} & {1 \leq x<3} \\ {2-3 x,} & {3 \leq x \leq 5}\end{array} \quad[1,5]\right.
$$