The function is defined in two parts, so we will sketch each part separately.
For $0 \leqslant x<2$, the function is $f(x) = 1-x$. This is a straight line with a negative slope, starting at the point $(0,1)$ and ending at the point $(2,-1)$.
For $2 \leq x \leq
Show more…