How can I graph this function?

52 Views Asked by At

$$f(x)=\begin{cases} 0 & |x|\leq \frac{\pi}{2}\\ 3 & \frac{\pi}{2}<|x|\leq \pi \end{cases}$$

enter image description here Maybe someone can help me? Thanks in advance!

1

There are 1 best solutions below

0
On BEST ANSWER

Your graph is correct though I think it's good to highlight what value is taken when $|x|=\frac{\pi}2$.

However, what you wrote at the side is not correct.

$$\frac{\pi}{2}<|x|\le \pi$$

consists of two regions, $-\pi \le x < -\frac{\pi}2$ and $\frac{\pi}2 < x \le \pi$.