Determinant Trace Formula for Matrix Exponentials