To find \(\cos^{-1}\left(-\frac{\sqrt{3}}{2}\right)\), we need to determine the angle whose cosine is \(-\frac{\sqrt{3}}{2}\).
The cosine function is negative in the second quadrant and the third quadrant. The reference angle that gives a cosine of \(\frac{\sqrt{3}}{2}\) is \(\frac{\pi}{6}\). Therefore, the angles we need to consider where cosine is negative are:
-
Second quadrant: \[ \pi - \frac{\pi}{6} = \frac{5\pi}{6} \]
-
Third quadrant: \[ \pi + \frac{\pi}{6} = \frac{7\pi}{6} \]
However, since the range of the inverse cosine function \(\cos^{-1}(x)\) is defined from \(0\) to \(\pi\), we only take the second quadrant angle.
Thus, \(\cos^{-1}\left(-\frac{\sqrt{3}}{2}\right) = \frac{5\pi}{6}\).
So, the answer is: \[ \frac{5\pi}{6} \]