I have a very basic question that is confusing me even though I keep turning it over in my head, that I've come across in trying to convert a Hamiltonian into a form which uses normal modes of oscillation. I took Linear Algebra last semester so I know that this equation should be convertible to matrix form, I'm just stumped as to how exactly I can do that; the equation I have is this:
$$ A(x_1 + x_2 + x_3 + x_4) + B(x_1 - x_2 + x_3 - x_4) + C(x_1 + x_2 - x_3 - x_4) + D(x_1 - x_2 - x_3 + x_4) = -2x_1 - 2x_4$$ as well as $$ x_1( A + B + C + D + 2) + x_2(A - B + C - D) + x_3(A + B - C - D) + x_4(A - B - C + D + 2)=0$$
Now, I've converted this into a matrix of the form $$ \begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & -1 & 1 & -1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & -1 & 1 \\ \end{pmatrix} \begin{pmatrix} A \\ B \\ C \\ D \\ \end{pmatrix} = \begin{pmatrix} 2 \\ 0 \\ 0 \\ 2 \end{pmatrix} $$
with the goal being to solve for an appropriate A,B,C, and D. I figured that in order to do this, I would just have to solve the matrix here, but I'm skeptical that this will return a correct answer, given that the 2's are connected with $x_1$ and $x_4$ and I'm not particularly certain if I constructed this matrix correctly. Any advice is of course, greatly appreciated.
As a final note, I already took a look at the questions Converting Single Equation To A System Of Equations and How would I find a non-zero matrix that fits the following equation? which don't seem to have the answer I'm looking for. I specifically do not really know if I've constructed this system correctly from this single equation, or if that is really even possible based on what I've been given (although I am fairly certain that it is). Many thanks
Edit: if there is some mathematical nuanace here that I am missing as well, I would greatly appreciate any explanation