In the mechanics textbook by Kleppner and Kolenkow, the concept of potential energy is introduced by considering the behaviour of particle under the action of a force $\vec{F}(\vec{r})$ that depends on its position. To the best of my understanding, the potential energy is defined as follows:
Given a conservative force $\vec{F}(\vec{r})$, a function $U:\mathbb{R^3}\to\mathbb{R}$ defined by $U(\vec{r})-U(\vec{r_0})=\int_{\vec{r}_0}^{\vec{r}}\vec{F}_c\cdot d\vec{r}$ is called a potential energy function of $\vec{F}$
The textbook then goes on to give the expressions of various force laws such as $\vec{F}(r)=\frac{A}{r^2}\hat{r}$.
My confusion arises from when I try to extend this definition to a system consisting of multiple particles, and the interaction force(s) are a function of the postitions of both particles, say the gravitational interaction given by $$\vec{F}_{12}=-\frac{Gm_1m_2}{|\vec{r_1}-\vec{r_2}|}\hat{r}_{12}\qquad \vec{F}_{21}=-\frac{Gm_1m_2}{|\vec{r_1}-\vec{r_2}|}\hat{r}_{21}$$
In this case,
- Is there a separate potential energy associated with each of the interaction pairs or are they considered as one when defining the potential energy function?
- What does it mean for such a force (or a pair of forces) to be conservative? Should the work done be function of the initial and final positions of both particles or their relative initial and final positions?
- How is the potential energy function defined and what is it a function of?