How do you write an equation of the cosine function with the given amplitude 2, period pi, and phase shift pi/4?