← Back to learning objective

Finding critical numbers of a piecewise function

Consider the piecewise function f(x)={x2x≤1−x+2x>1f(x) = \begin{cases} x^2 & x \le 1 \\ -x+2 & x>1 \end{cases} defined on the closed interval [−2,3][-2, 3].

Find all critical numbers of f(x)f(x) in the open interval (−2,3)(-2, 3). Be sure to check the boundary point x=1x=1 where the two pieces meet, in addition to checking where f′(x)=0f'(x)=0 or is undefined.

Finding critical numbers of a piecewise function graph
Hint

On each piece, compute the derivative and set it equal to zero (or find where it's undefined). Then separately examine whether f′(x)f'(x) even exists at x=1x=1 by comparing the slopes approaching from each side, since that's where the formula for ff changes.

Step-by-step solution

For x<1x<1, f(x)=x2f(x)=x^2 so f′(x)=2xf'(x)=2x, which equals zero at x=0x=0; this lies in the domain x<1x<1, so x=0x=0 is a critical number. For x>1x>1, f(x)=−x+2f(x)=-x+2 so f′(x)=−1f'(x)=-1, which is never zero, so this piece contributes no critical numbers.

At x=1x=1, check differentiability: the left-hand derivative is 2(1)=22(1)=2 and the right-hand derivative is −1-1. Since these don't match, f′(1)f'(1) is undefined, so x=1x=1 is also a critical number. Combining both pieces, the critical numbers in (−2,3)(-2,3) are x=0x=0 and x=1x=1.

Absolute extrema via the closed interval method

Using the critical numbers found above along with the endpoints of [−2,3][-2, 3], determine the absolute maximum value and the absolute minimum value of f(x)f(x) on [−2,3][-2, 3].

Hint

Evaluate ff at every critical number (x=0x=0 and x=1x=1) and at both endpoints (x=−2x=-2 and x=3x=3), then compare all the resulting function values to find the largest and smallest.

Step-by-step solution

Evaluate ff at each candidate point: f(−2)=(−2)2=4f(-2) = (-2)^2 = 4, f(0)=02=0f(0) = 0^2 = 0, f(1)=12=1f(1) = 1^2 = 1, and f(3)=−(3)+2=−1f(3) = -(3)+2 = -1. These are the only points where an absolute extremum can occur, per the closed interval method.

Comparing the values 4,0,1,−14, 0, 1, -1, the largest is 44 at x=−2x=-2 and the smallest is −1-1 at x=3x=3. So the absolute maximum value is 44 (occurring at x=−2x=-2) and the absolute minimum value is −1-1 (occurring at x=3x=3).

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap