Question: How to plot a periodic function?

How to plot f(x)=x in the interval -2<x<2 with a period 4?

The plot should look like this

Please Wait...