f(x) = 3 sin(2x -pi/2) -1