Let $\mathbb{S}_+^n$ denote the set of $n \times n$ symmetric positive definite matrices. Let scalar field $\varphi : \mathbb{S}_+^n \to \Bbb R$ be defined by
$$\varphi({\bf X}) := \sum_{i=1}^n \lambda_i({\bf X}) \log \lambda_i({\bf X})$$
where $\lambda_1({\bf X}), \ldots, \lambda_n({\bf X})$ are the eigenvalues of the matrix ${\bf X} \in \mathbb{S}_+^n$. What is the gradient of $\varphi$?
$ \def\P{P^{-1}} \def\PT{P^{-T}} \def\p{\partial} \def\l{\lambda} \def\v{\varphi} $The Matrix Cookbook contains a particularly simple rule for the gradient of the trace of a scalar function applied to a matrix argument $$\eqalign{ \v &= \operatorname{Tr}(f(X)) \quad\implies\quad \frac{\p\v}{\p X} &= \Big[f'(X)\Big]^T }$$ Consider the following function (and its derivative) $$f(z)=z\,\log(z),\qquad f'(z) = 1+\log(z)$$ If the eigenvalues of $X$ are $\l_k,$ then the eigenvalues of the matrix $f(X)$ are $f(\l_k)$
Expanding the trace of the proposed function yields $$\eqalign{ \operatorname{Tr}(f(X)) = \sum_k f(\l_k) = \sum_k \l_k\log(\l_k) \\ }$$ which is indeed the objective function.
Therefore the required gradient is $$\eqalign{ \frac{\p\v}{\p X} &= \Big[I+\log(X)\Big]^T \\ }$$