HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Orbital Energy, Escape and the Two-Body Problem
  1. 1Orbital energy and the vis-viva equation
  2. 2Escape speed and open orbits
  3. 3The two-body problem and the barycentre
  1. Space Science and Astronomy
  2. /Orbital Energy, Escape and the Two-Body Problem
  3. /The two-body problem and the barycentre

Course 3.2·Lesson 3 of 3

The two-body problem and the barycentre

Two bodies pull on each other with equal forces, so both move round their common centre of mass, the barycentre. Their relative orbit obeys Kepler's laws with the total mass m1+m2m_1 + m_2m1​+m2​

Lesson 3 of 3Show all lessonsHide
Orbital Energy, Escape and the Two-Body Problem
  1. 1Orbital energy and the vis-viva equation
  2. 2Escape speed and open orbits
  3. 3The two-body problem and the barycentre

Try the code and the simulations beside the lesson.

Who goes round whom?

We say the Earth goes round the Sun. But the Earth pulls on the Sun with a force just as large as the Sun's pull on the Earth. So the Sun moves too. It moves very little, because it is heavy. For two stars of similar mass, both move a lot.

The centre of mass

Two stars on circular orbits round a cross that marks their common centre of mass. The heavier star, drawn larger, moves on the small inner circle. The lighter star moves on the large outer circle, on the opposite side of the cross. A straight line through the cross joins the two stars. The distances r1 and r2 from the cross to each star are marked, with r1 times m1 equal to r2 times m2.

Take two bodies, m1m_1m1​ and m2m_2m2​, a distance rrr apart. No outside force acts on the pair, so their centre of mass moves at a steady velocity. We can take it at rest. Astronomers call it the barycentre. The bodies sit on opposite sides of it, at

r1=m2m1+m2 r,r2=m1m1+m2 r\displaystyle r_1 = \dfrac{m_2}{m_1 + m_2}\,r, \quad r_2 = \dfrac{m_1}{m_1 + m_2}\,rr1​=m1​+m2​m2​​r,r2​=m1​+m2​m1​​r

so that m1r1=m2r2m_1 r_1 = m_2 r_2m1​r1​=m2​r2​. Their momenta are equal and opposite, so their speeds obey m1v1=m2v2m_1 v_1 = m_2 v_2m1​v1​=m2​v2​. The heavier body moves slower, on the smaller orbit.

The relative orbit

Write r⃗=r⃗2−r⃗1\vec{r} = \vec{r}_2 - \vec{r}_1r=r2​−r1​ for the position of body 2 seen from body 1. Each body's acceleration comes from the other's pull. Subtract the two equations of motion:

r⃗¨=−G(m1+m2)r3 r⃗\displaystyle \ddot{\vec{r}} = -\dfrac{G(m_1 + m_2)}{r^3}\,\vec{r}r¨=−r3G(m1​+m2​)​r

This is the motion of one body round a fixed mass m1+m2m_1 + m_2m1​+m2​. So the relative orbit is an ellipse with semi-major axis aaa, and

T2=4π2a3G(m1+m2)\displaystyle T^2 = \dfrac{4\pi^2a^3}{G(m_1 + m_2)}T2=G(m1​+m2​)4π2a3​

This is where the total mass in the third law comes from. Each body moves on its own ellipse round the barycentre, with the same period and the same eee, but with the sizes a1=a m2/(m1+m2)a_1 = a\,m_2/(m_1 + m_2)a1​=am2​/(m1​+m2​) and a2=a m1/(m1+m2)a_2 = a\,m_1/(m_1 + m_2)a2​=am1​/(m1​+m2​).

The energy of the pair is E=−Gm1m2/(2a)E = -Gm_1m_2/(2a)E=−Gm1​m2​/(2a). Physicists write the problem with the reduced mass μ=m1m2/(m1+m2)\mu = m_1m_2/(m_1 + m_2)μ=m1​m2​/(m1​+m2​), which moves round the total mass like a single planet.

Worked example: the Earth and the Moon

The Moon has 1/81.31/81.31/81.3 of the Earth's mass and is 384 400 km384\,400\ \text{km}384400 km away on average. Where is their barycentre, and how fast does the Earth go round it?

  1. The distance. r1=384 400 km×m2/(m1+m2)r_1 = 384\,400\ \text{km} \times m_2/(m_1 + m_2)r1​=384400 km×m2​/(m1​+m2​). Here m2/(m1+m2)=0.012145m_2/(m_1 + m_2) = 0.012145m2​/(m1​+m2​)=0.012145, so r1=4668 kmr_1 = 4668\ \text{km}r1​=4668 km from the Earth's centre.
  2. Inside or outside? The Earth's radius is 6371 km6371\ \text{km}6371 km, so the barycentre is inside the Earth, about 1700 km1700\ \text{km}1700 km below the surface.
  3. The Earth's speed. In one sidereal month of 27.3227.3227.32 days the Earth's centre goes round a circle of radius 4668 km4668\ \text{km}4668 km. So v=2π×4.668×106 m/(27.32×86400 s)=12.4 m/sv = 2\pi \times 4.668 \times 10^6\ \text{m}/(27.32 \times 86400\ \text{s}) = 12.4\ \text{m/s}v=2π×4.668×106 m/(27.32×86400 s)=12.4 m/s.
  4. Check. m1v1=m2v2m_1v_1 = m_2v_2m1​v1​=m2​v2​: the Moon moves about 81.3×12.4 m/s=1.01 km/s81.3 \times 12.4\ \text{m/s} = 1.01\ \text{km/s}81.3×12.4 m/s=1.01 km/s, which is its known orbital speed.

The Sun's wobble

Jupiter has 1/10481/10481/1048 of the Sun's mass and is 5.203 AU5.203\ \text{AU}5.203 AU away. Their barycentre is 7.42×105 km7.42 \times 10^5\ \text{km}7.42×105 km from the Sun's centre, just outside the Sun's surface at 1.071.071.07 solar radii. The Sun goes round it every 11.8611.8611.86 years at about 12.5 m/s12.5\ \text{m/s}12.5 m/s. Astronomers measure such wobbles in the light of other stars, by the Doppler shift, to find planets. A later chapter of this book does it in full.

Set the masses equal. Where is the barycentre? Then make star 2 as light as possible. How fast does star 1 move now?

Practise with new numbers

Try it in Python

The program finds the barycentre of the Sun with each giant planet, and the Sun's speed round it.

Predict first. Which planet pulls the barycentre outside the Sun? Then run it. Check with Show the answer.

1. Add the Earth, with mass 5.972e24 kg at 1.000 AU and a period of 1.000 years.

2. Which planet makes the Sun move fastest, and why is it not the farthest one?

Common mistakes

  • Putting the barycentre at the heavier body's centre. It is between the bodies, at r m2/(m1+m2)r\,m_2/(m_1 + m_2)rm2​/(m1​+m2​) from body 1.
  • Using one body's distance from the barycentre as aaa in the third law. The law needs the separation a=a1+a2a = a_1 + a_2a=a1​+a2​.
  • Forgetting the total mass. For two stars, MMM in the third law is m1+m2m_1 + m_2m1​+m2​.
  • Thinking the lighter body has the larger momentum. The momenta are equal; the lighter body has the larger speed.

Remember these

  • m1r1=m2r2m_1 r_1 = m_2 r_2m1​r1​=m2​r2​ and m1v1=m2v2m_1 v_1 = m_2 v_2m1​v1​=m2​v2​.
  • The relative orbit obeys T2=4π2a3/(G(m1+m2))T^2 = 4\pi^2a^3/(G(m_1 + m_2))T2=4π2a3/(G(m1​+m2​)).
  • Both bodies have the same period and the same eee.
  • The Sun–Jupiter barycentre is just outside the Sun.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Two stars of 333 and 111 solar masses are 8 AU8\ \text{AU}8 AU apart. How far is each from the barycentre?
  1. What is their period?
  1. The heavier star moves at 15 km/s15\ \text{km/s}15 km/s. How fast does the lighter one move?
  1. Can a planet's barycentre with its star lie outside the star? What does it need?

References

  • OpenStax Astronomy 2e, Chapter 18 The Stars: A Celestial Census, section 18.2 Measuring Stellar Masses.
  • A. E. Roy, Orbital Motion (4th edition, Institute of Physics Publishing), Chapter 4, The two-body problem.

Enroll free in Orbital Energy, Escape and the Two-Body Problem

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

The New Horizons probe flew past Pluto in 2015…Hard · High School (11–12) · by StemPy Lab
Astronomers on a planet round a star 10.0 pc away study our Sun…Advanced · High School (11–12) · by StemPy Lab
Through a telescope, a nearby double star shows two stars that go round each other every 48.0 years…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Orbital Energy, Escape and the Two-Body Problem
← Escape speed and open orbitsNext →

Discussion (0)

Log in to join the discussion.

Loading…

. The Sun itself wobbles round the barycentre it shares with Jupiter.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Question Sets (1)

Orbital Energy and Escape: Think It Through10 questions · by StemPy Lab

Notes (1)

Orbital Energy, Escape and the Two-Body Problem: Quick RevisionNote · by StemPy Lab