Lie algebra decompositions with applications to quantum dynamics