Comments
Instead of this method, we should expand it in terms of $ \cos(2t) =\frac{e^{2jt}+e^{-2jt}}{2}\, $, as we what will happen to a random signal other than the signal shown. It might produce a different random response. By expanding it we can be sure it's right