I'm trying to compute the derivative of $\text{trace}(U^T x y^T V)$ with respect to $x$, where $U \in \mathbb{R}^{d_x \times k}$, $V \in \mathbb{R}^{d_y \times k}$, $x \in \mathbb{R}^{d_x}$, and $y \in \mathbb{R}^{d_y}$.
I have so far computed the derivative regarding $U$ and $V$, which are:
$$\frac{\partial \text{trace}(U^T x y^T V)}{\partial U} = x y^T V$$ $$\frac{\partial \text{trace}(U^T x y^T V)}{\partial V} = y x^T U$$
For this other derivative, I tried to use rule 101 from Matrix Cookbook, but the shapes aren't matching.
$$\frac{\partial \text{trace}(U^T x y^T V)}{\partial U} = V^T y U$$
whose shapes are $(k \times d_y) (d_y \times 1) (d_x \times k)$.
Wolfram|Alpha gave me $V U^T y^T \cdot \text{trace}(V x U^T y^T)$, in which if I pick the first term, shapes are correct, $(d_y \times k) (k \times d_x) (d_x \times 1)$.
What am I doing wrong?