Let $F(X)=XX^\top$ where $X$ is a $n \times m$ matrix. What is $\frac{\partial F(X)}{\partial X}$ ?
$$ \begin{align} \frac{\partial F(X)}{\partial X}=\lim_{h \to 0}\frac{F(X+hZ)-F(X)}{hZ} & = \lim_{h \to 0}\frac{XX^\top + hXZ^\top +hZX^\top + h^2ZZ^\top - XX^\top}{hZ} \\ & = \lim_{h \to 0}\frac{hXZ^\top+hZX^\top+h^2ZZ^\top}{hZ} \\ \end{align} $$ Observe that $\lim_{h \to 0}\frac{h^2ZZ^\top}{hZ} = 0$. $$ \lim_{h \to 0}\frac{F(X+hZ)-F(X)}{hZ} = \lim_{h \to 0}\frac{hXZ^\top+hZX^\top}{hZ} = \frac{XZ^\top+ZX^\top}{Z} $$ Now, by convention, let's say that $\frac F X = \frac{vec(F)}{vec(X)^\top}$ and $\frac{vec(X)}{vec(X)^\top}=I \otimes I$.
So we have : $$ \begin{align} \frac{XZ^\top+ZX^\top}{Z} & = \frac{(I \otimes X)vec(Z^\top)+(X \otimes I)vec(Z)}{vec(Z)^\top} \\ & = \frac{\left[(I\otimes X)(I\boxtimes I) + (X\otimes I)\right]vec(Z)}{vec(Z)^\top} \\ \frac{\partial F(X)}{\partial X}& = I \boxtimes X + X \otimes I \end{align} $$
Is it correct ?