Problem
I would like to compute the derivatives with respect to $U$ and $V$ of this function $$ f(U, V) = \|Y - XUV^\top\|_F^2 + \lambda\|UV^\top\|_F^2. $$
Notation
Let $Y\in\mathbb{R}^{n\times q}$, $X\in\mathbb{R}^{n\times p}$, $U\in\mathbb{R}^{p\times d}$, $V\in\mathbb{R}^{q\times d}$ and $\lambda > 0$.
Attempted Solution for $U$
Using the matrix cookbook I get for the first term $$ \begin{align} \nabla_U \|Y - XUV^\top||_F^2 &= \nabla_U \text{Tr}((Y - XUV^\top)^\top(Y-XUV^\top)) \\ &= \text{Tr}(Y^\top Y -Y^\top XUV^\top - VU^\top X^\top Y - V U^\top X^\top X U V^\top) \\ &= -2X^\top Y V + \nabla_U\text{Tr}(VU^\top X^\top X UV^\top) \\ &= -2X^\top Y V + 2 X^\top X U V^\top V \end{align} $$ Using equations 101, 102 and 116 of the Matrix Cookbook. Using again equation 116 for the second term we have $$ \nabla_U \lambda \|UV^\top\|_F^2 = \lambda \nabla_U \text{Tr}(VU^\top U V^\top) = 2\lambda U V^\top V $$ so overall we have $$ \nabla_U f(U, V) = -2X^\top Y V + 2 X^\top X U V^\top V + 2\lambda U V^\top V $$
A useful computer algebra tool for these kinds of problems is www.matrixcalculus.org.
Simply enter
norm2(Y-X*U*V')^2 + c*norm2(U*V')^2and you get:$$\begin{aligned} \text{(I)}&&\frac{\partial}{\partial U} \left( \|Y-X U V^\top \|_2^{2}+c \|U V^\top \|_2^{2} \right) &= 2 c U V^\top V-2 X^\top \cdot (Y-X U V^\top ) V \\ \text{(II)}&& \frac{\partial}{\partial V} \left( \|Y-X U V^\top \|_2^{2}+c \|U V^\top \|_2^{2} \right) &= 2 c V U^\top U-2 (Y^\top -V U^\top X^\top ) X U \end{aligned}$$
Now, if you want to derive this stuff by hand, two simple rules you can remember are:
$$\begin{aligned} \frac{∂ \frac{1}{2}\|AXB^⊤\|^2}{∂X} &= \frac{∂ \frac{1}{2}\|(A⊗B)⋅X\|^2}{∂X} \\&= (A⊗B)^⊤(A⊗B)⋅X \\&= (A^⊤⊗B^⊤)(A⊗B)⋅X \\&= (A^⊤A⊗B^⊤B)⋅X \\&= A^⊤A X B^⊤B \end{aligned}$$
So for instance we get
$$\begin{aligned} \frac{∂½\|Y-X U V^⊤ \|^2}{∂V} &=\frac{∂½\|Y-X U V^⊤ \|^2}{∂V^\top}\frac{∂V^⊤}{∂V} \\&=\frac{∂½\|(X U⊗)⋅ V^⊤\|^2}{∂V^\top}\frac{∂V^⊤}{∂V} \\&=(X U⊗)^⊤((X U⊗)⋅V^⊤-Y)⋅ \\&=\big((U^⊤X^⊤XU⊗)V^⊤ - (U^⊤X^⊤⊗)Y\big)⋅ \\&=(U^⊤X^⊤XUV -U^⊤X^⊤Y) ⋅ \\&=VU^⊤X^⊤XU - Y^⊤ XU \end{aligned}$$
Which you will recognize as the second term in (II). Here, $$ is the so-called transpose tensor which satisfies $⋅X = X^⊤$.