Let $\mathbf{X} \in \mathbb{R}^{n \times m}$, $\mathbf{A} \in \mathbb{R}^{m \times n}$, $(.)^T$ denotes the transpose operator and $||.||_F$ is the matrix Frobenius norm
What is the value of $\frac{\partial ||\mathbf{X}^T -\mathbf{A} ||_F^2}{\partial \mathbf{X}}$ ?
Is it zero?
Please, any help?
Let $X$ and $A$ be two matrices of same dimensions, then $$\Vert X - A \Vert_F^2 = \text{trace}\big( X^T X - X^TA - A^TX + A^TA\big)$$ And using $$\frac{\partial}{\partial X} \text{trace} (X^TAX) = X^T(A + A^T)$$ and $$\frac{\partial}{\partial X} \text{trace} (X^TA) = A$$ we get $$\frac{\partial \Vert X - A \Vert^2}{\partial X} = 2X^T - A - A^T$$ You ask if it is zero. Let's equate it to zero, we get $$X = \frac{1}{2}(A + A^T)$$