The function f(x) takes a numerical input x and produces a sinusoidal output within the domain of [-2, 2].
