5
$\begingroup$

If A is a not diagonal but symetric matrix and diag() is a function such that returns the diagonal, i.e. diag(A) is a matrix of zeros except on the diagonal. Im interested in the derivative of vec(diag(A)) with respect to x where A is a function of the vector x. So, how do I do This in the best way?

Thanks in advance!

  • 2
    You should clarify what "A is a function of the vector x" means. Some funcion in $p$articular? Each component of the matrix is an indepent function of x?2012-12-13

1 Answers 1

6

The derivative of the $(i,i)$ entry of $\text{diag}(A)$ is the same as the derivative of the $(i,i)$ entry of $A$. The derivative of the $(i,j)$ entry of $\text{diag}(A)$ for $i \ne j$ is $0$.

  • 3
    Of course. The derivatives are element-wise operations.2013-01-09