The graph shows two periodic functions \(f\) and \(g\) on \([-4, 4]\), where \(f(x)=\sin\left(\frac{\pi}{2}x\right)\).
a) Describe how a horizontal shift of the graph of \(f\) can produce the graph of \(g\). Give two equivalent shifts, one left and one right.
b) Write \(g\) in the form \(g(x)=\sin\left(\frac{\pi}{2}(x-d)\right)\) using the least positive shift \(d\).
c) Verify at \(x=0\) and \(x=1\) that \(k(x)=\cos\left(\frac{\pi}{2}x\right)\) has the same values as \(g\). Then use an angle-addition identity to show that the expressions are equivalent for every \(x\).

Hints
- Compare corresponding maximum points and zeros.
- Recall how left and right shifts appear inside a function.
- Determine the period of \(f(x)=\sin\left(\frac{\pi}{2}x\right)\).
- For the general verification, use periodicity first and then expand the shifted sine with the sine addition identity.
Solution
1. Comparing corresponding maximum points and zeros shows that \(g\) is obtained by shifting \(f\) left \(1\) unit. Since the period is \(4\), this is equivalent to shifting right \(3\) units.
2. The least positive right shift is \(d=3\), so \(g(x)=\sin\left(\frac{\pi}{2}(x-3)\right)\).
3. At \(x=0\), \(g(0)=\sin\left(-\frac{3\pi}{2}\right)=1\) and \(k(0)=\cos(0)=1\). At \(x=1\), \(g(1)=\sin(-\pi)=0\) and \(k(1)=\cos\left(\frac{\pi}{2}\right)=0\).
4. Let \(u=\frac{\pi}{2}x\). By periodicity, \(\sin\left(u-\frac{3\pi}{2}\right)=\sin\left(u+\frac{\pi}{2}\right)\).
5. Apply the sine addition identity: \(\sin\left(u+\frac{\pi}{2}\right)=\sin(u)\cos\left(\frac{\pi}{2}\right)+\cos(u)\sin\left(\frac{\pi}{2}\right)=\cos(u)\).
6. Therefore, \(g(x)=\cos\left(\frac{\pi}{2}x\right)\) for every \(x\).
Answer
a) Shift left \(1\) unit or right \(3\) units.
b) \(g(x)=\sin\left(\frac{\pi}{2}(x-3)\right)\), with \(d=3\)
c) The values agree at \(x=0\) and \(x=1\), and the angle-addition identity shows \(g(x)=\cos\left(\frac{\pi}{2}x\right)\) for all \(x\).