
The equations of motion that describe the above situation is given by:
$$ m \ddot{x_1} = -2kx_1 + kx_2 $$
$$ m \ddot{x_2} = -2kx_2 + kx_1 $$
Now I want to work out the potential energy of this system. How would I use the equation:
$$ V(x) = - \int F(x) \hspace{.1cm} dx$$
to calculate the potential energy?
My attempt is to first calculate the integral for each coupled equation wrt each position:
$$ - \int (- 2kx_1 + + kx_2) \hspace{.1cm} dx_1= kx^{2}_1 - k x_1 x_2 + c$$ $$ - \int (- 2kx_2 + + kx_1) \hspace{.1cm} dx_2= kx^{2}_2 - k x_2 x_1 + d.$$
Now adding them together to get the total potential energy gives:
$$ V(x_1, x_2) = kx^{2}_1 + kx^{2}_2 + - 2 k x_1 x_2 + f.$$
The actual solution is given by:
$$ V(x_1, x_2) = kx^{2}_1 + kx^{2}_2 + - k x_1 x_2$$
Now I have inkling as to why my answer is wrong. When adding the potentials together to calculate the total potential I have double added the potential associated with the middle spring. However, mathematically how do I fix this issue to get the correct solution?