Consider the function f(x)=∣x∣+x.
(i) Rewrite f explicitly as a piecewise function without the absolute-value symbol.
(ii) Obtain the derivative of f on each interval of definition.
(iii) List all critical points of f.
(iv) Determine and classify each local extremum of f, stating the corresponding function values.