Respuesta :

Let me help you in this way: 
the range will have only three values.... -1, 0, and 1...
for: 0≤x<π2, y=0
x = π/2, y = 1
π/2<x<π, y=0
 Then what you need to do is to figure out the values for π<x<2π