Let's suppose $f(x)=\tan^{-1}x$ and $g(x)=- \tan^{-1}\frac{x}{3}$
I know that the range of $f(x)$ is $$-\frac{\pi }{2} < \tan^{-1}x < \frac{\pi }{2}$$
and the range of $g(x)$ is the same. I used desmos to simulate the graph of $y$ and found that the range of it is $-\frac{\pi}{6}\leq y\leq\frac{\pi}{6}$ which means the maximum value is $\frac{\pi}{6}$. I don't quite understand how to get this value though. Any hints?