Elementary matrices and some applications to dynamics and differential equations,