I have been given a time-dependent Hamiltonian $H = \eta$ cos $\omega t$ $\begin{pmatrix} 0 & 1 \\ 1 & 0 \\ \end{pmatrix}$ and asked to calculate explicitly in matrix form the time-evolution operator $U(0, t)$ associated to $H$.
I am completely stuck on how to do this. Do I use $U(0,t) = e^\frac{-iHt}{\hbar}$ ? Although I believe this only holds if H is time-independent.
And if so, how do I write this explicitly in matrix form?
Thanks for any help!