Gravity where acceleration is changing

AI Thread Summary
The discussion revolves around formulating an equation for gravity where acceleration changes with distance, rather than remaining constant. The initial equation presented is y=-.5ax^2+sx+d, but complications arise when trying to incorporate the variable acceleration a=gm/d^2, leading to challenges in integrating the second derivative. The conversation highlights the difficulty of obtaining a closed-form solution for distance as a function of time, while noting that time can be expressed as a function of distance. Participants suggest that treating gravitational acceleration as constant over short distances may simplify calculations, yet acknowledge the complexity of integrating variable acceleration due to gravitational effects. The overall consensus is that while a neat solution remains elusive, exploring approximations and alternative methods may yield more manageable results.
okkvlt
Messages
53
Reaction score
0
I have a question about gravity:

How do i formulate an equation that incorporates the change in distance between two objects- in other words, where the acceleration due to gravity is changing as the distance changes, instead of simply where the acceleration is held constant. Here's how far I've gotten:

y=-.5ax^2+sx+d
where y is location(distance) and x is time. s is initial velocity and d is initial location and a is acceleration due to gravity.
But just one simple change and things become much more complicated.
Suppose i want to include the change in acceleration.
I use a=gm/d^2 where a is the acceleration, g is the gravitational constant, m is the mass of the planet, and d is distance.
Which means d^2y/dx^2=gm/y^2, so y'' is a function of y and not a function of x. That's my problem. How do i integrate the derivative when the derivative is a function of the dependent variable? I need to know the function of x that equals y in order to integrate, but i need to integrate to find the function of x that equals y. So I am kind of left going in circles trying to solve an impossible problem.

I can't figure out how to integrate this.
I could try integrating to find dx/dy, which would be the inverse of velocity(time/distance instead of distance/time), and manipulate that to get something meaningful, but I am unsure whether that's even possible.
I don't think i can simply replace a with gm/y^2, but I am not sure because this is really confusing me. when i differentiate implicitly to find velocity after replacing a with gm/y^2, i get dy/dx=f[x,y]. Now i have to differentiate velocity=dy/dx to find acceleration=d^2y/dx^2 and verify whether the second derivative equals gm/y^2. But how do i find the second derivative when the first derivative is a function of both variables? this seems to be related to the problem that y'' is a function of y, and y is a function of both x and y''. That's why i don't think i can simply replace a with gm/y^2. The problem is, whenever i would evaluate y at a moment in x after replacing a with gm/y^2, it will be as if the acceleration at that moment in time has been the acceleration at all previous times. But then again, I am not sure.
I think what's happening here is the function itself actually changes into another function as the variables change. This is really confusing me.

The only way i figure i can solve this is by splitting space(splitting time would be simpler because i wouldn't have to solve a million quadratics, but i don't think incrementalizing time would be as accurate.) into increments. I would solve the first problem, then plug the variables and its derivatives at the end of that increment into the next problem, adjust for acceleration using gm/y^2, solve the next problem, and then keep repeating that over and over until i go insane from mindless calculations, knowing that i haven't actually solved the dynamics of the problem. Theres no freaking way I am going to attempt that.
 
Physics news on Phys.org
The equation

y^{\prime\prime}= \frac{gm}{y^2}

is a special case of a second order non-linear ode, which can be solved quite straight forwardly to determine y' (speed). However, one cannot solve this ode to obtain a closed form solution for y (distance) as a function of time. One can however, obtain a closed form solution for x (time) in terms of y (distance).

Let

\frac{dy}{dx} = v\left(y\right)

Then by the chain rule

\frac{d^2 y}{dx^2} = \frac{d}{dx}v = \frac{dv}{dy}\frac{dy}{dx} = \frac{dv}{dy}v

Hence the ode becomes,

\frac{dv}{dy}v = \frac{gm}{y^2}

Which is first order and separable. We can integrate to determine the velocity as a function of distance.

\Rightarrow v\left(y\right) = \frac{dy}{dx} = -\frac{gm}{y} + c

This first order ode is again separable,

\frac{dy}{dx}\frac{1}{\left(gm/y\right)+c} = -1

\frac{dy}{dx}\left(\frac{1}{c} - \frac{gm}{c\left(gm + cy\right)}\right) = -1

Integrating

\Rightarrow \frac{y}{c} - \frac{gm}{c^2}\ln\left|gm+cy\right| = c^\prime-x

Here you should be able to see that one cannot solve this equation to obtain y=y(x). However, we have determined time as a function of distance as promised.

I hope that this was helpful.
 
Last edited:
Hootenanny said:
Hence the ode becomes,

\frac{dv}{dy}v = \frac{gm}{y^2}

Which is first order and separable. We can integrate to determine the velocity as a function of distance.

\Rightarrow v\left(y\right) = \frac{dy}{dx} = -\frac{gm}{y} + c

didn't you mean, \frac{v^2}{2} on the left side?
 
ibc said:
didn't you mean, \frac{v^2}{2} on the left side?
Whoops! Thanks for pointing that out, I'll correct my post above now.
 
Correcting my post #2 above (I thought it looked a little too nice),

\Rightarrow v\left(y\right) = \frac{dy}{dx} = \sqrt{2c -\frac{2gm}{y}}

This first order ode is again separable,

\int\frac{dy}{ \sqrt{2c -\frac{2gm}{y}}} = \int dx

Which integrates (horrendously) to,

x = \frac{\sqrt{cy}\left(cy-gm\right) + gm\ln\left|2\left(\sqrt{cy} + \sqrt{cy-gm}\right)\right|\sqrt{-(gm) + cy}}{c^{3/2}\sqrt{2}\sqrt{cy - gm}}

Which definitely doesn't have a closed form solution for y=y(x).

My apologies again for the mistake.
 
Last edited:
Hootenanny said:
Which integrates (horrendously) to,

x = \frac{\sqrt{cy}\left(cy-gm\right) + gm\ln\left|2\left(\sqrt{cy} + \sqrt{cy-gm}\right)\right|\sqrt{-(gm) + cy}}{c^{3/2}\sqrt{2}\sqrt{cy - gm}}

Which definitely doesn't have a closed form solution for y=y(x).

QUOTE]

That integral :bugeye: is compelling reason to treat g as a constant, at least over short distances, even though we know it is variable! Over long distances, we can get good approximations by taking an average value of g, but it would be much better if we had a neat compact expression to calculate g even as distance varies. It seems to me that a simpler expression can be written, as there are many instances where one variable mutually affects another. A case in point is air resistance affecting the velocity of a falling body, and of course the velocity affects air resistance. Yet we have no trouble writing a simple DE which takes this all into account. Why can’t we do the same for gravitational potential energy and distance, or can we?
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?

Similar threads

Back
Top