I am stuck at solving the following derivative
$$\frac{d \mbox{vec} (X^T X)}{d \mbox{vec} (X)}$$
where $X$ is an $m \times n$ matrix and $\mbox{vec}$ is the vector/stack operator. I have tried using $\mbox{vec}$ product identities, but I get stuck at some step eventually.
Thanks