Step 1: Understanding the Concept:
Each inverse trigonometric function has a fixed principal range. We must give the value inside that range. For \(\tan^{-1}\) the range is \((-\frac{\pi}{2}, \frac{\pi}{2})\). For \(\sec^{-1}\) the range is \([0, \pi]\) leaving out \(\frac{\pi}{2}\).
Step 2: Find \(\tan^{-1}(\sqrt{3})\).
We need an angle in \((-\frac{\pi}{2}, \frac{\pi}{2})\) whose tangent is \(\sqrt{3}\). We know \(\tan\frac{\pi}{3} = \sqrt{3}\), and \(\frac{\pi}{3}\) lies in the range.
\[ \tan^{-1}(\sqrt{3}) = \frac{\pi}{3} \]
Step 3: Find \(\sec^{-1}(-2)\).
Let \(\sec^{-1}(-2) = \theta\), with \(\theta\) in \([0, \pi]\). Then \(\sec\theta = -2\), so \(\cos\theta = -\frac{1}{2}\).
Cosine is negative only in the second quadrant here, and \(\cos\frac{2\pi}{3} = -\frac{1}{2}\).
\[ \sec^{-1}(-2) = \frac{2\pi}{3} \]
Step 4: Subtract.
\[ \tan^{-1}(\sqrt{3}) - \sec^{-1}(-2) = \frac{\pi}{3} - \frac{2\pi}{3} = -\frac{\pi}{3} \]
Final Answer:
The value of the expression is \(-\frac{\pi}{3}\).
\[ \boxed{-\frac{\pi}{3}} \]