For $-1 \leq x < 0$, the graph of $f(x)$ is a line with slope 1 and y-intercept 1. It starts at $(-1,0)$ and goes through $(0,1)$.
For $0 < x \leq \frac{\pi}{2}$, the graph of $f(x)$ is the cosine function. It starts at $(0,1)$ and oscillates between -1 and
Show more…