(b)
Since, $- 1 \leq \cos{3x \leq 1}$
$\Rightarrow \ \ 1 \leq - \cos{3x\ \leq - 1}$
$\Rightarrow \ 3 \leq 2 - \cos{3x\ \leq 1}$
$\Rightarrow \ \frac{1}{3} \leq \frac{1}{2 - \cos{3x}} \leq 1$
$\therefore$ Range of $f$ is $\left\lbrack \frac{1}{3},\ 1 \right\rbrack$.