In this paper we reanalyze the Magnus formula for the time evolution o
perator in quantum mechanics from an algorithmic point of view. We giv
e some rules to obtain the general term in the expansion as a compact
time-ordered integral. These rules are easily applied to higher orders
; in particular, we give explicitly the fifth order. (C) 1997 American
Institute of Physics.