The function f(x) is a square wave that oscillates between positive