
William W. answered 01/20/22
Math and science made easy - learn from a retired engineer
The generic cosine function is:
where "A" is the amplitude, "B" defines the period where the period is 2π/B, "C" is the horizontal shift or phase shift, and "D" is the vertical shift or midline location.
We can just plug in A = 3, C = π/2 and D = 5 but we need to calculate "B". since the period is 2π/B then B = 2π/period so B = 2π/(4π) = 1/2
Notice that for the phase shift it is always opposite of the way it looks, so cos[1/2(x - π/2)] means it shifts RIGHT by π/2