The function is defined in two parts, for $0 \leq x<1$ and $1 \leq x \leq 2$.
For $0 \leq x<1$, the function is $-x$. This is a straight line with a negative slope, starting from the origin and going downwards.
For $1 \leq x \leq 2$, the function is $x-1$. This
Show more…