The inverse of the function $f(x)=3x+4$ is

If $\frac{\pi }{2}\le \theta \le 2\pi $, Find the maximum value of $f(\theta )=\frac{4}{6+2\cos \theta }$