I need to solve the following:
$$ \sum_{i,c,d} x_{i,a} x_{i,b} x_{i,c} x_{i,d} W_{c,d} = \sum_{i} x_{i,a} x_{i,b} y_{i} $$
for known x and y, and W is symmetric. It is safe to assume that the elements of x and y are completely random.
If I define
$$ A_{a,b,c,d} = \sum_{i} x_{i,a} x_{i,b} x_{i,c} x_{i,d} $$
$$ B_{c,d} = \sum_{i} x_{i,a} x_{i,b} y_{i} $$
and create auxiliary matrices
$$ W'_{M*a+b} = W_{a,b} $$
$$ A'_{M*a+b,M*c+d} = A_{a,b,c,d} $$
and
$$ B'_{M*c+d} = B_{c,d} $$
I get the equation of the form
$$ \sum_{j} A'_{ij} W'_{j} = B'_{j} $$
which suggests one can solve using
$$ W'_i = A'^{-1}_{ij} B'_j $$
and converting back to the original W matrix. The issue arrises as A' is never invertable (for some reason?). Is there some symmetry of A' which means that it has 0 determinant, and can this be solved by removing the symmetric parts of A' to get A'' which has lower dimensionality? Supposing that M = 6, there are 126 unique elements of A and 21 of B and W. Is there a simple way of converting to different auxiliary matrices which have none of the degeneracy caused by the symmetry in the definitions of A and B?
Intuitively, there are 21 (6+5+4+3+2+1) unique equations and 21 uniquely determined variables so there should be a way to lift the degeneracy as the problem is exactly determined.