Construct a function f with limit as x -> 0^+ of = 1 and limit as x -> 0^- of = -1