I am trying to calculate the derivative of an energy function with respect to a vector $\mathbf{x}$. The energy is given by:

$\psi(\mathbf{F}) = \lVert\mathbf{F}-\mathbf{I}\rVert\_F^2.$

Where $\mathbf{F}$ is a square matrix that is a function of $\mathbf{x}$ (a column vector):

$\mathbf{F(x)} = (\mathbf{x}\cdot\mathbf{u^T})\mathbf{A}$

$\mathbf{u^T}$ is a constant row vector and $\mathbf{A}$ is a constant square matrix. The goal is to find $\frac{\partial\psi}{\partial\mathbf{x}}$.

[Petersen 06] gives the derivative of a Frobenius norm as $\frac{\partial\lVert\mathbf{X}\rVert\_F^2}{\mathbf{X}} = 2\mathbf{X}$, but I am unsure how to extend it to this case (presumably using the chain rule somehow). 

I would like to learn how to perform this type of differentiation in general, either using the differentials method, or some other approach so references (text books, papers) are welcome. If it's possible to do it without introducing higher order tensors then even better.