How Do You Describe the Motion of Two Bodies Relative to Their Center of Mass?

  • Context: Graduate 
  • Thread starter Thread starter pc2-brazil
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the two-body problem in classical mechanics, specifically how to describe the motion of two bodies, m and M, relative to their center of mass. The equations governing their motion are derived from gravitational interactions, with the relative motion described by the equation \ddot{\vec{r}}=-G\frac{(M+m)}{r^2}\hat{r}. When the masses are comparable, the center of mass must be considered, and the trajectory can still be described using the combined mass for barycentric solutions. The participants confirm that integrating the coupled system of differential equations is essential for accurate simulation of both bodies' movements.

PREREQUISITES
  • Understanding of the two-body problem in classical mechanics
  • Familiarity with gravitational equations and vector calculus
  • Knowledge of polar coordinates and conic sections
  • Basic principles of numerical simulations and differential equations
NEXT STEPS
  • Study the derivation of the two-body problem equations in classical mechanics
  • Learn about barycentric coordinates and their application in orbital mechanics
  • Explore numerical methods for solving coupled differential equations
  • Investigate the relationship between true anomaly and eccentric anomaly in orbital dynamics
USEFUL FOR

Students and professionals in physics, particularly those focused on mechanics and orbital dynamics, as well as software developers working on simulations of celestial mechanics.

pc2-brazil
Messages
198
Reaction score
3
Good morning,

First of all, a brief description of the two-body problem:
The general solution of the two-body problem is:
Consider a system of two bodies of mass m and M. There are no internal forces other than that of gravity, and there are no external forces acting on the system.
The position vectors of each body are, respectively, \vec{r}_m and \vec{r}_M, measured from an arbitrary inertial frame of reference.
The vector \vec{r}=\vec{r}_m-\vec{r}_M is the position of m with respect to M (a vector from M to m, pointing to m).
The gravitational accelerations of m and M are, respectively:
\ddot{\vec{r}}_m=-G\frac{M}{r^2}\hat{r}, where r=|\vec{r}| and \hat{r}=\frac{\vec{r}}{r} is a unit vector with the direction of \vec{r}, and the two dots above represent the second derivative with respect to time.
\ddot{\vec{r}}_M=G\frac{m}{r^2}\hat{r}
Subtracting the latter from the former:
\ddot{\vec{r}}_m-\ddot{\vec{r}}_M=-G\frac{M}{r^2}\hat{r}-G\frac{m}{r^2}\hat{r}
Therefore:
\ddot{\vec{r}}=-G\frac{(M+m)}{r^2}\hat{r},
which is the equation of relative motion of m with respect to M.
This leads to:
r=\frac{p}{1+e\cos{\nu}}, which describes a conic section (for example, an ellipse), where r is the distance from body m to body M - which is at one focus -, p is the semi-latus rectum, e is the eccentricity and \nu is the angle measured from the periapsis to the radius vector of body m.

Now, my question:
The equations above describe the trajectory of body m, but relative to body M (that is, a focus of the conic section). Here, M is the origin of this coordinate system.
If I were to describe the trajectory of body m with respect to the center of mass of the system, it would make no difference if I used the equations above, since, generally, the central body has a mass M much greater than m, therefore the motion of M with respect to the center of mass is negligible.
But what if m is comparable to M (and the center of mass is located outside of M)? In this case, the motion of M with respect to the center of mass wouldn't be negligible. How could I describe, then, the motion of m and M with respect to the center of mass? Can I still use the equation above, somehow?

Thank you in advance.
 
Astronomy news on Phys.org
Both original equations of motion reference a relative position vector that is a function of the absolute position vector of BOTH bodies. In other words, you have a coupled system of differential equations, which must be integrated simultaneously to generate a solution for each body.
 
Using the combined mass, G(M+m), is valid for a barycentric solution, even when the masses are comparable.
 
Filip Larsen said:
Using the combined mass, G(M+m), is valid for a barycentric solution, even when the masses are comparable.

Sure it is... and when you decompose the relative position vector into its constituents and substitute into the equations of motion given above, you'll find that the (M+m) factor remains. But you still have to integrate the coupled system to evolve the positions of both bodies in an inertial frame.
 
jscroft said:
But you still have to integrate the coupled system to evolve the positions of both bodies in an inertial frame.

I'm not really sure why you would say this. Having comparable masses is included in the normal solution of the two-body problem (as long as you use the sum of their masses as the mass).

Given that you have the polar equation for a conic section, like the last equation mentioned in the original post, complete with the relationship between true and eccentric anomaly if you need position as function of time, you can easily go from the planet-to-planet radius vector, r, to the barycentric radii, r1 and r2, from the definition of the center of mass (r = r1+r2 and r1m1-r2m2 = 0) to get

<br /> r_{1,2} = \frac{m_{2,1}}{m_1+m_2}r<br />

At least, that is how I understand the original question.
 
Thank you for the responses.

Filip Larsen said:
Given that you have the polar equation for a conic section, like the last equation mentioned in the original post, complete with the relationship between true and eccentric anomaly if you need position as function of time, you can easily go from the planet-to-planet radius vector, r, to the barycentric radii, r1 and r2, from the definition of the center of mass (r = r1+r2 and r1m1-r2m2 = 0) to get

<br /> r_{1,2} = \frac{m_{2,1}}{m_1+m_2}r<br />

At least, that is how I understand the original question.

That's what I thought.
If, for example, I was running a computer simulation and wanted to keep the center of mass fixed, could I use the procedure below, for example?
- Calculate the true anomaly as a function of time;
- Calculate the radius of m with respect to M using the polar equation;
- Calculate the coordinates of the center of mass with respect to M (which would be moving if M was fixed, since the frame of reference in M is non-inertial);
- Move the whole system in order to keep the center of mass always in the same position;
- Draw the two bodies.
If I used this procedure, I would see the correct movement of the two bodies along the center of mass, wouldn't I?
 
Last edited:
I made the explicit point because it appeared in the original post that the author had painted himself into a corner: by taking the (perfectly valid) step of combining the two equations of motion, he arrived at a solution for RELATIVE positions (one body with respect to another) when what he said he wanted were ABSOLUTE positions (both with respect to the inertial frame).

Your suggestion is perfectly valid, and actually answers his question more precisely, as he had specified the ORIGIN of his coordinate frame to be the barycenter of the system. So long as you want an analytical solution to a two-body problem, you're done. But I thought it might be useful for him to take a step back and see his problem within the larger context, where a useful solution depends on the ability to recognize a coupled system as such and the elliptical two-body solution as merely a special case.

Perhaps I muddied the water by attempting to clear up a confusion that never existed.
 
Well, what's a simulation?

When I run a simulation, I evolve a state vector from an initial condition through a progression of states according to a transformation expressed by a system of coupled differential equations. Simulations--particularly non-linear ones--are subject to an accumulation of integration error.

When you have an analytic solution like the one above, you can generate data for a million years with NO accumulation of error.

In a numerical simulation, I would calculate metrics like the distance between bodies as a function of my state values (position and velocity for each body). In an analytic solution, I can calculate all values directly as a function of time.

The bottom line is that it really doesn't matter HOW you represent your system, so long as whatever scheme you use is isomorphic with all the others. The scheme you outlined above will work just fine... aside from mathematical validity, the only criteria that matter are computational efficiency and representational convenience.
 
jscroft said:
Well, what's a simulation?

When I run a simulation, I evolve a state vector from an initial condition through a progression of states according to a transformation expressed by a system of coupled differential equations. Simulations--particularly non-linear ones--are subject to an accumulation of integration error.

When you have an analytic solution like the one above, you can generate data for a million years with NO accumulation of error.

In a numerical simulation, I would calculate metrics like the distance between bodies as a function of my state values (position and velocity for each body). In an analytic solution, I can calculate all values directly as a function of time.

The bottom line is that it really doesn't matter HOW you represent your system, so long as whatever scheme you use is isomorphic with all the others. The scheme you outlined above will work just fine... aside from mathematical validity, the only criteria that matter are computational efficiency and representational convenience.

Thank you for the clarification.
Very good, then, to know that this scheme is valid.
My knowledge of calculus is very limited, and I'm not very familiar with differential equations. But it would be very interesting to know how I would proceed in a solution with differential equations like you said.
 
  • #10
pc2-brazil said:
If, for example, I was running a computer simulation and wanted to keep the center of mass fixed, could I use the procedure below, for example?
- Calculate the true anomaly as a function of time;
- Calculate the radius of m with respect to M using the polar equation;
- Calculate the coordinates of the center of mass with respect to M (which would be moving if M was fixed, since the frame of reference in M is non-inertial);
- Move the whole system in order to keep the center of mass always in the same position;
- Draw the two bodies.
If I used this procedure, I would see the correct movement of the two bodies along the center of mass, wouldn't I?

Yes you would.

Alternatively, since the barycentric radii are fixed ratios of the planet-centric radius, you can calculate the barycentric positions directly using two corrected semi-latus rectum values p1 and p2 and the two "barycentric polar angle" \nu and \nu + \pi (as the two masses will always be on opposite side of the CM), for instance,

<br /> (x_1,y_1) = r_1 (\cos \nu, \sin \nu)<br />

and

<br /> (x_2,y_2) = r_2 (\cos(\nu+\pi), \sin(\nu+\pi)) = -r_2(\cos \nu, \sin \nu)<br />
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
Replies
3
Views
1K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K