Plot[Sum[((1/(n^2*pi))*Sin[n*pi/2]-(1/(2*n))*Cos[(n*pi/2)])*Sin[n*x],{n,1,100}],{x,-3*pi,pi}]