Fig. 4 shows the curve \(y = f(x)\), where
$$f(x) = a + \cos bx, \quad 0 \leq x \leq 2\pi,$$
and \(a\) and \(b\) are positive constants. The curve has stationary points at \((0, 3)\) and \((2\pi, 1)\).
\includegraphics{figure_4}
- Find \(a\) and \(b\). [2]
- Find \(f^{-1}(x)\), and state its domain and range. [5]