The question I'm trying to understand is as follows: A linear time-invariant continuous-time system has the frequency response function $$H(\omega)=\frac{1}{j\omega+1} $$
Compute the output response $y(t)$ for $-\infty<t<\infty$ when the input $$x(t)=\cos(t),\quad -\infty<t<\infty$$
I know the answer, but I don't understand how to get there.
I know $H(\omega)=\frac{Y(\omega)}{X(\omega)}$, and from that $y(t)=h(t)*x(t)$. Taking the inverse Fourier transform of $H(\omega)$ I get $e^{-t}$. If I try to compute the convolution I just get a divergent integral. Is this wrong? The answer is supposedly $$y(t)=|H(1)|\cos(t+\angle H(1))$$ but this seems to come from nowhere. Can someone please explain?