Modeling an Asteroid's Trajectory Towards the Sun Using Differential Equations

AI Thread Summary
The discussion focuses on modeling the trajectory of an asteroid falling towards the Sun using differential equations. The initial setup involves writing the differential equation based on Newton's second law, leading to the integration of velocity and position equations. Participants clarify the need for proper limits during integration and address the signs related to gravitational force. The conversation also touches on calculating the time it takes for the asteroid to reach Earth's orbit, with estimates suggesting a fall time of approximately 29 years, which is considered realistic given the initial conditions. Overall, the thread emphasizes the importance of careful mathematical treatment in solving the problem.
Crush1986
Messages
205
Reaction score
10

Homework Statement


An asteroid is knocked out of the Kuiper belt and starts to fall toward the sun. (Assume it's initial potential energy and kinetic energy is 0.)

a. Write down the differential equation for r(t) giving the position of the asteroid as a function of time.
b. Solve the differential equation for t(r), the time as a function of position

Homework Equations


F=\frac{GmM}{r^2}

The Attempt at a Solution


I wrote out what I think the differential equation is from the Newtons second law diagram.

\frac{dr^2}{dt^2}=\frac{GM}{r^2}

I think I can rewrite to second derivative of r with respect to time as velocity multiplied by the derivative of velocity with respect to r. Making my equation

v\frac{dv}{dr}=\frac{GM}{r^2}

I integrate this to get

\frac{v^2}{2}=\frac{-GM}{r}

I stopped here because I'm not sure if maybe I should do this integration with some limits? Like from R (my starting point) to r (current position). What should I make the limits for velocity? 0 to v?

More importantly, I'm very very new to differential equations. Is all this even remotely correct? I imagine that if I'm correct up to this point I can just solve for v and take one more derivative and I think I'll be very close to finished.

Any help is greatly appreciated!
 
Physics news on Phys.org
Crush1986 said:

Homework Statement


An asteroid is knocked out of the Kuiper belt and starts to fall toward the sun. (Assume it's initial potential energy and kinetic energy is 0.)

a. Write down the differential equation for r(t) giving the position of the asteroid as a function of time.
b. Solve the differential equation for t(r), the time as a function of position

Homework Equations


F=\frac{GmM}{r^2}

The Attempt at a Solution


I wrote out what I think the differential equation is from the Newtons second law diagram.

\frac{dr^2}{dt^2}=\frac{GM}{r^2}

I think I can rewrite to second derivative of r with respect to time as velocity multiplied by the derivative of velocity with respect to r. Making my equation

v\frac{dv}{dr}=\frac{GM}{r^2}

I integrate this to get

\frac{v^2}{2}=\frac{-GM}{r}

I stopped here because I'm not sure if maybe I should do this integration with some limits? Like from R (my starting point) to r (current position). What should I make the limits for velocity? 0 to v?

More importantly, I'm very very new to differential equations. Is all this even remotely correct? I imagine that if I'm correct up to this point I can just solve for v and take one more derivative and I think I'll be very close to finished.

Any help is greatly appreciated!

Check your signs. What is the direction of the gravitation force? Positive acceleration would increase the distance of the asteroid. Is your highlighted equation true?
The limits are all right, and you need to use them. If you get the function v(r) you need one more integral instead of one more derivative.
 
  • Like
Likes Crush1986
ehild said:
Check your signs. What is the direction of the gravitation force? Positive acceleration would increase the distance of the asteroid. Is your highlighted equation true?
The limits are all right. If you get the function v(r) you need one more integral instead of one more derivative.
Oh darn. I had it negative to start then thought, "Nooo, I'm not using the vector form." I should have thought that out better. Yes, of course, another integral, oops.
 
So after the integration with limits I get

\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} = v(r)

now I'm a bit confused as to what to do to the right side. will it be dv/dr? Then it can be written 1/dt? That just doesn't make sense. I'm missing something. Just not sure what.
 
Last edited:
Crush1986 said:
So after the integration with limits I get

\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} = v(r)

now I'm a bit confused as to what to do to the right side. will it be dv/dr? Then it can be written 1/dt? That just doesn't make sense. I'm missing something. Just not sure what.
The right side is a function v(r). v is the speed, the magnitude of the velocity. How is it related to the time derivative of r, the distance from the Sun?
 
ehild said:
The right side is a function v(r). v is the speed, the magnitude of the velocity. How is it related to the time derivative of r, the distance from the Sun?
so can I just treat v(r) as v and just made it dr/dt? I just wasn't sure if that was mathematically correct.

I suppose that would yield

\sqrt{\frac{2GM}{R}}t = \int \sqrt{\frac{R}{R-r}} dr

I did the integral and solved for r just to see if it made sense. At this point I had

r= R-e^{\frac{-t}{R}\sqrt{\frac{2GM}{R}}}

this result doesn't work though. At time = 0 it doesn't work and as time goes to infinity it's even more ridiculous. Again.. I've done something wrong :(
 
Crush1986 said:
so can I just treat v(r) as v and just made it dr/dt? /QUOTE]
V(r) is positive, as it is speed but r decreases as the asteroid goes towards he Sun. You need a minus sign.

Crush1986 said:
I just wasn't sure if that was mathematically correct.

I suppose that would yield

\sqrt{\frac{2GM}{R}}t = \int \sqrt{\frac{R}{R-r}} dr

You should multiply with dt instead of t. And use the minus sign.
Crush1986 said:
I did the integral and solved for r just to see if it made sense. At this point I had

r= R-e^{\frac{-t}{R}\sqrt{\frac{2GM}{R}}}

this result doesn't work though. At time = 0 it doesn't work and as time goes to infinity it's even more ridiculous. Again.. I've done something wrong :(
It is totally wrong. Write out the integral correctly. The one with respect r is quite tricky. You can solve it with substitution, but you can cheat a bit, and try wolframalpha, for example.
 
Oh god I see what I did, it is late I suppose... I completely just.. I don't even know. Ugh. Yah this integral is tough though.
\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} = v(r)

turn into

\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} dr = dv ?

This might be my problem.
 
Crush1986 said:
Oh god I see what I did, it is late I suppose... I completely just.. I don't even know. Ugh. Yah this integral is tough though.
\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} = v(r)

turn into

\sqrt{\frac{2GM}{R}}*\sqrt{\frac{(R-r)}{r}} dr = dv ?

This might be my problem.
NO. v=-dr/dt. There should be no dv. Try again.
 
  • #10
ehild said:
NO. v=-dr/dt. There should be no dv. Try again.
omg... I'm so sorry, I am just exhausted I guess. These ridiculous mistakes aren't me usually. Can't go to sleep yet though.

v does equal - dr/dt though? I suppose that is because the asteroid is moving toward the sun?

so it should be it looks like

- \sqrt{\frac{2GM}{R}}dt = \sqrt{\frac{r}{R-r}}dr
 
  • #11
It is correct now. I suggest to have some rest :) The integral is not simple.
 
  • #12
ehild said:
It is correct now. I suggest to have some rest :) The integral is not simple.
Yeah it doesn't look simple. I should take a break for now... I have to stay up late to flip my schedule for my work days anyway, haha. Just, yeah, working on my physics homework just doesn't work that well at this time I guess.
 
  • #13
Crush1986 said:
Yeah it doesn't look simple. I should take a break for now... I have to stay up late to flip my schedule for my work days anyway, haha. Just, yeah, working on my physics homework just doesn't work that well at this time I guess.
If you give up the integral, this may help :) http://www.wolframalpha.com/input/?i=int(-sqrt(x/(R-x))dx)
 
  • #14
ehild said:
If you give up the integral, this may help :) http://www.wolframalpha.com/input/?i=int(-sqrt(x/(R-x))dx)
Yeah, I had a peep already after having a few ideas that just weren't going to work.

That is the stuff nightmares are made of. Now I definitely can't go to sleep. HAHA. Wow... Amazing someone so innocent turns into that.
 
  • #15
  • #16
Well, even functions which have infinite limit, can have finite integral. You can simplify the result with ##\sqrt{R-x}##
 
  • #17
ehild said:
Well, even functions which have infinite limit, can have finite integral. You can simplify the result with ##\sqrt{R-x}##
Ok I took the limit and it actually does check out and behaves as it should as x goes to R. That is really cool. Thanks! Hopefully the last parts of this problem won't be a problem tomorrow.

Otherwise I learned a TON from you! Thanks!
 
  • #18
You are welcome :)
 
  • #19
Crush1986 said:

Homework Statement


An asteroid is knocked out of the Kuiper belt and starts to fall toward the sun. (Assume it's initial potential energy and kinetic energy is 0.)

The original problem suggested the approximation that both the initial kinetic energy and potential energy is zero. The speed can be obtained from conservation of energy and with zero energy, the solution becomes quite simple.
It would be interesting to see how close are the times needed to reach the Sun obtained with both methods.
 
  • #20
Right now I'm trying to use the answer to that last integral. Along with the other side of the equation which is

\sqrt{\frac{2GM}{R}} t

to solve for the time it takes for the asteroid to cross Earth's orbit. I'm getting total rubbish though, (negative time). :(

I'm pretty sure I have the right answer for the speed it has when it passes Earth orbit, as I did check that against conservation of energy. My equation for velocity from the first integration matches it's answer to within about 1 percent.
 
  • #21
Did you take the definite integral? Wolframalpha gave the primitive function.
 
  • #22
ehild said:
Did you take the definite integral? Wolframalpha gave the primitive function.
Ohhhh, wait so the time integral should go from 0 to t and I think the ugly integral should go from R to 0. Or should it go from R to r?

I'm thinking R to r...
 
  • #24
  • #25
Crush1986 said:
Ohhhh I like your idea. A lot. I'm going to try that. R to r was nasty. R to R/30 might be nicer. Going to try it.
That was the original text, was it not?
An asteroid from the Kuiper belt (approximately 30 AU from the Sun)
Do not forget that the result will be in AU.
 
  • #26
ehild said:
That was the original text, was it not?

Do not forget that the result will be in AU.
ehild said:
That was the original text, was it not?

Do not forget that the result will be in AU.
Yah it wants to know time to Earth but I was trying to get a general solution then plug in numbers later.

I've been converting the R to 30*1.5*10^8km.

I'm getting a fall time of about 29 days. Doesn't that seem a tad short?
 
  • #27
Crush1986 said:
Yah it wants to know time to Earth but I was trying to get a general solution then plug in numbers later.

I've been converting the R to 30*1.5*10^8km.

I'm getting a fall time of about 29 days. Doesn't that seem a tad short?
Convert R to meters.
 
  • #28
ehild said:
Convert R to meters.
Oh yah I did. In the end I was using 4.5*10^12 meters for R. My final equation came to look like this.

t = \sqrt{\frac{R}{2GM}}*\frac{R}{30}*(\sqrt{29}+15*pi-30*ArcCot(\sqrt{29}))

that was basically the equation mathematica gave me when I integrated from R to R/30.

oh jeez... no I'm getting 29 years** I mean.

Doesn't that seem long? I know it's a long distance. But it just seems long. I guess it is starting from rest... with very weak gravitational attraction.
 
  • #29
Crush1986 said:
Oh yah I did. In the end I was using 4.5*10^12 meters for R. My final equation came to look like this.

t = \sqrt{\frac{R}{2GM}}*\frac{R}{30}*(\sqrt{29}+15*pi-30*ArcCot(\sqrt{29}))

that was basically the equation mathematica gave me when I integrated from R to R/30.

oh jeez... no I'm getting 29 years** I mean.

Doesn't that seem long? I know it's a long distance. But it just seems long. I guess it is starting from rest... with very weak gravitational attraction.
yah 29 years* forgot I also divided by 365.25.
 
  • #30
I think it is realistic. Did not check yet.
 
  • #31
OK thanks! Well if all else fails I'm pretty sure I have the other 4 parts of the question right.

The more I think about it the more reasonable I guess it could be since it is starting from a stop from such a long ways away. It's initial acceleration is soooo tiny. I guess it would hang around the Kuiper belt for a very long time before it gained any appreciable speed.
 
  • #32
I got even more, but now I am sleepy. Try the approximation of E=0, and getting v from conservation of energy. It is much easier.
By the way, did you set your calculator to RAD when calculating the arctan(1/29)?
 
Last edited:
  • #33
I got using both methods that the speed of the asteroid as it passes Earth is about 1300 km/s. One way I got 1311 and another 1333 km/s.

I don't know how you get time from there though. Since the acceleration isn't constant I obviously can't use a kinematic equation or anything.
 
  • #34
You get v(t) = -dr/dt from conservation of energy. Need integral, but it is easy.
 
  • #35
Hrm, doing it with energy (if I did it right) I get 12.3 years.

I used

1/2 mv^2 = \frac{GMm}{r}

turned that into

-dr/dt = \sqrt{\frac{2GM}{r}}

I integrate from R to r and 0 to t

I get

t = 2/3 * \frac{R^{1.5}-r^{1.5}}{\sqrt{2GM}}
 
  • #36
It looks good. What did you get for t?
 
  • #37
I get 12.3 years from that. I had 29 years the other way. But the other way was much more mistake prone.
 
  • #38
Crush1986 said:
I get 12.3 years from that. I had 29 years the other way. But the other way was much more mistake prone.
Yes, it was easy to make mistakes, but I got the same results as you at the end. The initial conditions were different. The first method assumed zero initial speed, negative total energy. The second one assumed zero total energy, but that meant nonzero initial speed. As you noticed, the asteroid gains speed very slowly at the beginning. That can cause the difference between the times.
 
  • #39
ehild said:
Yes, it was easy to make mistakes, but I got the same results as you at the end. The initial conditions were different. The first method assumed zero initial speed, negative total energy. The second one assumed zero total energy, but that meant nonzero initial speed. As you noticed, the asteroid gains speed very slowly at the beginning. That can cause the difference between the times.
I see. If we made crude approximations that the P.E. at this distance is zero, and assumed the asteroid had zero speed at it's beginning. Method 2 would be ok, right?
 
  • #40
Crush1986 said:
I see. If we made crude approximations that the P.E. at this distance is zero, and assumed the asteroid had zero speed at it's beginning. Method 2 would be ok, right?
Both methods have sense. The complicated one assumed that the asteroid had zero speed, so its energy was negative. The simple method assumed zero total energy, which meant it got some initial speed towards the Sun.
The spaceship New Horizons arrived to Pluto in about 9 years, in a backward track. http://pluto.jhuapl.edu/Mission/The-Path-to-Pluto/Mission-Timeline.php. So times of a few decades have sense.
 
  • #41
I see thanks!

This problem definitely showed me a lot of things I have to learn. I was completely taken by surprise by the negative differentials. I guess it makes sense though, if the force is attractive it's negative, so the acceleration has to be negative. As a consequence dr/dt is also negative with how the problem is describing what the asteroid is doing.
 
  • #42
The velocity and acceleration are first and second time derivatives of the position vector. Putting the origin into the sun, ##\vec v = \frac{d \vec r }{dt}##. But we worked with the scalar r, distance between Sun and asteroid. It decreased with time. That is why we used the negative sign: v, the speed was v=-dr/dt.
 
  • #43
Hrm, ok. I think that is how I was thinking about it. I just said it horribly. I think I understand all that went on in here, haha. I'm definitely going to be mulling it over at work tonight. Thanks! Hopefully all this time will greatly increase my understanding.
 
Back
Top