Special cases of a matrix exponential formula