Question

f(x)=\left\{\begin{array}{lr} 0, & -\pi<x<0 \\ \sin x, & 0 \leq x<\pi \end{array}\right.

Fig: 1