To preface the question that I actually want an answer to, I've read the paper by Nicholas J. Higham that computes the square root of a matrix via the Newton's method. He utilises the function $F(X) = X^2 - A$, where X is the unknown matrix and A is the matrix whose root is being calculated. He then computes the Frechet derivative of this matrix (assuming the matrices belong to $C^{n * n}$). He does this simply by computing $F(X+H) = (X+H)^2 - A$, expanding the terms and then equating them to the Taylor series expansion upto second order accuracy of F(X+H), which is $$F(X+H) = X^2 - A + F^\prime(X).H + H^2$$ where H is a matrix of very small perturbations in order to compute the infinitesimal decrement in the value of $F(X)$. From the expansion of $F(X+H)$ he obtains that $F^\prime(X).H = X.H + H.X$. Now to my question.
I have a matrix equation which involves a mix of matrix products and Hadamard products in some of the terms. Say an equation of the form $$F(X) = X + (X.A)\odot X$$ I am allowed to do a Frechet derivative on this. If I perform an expansion as Higham did in his paper, I will have some terms in the Frechet derivative that will have the Hadamard product associated with them as properties will carry over. However, if I actually calculate the Frechet derivative as the Jacobian, I realise that the terms have become linearised and will not have this nonlinear mixed operator term. However, computing the Jacobian leads to a 4 dimensional tensor. I have no idea how this could be represented as any sort of matrix equation. Any help here would be appreciated. (For making things a bit simpler, in my case matrices contain only real numbers)