Cosine function reflection and y-intercept change