Manipulate[Plot[x+Sum[2*(-1)^n/n/Pi*Sin[n*Pi*x],{n,1,m}],{x,-5,5}],{m,1,30}]