plot Piecewise[{ { x + 2pi, x < -pi }, {x, -pi < x < pi }, {x - 2pi, pi < x < 2pi} }] from -2pi to 2pi