You looking at the envelope of a sinusoidal waveform. So treat cos(8x) and sin(8x) as basis functions and find the envelope by taking the magnitude of the overall expression.

You have

The envelope is given by

You wish to show this envelope satisfies your original inequality. See if you can work it now.