Linear independence of another set of infinite functions

I don't think this set of functions are linearly independent. For example,

$$\cos x - \sin ^2 x\cos x - \cos^3 x = 0$$