evaluate (int 1/pi*Piecewise[{{0,0<=x<pi/2},{sin(x),pi/2<=x<pi},{0,pi<=x<3*pi/2},{sin(x),3*pi/2<=x<2*pi}}]*sin(n*x) from x = 0 to 2*pi) for n = 1