matrix representation of first set of ODEs