Let $A$ a $n \times 1 $ vector. What is the derivative of $ vec(AA^T) $ w.r.t. $A$?
Update: I started from $vec(AA^T) = vec(I_n A A^T I_N) = (A \otimes I_N) vec(A) = vec(I_N \otimes A) vec(A^T)$.
Applying the chain rule, the derivative w.r.t $vec(A)$ equals $(A \otimes I_N) + vec(I_N \otimes A) T$, where $T$ is an operator such that $vec(A^T) = T vec(A)$.
However, what I want is the derivative w.r.t. $A$, not $vec(A)$. The problem appears kind of trivial, but I cannot wrap my head around it.
$\newcommand\R{\mathbb R}$If you consider the map \begin{align*} m \colon \R^{n} &\longrightarrow \R^{n\times n}, \\ \mathbf v &\longmapsto \mathbf v\mathbf v^T, \end{align*} its total derivative at $\mathbf v$ is the linear map \begin{align*} \mathrm D_{\mathbf v} m \colon \R^{n} &\longrightarrow \R^{n\times n}, \\ \mathbf z &\longmapsto \mathbf v\mathbf z^T + \mathbf z\mathbf v^T. \end{align*} Vectorizing this result you have the map $\widetilde m\colon \R^{n}\to \R^{n^2}$ sending $\mathbf v$ to $\operatorname{vec}(\mathbf v\mathbf v^T)$ and its total derivative at $\mathbf v$ is given by
$$ \mathbf z \longmapsto \operatorname{vec}(\mathbf v\mathbf z^T + \mathbf z\mathbf v^T). $$
Informally speaking, when $\mathbf x = \operatorname{vec}(\mathbf v\mathbf v^T)$, you have $$ \mathrm d\mathbf x = \operatorname{vec}\Big(\mathbf v (\mathrm d \mathbf v)^T + (\mathrm d \mathbf v) \mathbf v^T\Big). $$ Using Kronecker products you might write $\operatorname{vec}(\mathbf v\mathbf w^T)$ as $\mathbf v\otimes \mathbf w$ so that $\mathbf x = \mathbf v\otimes \mathbf v$ and $$ \mathrm d\mathbf x = \mathbf v\otimes \mathrm d\mathbf v + \mathrm d \mathbf v \otimes \mathbf v. $$