For a given function The derivative is the matrix: