Generalized derivatives of eigenvalues of a symmetric matrix