If $X$ is a square matrix, obtain the differential and the derivative of the functions:
- $f(X) = \operatorname{tr}(X)$,
- $f(X) = \operatorname{tr}(X^2)$,
- $f(X) = \operatorname{tr}(X^p)$ ($p$ is a natural number).
To find the differential I thought I could just find the differential of the compostion function first and then take the trace of that differential. Am I right in saying so? As for the derivative, I have no idea how I should do it for traces. Could anyone please help me out?
wj32's answer makes sense to me, however, I wonder if it is also possible to solve this question by using the ordinary way of finding differentials and derivatives, namely f(x+dx)-f(x). Is there someone who could maybe show me how this would be done (if possible)?