Is there a closed-form solution r(t) regarding universal law of gravitation?

In summary, the conversation discusses using Newton's universal law of gravitation to set up a problem where a particle begins at t=0 at a given radius and radial velocity, with only a component of velocity in the radial direction. The resulting equation becomes a differential equation with no closed-form solution, but it can be solved numerically by determining the initial velocity at the given radius to be the negative of the escape velocity at that same radius. However, this solution only gives a function for velocity as a function of radius, and the desired function is one for radius as a function of time. The conversation then explores various methods for solving the differential equation, including using conservation of energy to derive an equation for velocity as a function of time, but ultimately
  • #1
JDoolin
Gold Member
723
9
Newton's universal law of gravitation:

[tex]F=-G \frac{m_1 m_2}{r^2}[/tex]

I'd like to set up the problem so the particle begins at t=0 at radius r=r0 and radial velocity vr=v0. And there is only a component of velocity, in the radial direction. (The particle is going straight toward the gravitating body)

The above equation becomes

[tex]F=m a_r= m_2 \frac{\mathrm{d}^2 r}{\mathrm{d} t^2}= G \frac{m_1 m_2}{r^2}[/tex]

And so the most simply I can give the differential equation is:

[tex]\left (\frac{\mathrm{d}^2 }{\mathrm{d} t^2} \right )r = -G \frac{ M}{r^2}[/tex]

Does this equation have a closed-form solution?

If not, is there a well-known technique of solving it numerically? Here is what I did numerically.

(1) determine r0 and v0.
(2) determine the acceleration at your current radius a=-GM/r^2
(3) choose a small Δt during which the acceleration is approximately constant.
(4) Find a final velocity by multiplying the acceleration times the Δt.
(5) Find the average velocity from (initial velocity + final velocity)/2
(6) Multiply average velocity by Δt to find Δr.
(7) Add Δt and Δr and Δv to your previous values of t, r, and v, and start over at step (2)

One particular set-up is to determine the initial velocity at r0 to be the negative of the escape velocity at that same r0. It stands to reason that if a particle is traveling at a speed equal and opposite to its escape velocity as it falls in, that conservation of energy will maintain this, so that the particle will fall in at its escape velocity the entire way.

I tried out this numerical method and the velocities calculated numerically did match the escape velocities pretty well. But this gives us a function v(r) when I am wanting a function r(t), and it also is a solution that requires a specific pre-defined initial radial velocity, where I would like a function where the initial velocity can be decided arbitrarily.

I appreciate any help anyone might think of. Thanks.
 
Physics news on Phys.org
  • #2
There's not really a nice closed form for r(t). You can get an expression for t(r), though, by multiplying

[tex]\ddot{r} = -GM\frac{1}{r^2}[/tex]

by [itex]\dot{r}[/itex] to get

[tex]\ddot{r}\dot{r} = -GM\frac{\dot{r}}{r^2}[/tex]

Then notice that [itex]\ddot{r}\dot{r} = (1/2) d(\dot{r}^2)/dt[/itex] and [itex]\dot{r}/r^2 = -d(1/r)/dt[/itex].

You can then integrate the equation once, and then you will be able to separate the resulting equation and integrate it, but the best you will be able to get is [itex]f(r(t)) = t[/itex] for some function f.
 
  • #3
Mute said:
There's not really a nice closed form for r(t). You can get an expression for t(r), though, by multiplying

[tex]\ddot{r} = -GM\frac{1}{r^2}[/tex]

by [itex]\dot{r}[/itex] to get

[tex]\ddot{r}\dot{r} = -GM\frac{\dot{r}}{r^2}[/tex]

Then notice that [itex]\ddot{r}\dot{r} = (1/2) d(\dot{r}^2)/dt[/itex] and [itex]\dot{r}/r^2 = -d(1/r)/dt[/itex].

You can then integrate the equation once, and then you will be able to separate the resulting equation and integrate it, but the best you will be able to get is [itex]f(r(t)) = t[/itex] for some function f.

Thank you.

That is helpful. From your replacements I derived:

[tex]\frac{1}{2} \left (v_f^2 - v_i^2 \right ) = G M\left ( \frac{1}{r_f}-\frac{1}{r_i} \right )[/tex]

This satisfies one of my criteria, because it is a solution that let's you set your initial location and velocity arbitrarily, and determines final velocity as a function of final location.

But was there something more you had in mind? Because I didn't come up with t as a function of r or t=f(r(t)). When I made the replacements you suggested, the dt's canceled out.
 
  • #4
JDoolin said:
Thank you.

That is helpful. From your replacements I derived:

[tex]\frac{1}{2} \left (v_f^2 - v_i^2 \right ) = G M\left ( \frac{1}{r_f}-\frac{1}{r_i} \right )[/tex]

You could also shortcut your way to this by using conservation of energy. Note that you have a minus sign error on the right hand side. It should be 1/r_0 - 1/r_f.

This satisfies one of my criteria, because it is a solution that let's you set your initial location and velocity arbitrarily, and determines final velocity as a function of final location.

But was there something more you had in mind? Because I didn't come up with t as a function of r or t=f(r(t)). When I made the replacements you suggested, the dt's canceled out.

The equation you derived, for arbitrary final time, is also

[tex]\frac{1}{2}(\dot{r}^2(t) - \dot{r}(0)) = GM\left(\frac{1}{r(0)} - \frac{1}{r(t)}\right)[/tex]

If you solve for [itex]\dot{r}(t)[/itex], you have another equation to solve that in principle get you r(t), but it looks like [itex]dr/dt = g(r)[/itex], for some function g(r), so when you solve it you get f(r(t)) = t, where f(r) is the integral of 1/g(r), and cannot really be inverted explicitly (in terms of elementary functions) to get [itex]r(t) = f^{-1}(t)[/itex].
 
  • #5
Mute said:
You could also shortcut your way to this by using conservation of energy. Note that you have a minus sign error on the right hand side. It should be 1/r_0 - 1/r_f.

I'm fairly certain the original sign is right. You want it so if the initial radius is larger than the smaller radius, you come out with a positive value for the change in velocity.
Also, the conservation of energy law is [tex]\Delta KE + \Delta PE = \Delta E_{non-cons}[/tex] where [tex]\begin{align*} PE&=-G\frac{m_1 m_2}{r} \\ KE &= \frac{1}{2}m v^2 \end{align*}[/tex]
( Potential Energy's zero point can be set wherever you want, but by common convention, it is set so PE->0 as r-> infinity)
(and of course the non-conserved energy in this case is zero)

In any case, the overall process seemed to be an elegant way to derive the conservation of energy law.

The equation you derived, for arbitrary final time, is also

[tex]\frac{1}{2}(\dot{r}^2(t) - \dot{r}(0)) = GM\left(\frac{1}{r(0)} - \frac{1}{r(t)}\right)[/tex]

If you solve for [itex]\dot{r}(t)[/itex], you have another equation to solve that in principle get you r(t), but it looks like [itex]dr/dt = g(r)[/itex], for some function g(r), so when you solve it you get f(r(t)) = t, where f(r) is the integral of 1/g(r), and cannot really be inverted explicitly (in terms of elementary functions) to get [itex]r(t) = f^{-1}(t)[/itex].

That's good. Once this is done, (and I decided to let the initial velocity be zero for simplicity) I have a differential equation of the form

[tex]\left ( \frac{dr}{dt} \right )^2-\frac{2 G M}{r}+\frac{G M}{r_0} =0[/tex][tex]\left ( \frac{dr}{dt} \right )^2-\frac{c_1}{r}+c_0=0[/tex]

I'm still not sure how to solve this thing, but that's one step closer; at least now it's just a first derivative.
 
Last edited:
  • #6
You take the square root and separate variables and obtain two solutions
 
  • #7
The central motion problem in a 1/r potential is solved in graduate texts on classical mechanics such as Goldstein. You can get a nice solution t(r) for t as a function of r.
 
  • #8
Who is more deeply interested in the problem should study the exact solution based on Kepler's famous transcendental equation. Compared with this, the present approach is a 'toy solution'. Comparing the poor physics textbook method with Kepler's method allows one to appreciate what genius in science means.
 
  • #9
eztum said:
Who is more deeply interested in the problem should study the exact solution based on Kepler's famous transcendental equation. [...]

Do you have a reference for this ? Book or freely available article.
 
  • #10
dextercioby said:
Do you have a reference for this ? Book or freely available article.
The Wikipedia article 'Kepler orbit' has this and much more. Notice that solving Kepler's equation solves the problem where on his orbit the planet is at a given instant of time. Solving this equation by some iteration scheme is easy and fast and the computational burden is independent of how many centuries the this point in time is in the future or in the past. So there is no fundamental difference to the situation that you express the planetary position by an explicit 'closed formula'. Solving it by a series expansion is the historical origin of the Bessel functions (Bessel was an astronomer). I just read Kepler's original text on the matter in a facsimile edition of selected works of Kepler. Really not easy to read (although his language, German, is mine).

Physics textbooks normally are content with deducing the geometry of the orbits (conic sections) from Newton's law and neglect the question how to find the position of the body on its orbit efficiently. Texts on Celestial Mechanics and Astronomy are better sources for this problem.
 
  • #11
JDoolin said:
If not, is there a well-known technique of solving it numerically? Here is what I did numerically.

(1) determine r0 and v0.
(2) determine the acceleration at your current radius a=-GM/r^2
(3) choose a small Δt during which the acceleration is approximately constant.
(4) Find a final velocity by multiplying the acceleration times the Δt.
(5) Find the average velocity from (initial velocity + final velocity)/2
(6) Multiply average velocity by Δt to find Δr.
(7) Add Δt and Δr and Δv to your previous values of t, r, and v, and start over at step (2)

You can considerably increase the power of such a numerical method by
following Verlet (actually the method is much older and is often associated with
Störmer, sometimes it is called explicit midpoint method)

Treat r (position) and v (velocity) as vectors (in 3-space, or 2-space).
(1) determine r0 and v0.
(2) determine the acceleration am at position rm = r0 + (Δt/2)v0
(3) find the final velocity vf = v0 + Δt am
(4) find the final position rf = rm + (Δt/2)vf
(5) restart the loop with r0 = rf and v0 = vf
 
Last edited:
  • #12
jackmell said:
You take the square root and separate variables and obtain two solutions

Ben Niehoff said:
The central motion problem in a 1/r potential is solved in graduate texts on classical mechanics such as Goldstein. You can get a nice solution t(r) for t as a function of r.

For completion:[tex]\begin{align*} \left ( \frac{dr}{dt} \right )^2&=\frac{c_1-c_0 r}{r} \\ \left ( \frac{dr}{dt} \right )&=\sqrt{\frac{c_1-c_0 r}{r}}\\ \frac{dt}{dr}&=\sqrt{\frac{r}{c_1-c_0 r}}\\ \int dt&=\int_{r_0}^{r_f}\sqrt{\frac{r}{c_1-c_0 r}}dr \end{align*}[/tex]

where c1=2 G M, c0 = G M /r0

The last line, evaluated via Mathematica was:[tex]\frac{\sqrt{\frac{r}{\text{c1}-\text{c0} r}} \left(\sqrt{\text{c0}} \sqrt{r} (\text{c0} r-\text{c1})+\text{c1} \sqrt{\text{c1}-\text{c0} r} \tan ^{-1}\left(\frac{\sqrt{\text{c0}} \sqrt{r}}{\sqrt{\text{c1}-\text{c0} r}}\right)\right)}{\text{c0}^{3/2} \sqrt{r}}[/tex]

A closed form, but not a pretty one.

Edit: Just a note about the domain of the arctan function.

[tex]\sqrt{\frac{c_0 r}{c_1-c_0 r}} = \sqrt{\frac{\frac{G M}{r_o}}{2 G M -\frac{G M}{r_o}r}}=\sqrt{\frac{r}{2 r_0 - r}}[/tex]

This will be real-valued so long as [itex]0<r<r_0[/itex]. That makes sense, because based on the assumption of v=0 when r=[itex]r_0[/itex], there would be no time such that [itex]r>r_0[/itex].

Also, you would get two times for each radius, a negative time on the way up, and a positive time on the way down, where t=0 would represent the time where the object reaches the apex.

Also, the form as I've given it isn't quite general, because by setting the velocity to zero at ANY given radius, I've left out all the particles that are traveling at speeds greater than the escape velocity.
 
Last edited:

1. What is a closed-form solution?

A closed-form solution is a mathematical expression that can be written using a finite number of well-known mathematical operations, such as addition, subtraction, multiplication, division, and exponential functions. It is a solution that can be expressed in a simple and concise form, making it easier to understand and work with.

2. What is r(t) in the context of universal law of gravitation?

In the context of universal law of gravitation, r(t) refers to the distance between two objects at a given time t. This is an important variable in the equation for calculating the force of gravitational attraction between two objects.

3. Is there a single closed-form solution for r(t) in the universal law of gravitation?

No, there is not a single closed-form solution for r(t) in the universal law of gravitation. The equation for r(t) is dependent on the mass of the two objects, the gravitational constant, and the initial distance between the objects, making it a complex equation that cannot be simplified into a single closed-form solution.

4. Why is it important to find a closed-form solution for r(t) in the universal law of gravitation?

Finding a closed-form solution for r(t) in the universal law of gravitation can help us better understand the behavior of objects in space and accurately predict their movements. It can also simplify calculations and allow for easier comparison between different scenarios.

5. Are there any approximations or numerical methods that can be used to find a solution for r(t) in the universal law of gravitation?

Yes, there are various numerical methods and approximations that can be used to find a solution for r(t) in the universal law of gravitation, such as the Euler method, the Runge-Kutta method, and the Taylor series method. These methods involve breaking down the equation into smaller, more manageable parts and using iterative calculations to find an approximate solution.

Similar threads

Replies
3
Views
1K
  • Differential Equations
Replies
1
Views
2K
  • Advanced Physics Homework Help
Replies
5
Views
1K
  • Differential Equations
Replies
3
Views
2K
  • Special and General Relativity
2
Replies
43
Views
2K
  • Special and General Relativity
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
8
Views
933
  • Introductory Physics Homework Help
Replies
6
Views
218
  • Mechanics
Replies
20
Views
907
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
2K
Back
Top