Matrices and differential calculus