changed y to sin(2x)