Shifting and reflection of sine function