How do you write an equation of the cosine function with the given amplitude = 3, period = pi, phase shift = –3/4pi, vertical shift = –3?