Solving Differential Equations Using Matrices