Solution :
Here, $$\left| {\cos x} \right| = {\sin ^{ - 1}}\left( {\sin x} \right).$$
If, $$ - \frac{\pi }{2} \leqslant x \leqslant \frac{\pi }{2}\,{\text{then}}\,\,\cos x = x.$$
In the case there is one solution, obtained graphically.

If, $$\frac{\pi }{2} < x \leqslant \pi $$ then $$ - \cos x = {\sin ^{ - 1}}\left\{ {\sin \left( {\pi - x} \right)} \right\} = \pi - x.$$
$$\therefore \,\,\cos x = x - \pi .$$
In this case there is one solution, obtained graphically.

If, $$ - \pi \leqslant x < - \frac{\pi }{2}$$ then $$ - \cos x = {\sin ^{ - 1}}\left\{ {\sin \left( { - \pi - x} \right)} \right\} = - x - \pi ,\,{\text{i}}{\text{.e}}{\text{.,}}\cos x = x + \pi .$$
This gives no solution as can be seen from their graphs.