I'm wondering if there is a smart way of solving the system of equations
$$\frac{d\vec{n}}{dt} = \gamma (\vec{n} \times \vec{B}(t)),$$
where $\vec{n}(t) = \big(x(t),y(t),z(t) \big)$ is the Bloch vector and $\vec{B}(t) = (B_1\cos\omega t, B_1 \sin \omega t, B_2)$ is the external magnetic field.
By smart I mean faster than just writing it down in matrix form and using methods for solving a system of homogeneous linear equations with variable coefficients. I'm looking for some sort of reference where such a solution is shown.