I am trying to calculate the following derivative, involving $X$ and $Y$ matrices:
$$ \frac{\partial}{\partial X}X^TY^TYX $$
I have tried something similar to the approach in Vector derivation of $x^Tx$
and end up with something like:
$$ X^TY^TYX + \mathbf{X^TY^TYZ + Z^TY^TYX + Z^TY^TYZ} $$
I don't really know if I can consider $Z=I$ as in the link above.
Is there an easy way of calculating this derivative?
Something easier than calculating the per-entry derivative of the final matrix and reconstruct it using matrix operations.