Functions — Question 6

PDF ↗

Question 6

Let f(x)=|x−2|+|x+1|f(x) = \left| x - 2 \right| + \left| x + 1 \right|.

(a) Express f(x)f(x) as a piecewise-defined function.

(b) Sketch the graph of f(x)f(x).

(c) Determine all values of xx where f(x)f(x) is not differentiable. Justify your answer.

Original worksheet page 1: question and worked solution for 1-1-006
Show solutionHide solution

Question 6 - Solution

(a) The absolute values change sign at x=−1x=-1 and x=2x=2.

f(x)={−(x−2)−(x+1),x<−1,−(x−2)+(x+1),−1≤x<2,(x−2)+(x+1),x≥2.f(x)= \begin{cases} -(x-2)-(x+1), & x<-1, \\[0.3em] -(x-2)+(x+1), & -1\leq x<2, \\[0.3em] (x-2)+(x+1), & x\geq 2. \end{cases}

After simplifying,

f(x)={−2x+1,x<−1,3,−1≤x<2,2x−1,x≥2.f(x)= \begin{cases} -2x+1, & x<-1, \\[0.4em] 3, & -1\leq x<2, \\[0.4em] 2x-1, & x\geq 2. \end{cases}

(b) The graph decreases until x=−1x=-1, stays constant from x=−1x=-1 to x=2x=2, and then increases.

See the diagram in the original worksheet below.

(c) The only possible non-differentiable points are where the absolute value expressions change sign:

x=−1andx=2.x=-1 \qquad \text{and} \qquad x=2.

From the piecewise function, the slopes are

{−2,x<−1,0,−1<x<2,2,x>2.\begin{cases} -2, & x<-1, \\ 0, & -1<x<2, \\ 2, & x>2. \end{cases}

At x=−1x=-1, the slope changes from −2-2 to 00, so ff is not differentiable there.

At x=2x=2, the slope changes from 00 to 22, so ff is not differentiable there.

Therefore,

x=−1,2\boxed{x=-1,\ 2}

Original worksheet page 2: question and worked solution for 1-1-006

Original worksheet layout. Use Enlarge or open the PDF for a closer view.