← Back to learning objective

Increasing/decreasing intervals and local extrema for f(x) = |x^2 - 4|

Consider the function f(x)=∣x2−4∣f(x) = |x^2 - 4|.

Write f(x)=∣x2−4∣f(x) = |x^2 - 4| as a piecewise function, then find all intervals on which ff is increasing and all intervals on which ff is decreasing. Use this information to identify the xx-coordinates of all local maxima and local minima of ff.

Increasing/decreasing intervals and local extrema for f(x) = |x^2 - 4| graph
Hint

Split into cases based on where x2−4x^2 - 4 is nonnegative versus negative, differentiate each piece separately, and check the sign of f′f' on each resulting interval (being careful at x=±2x = \pm 2 where the pieces meet).

Step-by-step solution

Since x2−4≥0x^2 - 4 \ge 0 for ∣x∣≥2|x|\ge 2 and x2−4<0x^2-4<0 for ∣x∣<2|x|<2, we can write f(x)=x2−4f(x) = x^2-4 for ∣x∣≥2|x|\ge 2 and f(x)=4−x2f(x) = 4-x^2 for −2<x<2-2<x<2. Differentiating each piece gives f′(x)=2xf'(x) = 2x for ∣x∣>2|x|>2 and f′(x)=−2xf'(x) = -2x for −2<x<2-2<x<2; the derivative fails to exist at x=±2x=\pm2 due to the corners, so x=−2,0,2x = -2, 0, 2 are the critical numbers.

Checking signs: on (−∞,−2)(-\infty,-2), f′(x)=2x<0f'(x)=2x<0 (decreasing); on (−2,0)(-2,0), f′(x)=−2x>0f'(x)=-2x>0 (increasing); on (0,2)(0,2), f′(x)=−2x<0f'(x)=-2x<0 (decreasing); on (2,∞)(2,\infty), f′(x)=2x>0f'(x)=2x>0 (increasing). By the First Derivative Test, f′f' changes negative-to-positive at x=−2x=-2 and x=2x=2, giving local minima there (value 00), and changes positive-to-negative at x=0x=0, giving a local maximum there (value 44).

Therefore ff is decreasing on (−∞,−2)(-\infty,-2) and (0,2)(0,2), increasing on (−2,0)(-2,0) and (2,∞)(2,\infty), with local minima at x=−2x=-2 and x=2x=2, and a local maximum at x=0x=0.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap