Vector And Matrix Differentiation Rules