Problem with solving equation of motion

AI Thread Summary
The discussion revolves around solving a problem involving a 2 kg body moving at a constant velocity of 5 m/s, which is then acted upon by a force decreasing with the square of the distance after 2 seconds. The force is initially 10 N, and the goal is to determine when the body's speed will be half its initial value and the distance from the starting position at that time. The equation of motion is established as a second-order nonlinear ordinary differential equation, complicating the solution process. Participants discuss various methods to solve the differential equation and the challenges of integrating it, with some suggesting substitutions and separation of variables. Ultimately, a special substitution is found to solve the integral, although the exact solution remains a point of interest.
dosvarog
Messages
3
Reaction score
0
Hello everybody, this is my first time posting here, so if I make any errors, correct me please. :)

Homework Statement


We have a body of mass 2 kg and it starts to move with constant velocity 5 m/s along a straight line. After 2 seconds a force that decreases with square of the distance starts to act on a body. Amount of the force at the moment it started to act is 10 N. After what time the speed of the body will be equal to half of its initial value? How far from the starting position body will be at that moment?

I hope everything is clear since this is rough translation from my language. :)

So, we have:

m = 2~kg - mass of a body
v_0 = 5~m/s - initial constant velocity
{F_x}_0 = 10~N - amount of force that starts to act at position ##x_0##
{t_x}_0 = 2~s - time that passes when body reaches position ##x_0##
##F \propto 1/x^2## - force that decreases with square of a distance
##x_0## - distance that body moves with constant velocity

Homework Equations


Ok, now we can set the equation of motion. Since we have time and velocity with simple ##x_0~=~v_0*{t_x}_0## (because first 2 seconds body moves with constant velocity) we can calculate distance ##x_0## which is 10 m.
For force F we can write ##F = k/x^2##.
Given the initial amount of force and distance ##x_0## that we calculated we get that ##k = 1000~Nm^2##

Equation of motion would then be:

##\ddot{x}*m = -k/x^2##

The Attempt at a Solution


Now the fun part. This is second-order nonlinear ordinary differential equation, which complicates things a bit.
So, basically I did this:

##\ddot{x} = -k/mx^2##

Then I made substitution ##\dot{x} = p(x)##, here p is function of x which means that ##\ddot{x} = p\dot{p}##.

That yields:

##p\frac{dp}{dx} = -a\frac{1}{x^2}## where ##a = k/m##

I separate the variables and integrate which yields:

##p^2/2 = a/x + C1##

Then I get constant C1 by plugging initial values:
##\frac{{v_0}^2}{2} - \frac{k}{mx_0} = C1 \Rightarrow C1 = -37.5##

Now I can calculate ##x_1##, a position where body has half of its initial velocity, that is 2.5 m/s:

##\frac{{\dot{x_1}}^2}{2} = \frac{k}{mx_1} - 37.5## where ##\dot{x_1} = \frac{\dot{x_0}}{2}##

which gives ##x_1 = 12.31~m## (note: ##x_1## is distance from ##x_0## because of initial conditions)

The problem is, how to get time? If I go and integrate this DE second time, I would get ##x(t)## and solve it, but the integral I have to solve is pretty nasty and I don't know how to solve it. Is there maybe some other way or some kind of catch that I'm missing here?
 
Last edited:
Physics news on Phys.org
Welcome to PF;
dosvarog said:
We have a body of mass 2 kg and it starts to move with constant velocity 5 m/s along a straight line. After 2 seconds a force that decreases with square of the distance starts to act on a body. Amount of the force at the moment it started to act is 10 N. After what time the speed of the body will be equal to half of its initial value? How far from the starting position body will be at that moment?

I hope everything is clear since this is rough translation from my language. :)

OK - the problem statement is incomplete. However, from the context and what follows I can fill in the gaps. The origin for the force is the same place that the object started from, and the force acts in the opposite direction to the initial velocity of the object. Is that correct?

So you can end up with: $$mx^2\ddot{x}=-k \; : \; \dot{x}(2)=5\text{m/s}\; , \; x(2)=10\text{m}$$

Now the fun part. This is second-order nonlinear ordinary differential equation, which complicates things a bit.
So, basically I did this:

##\ddot{x} = -k/mx^2##

Then I made substitution ##\dot{x} = p(x)##, here p is function of x which means that ##\ddot{x} = p\dot{p}##.
... surely, if ##\dot{x}=p##, then ##\ddot{x}=\dot{p}## ?
 
Last edited:
Simon Bridge said:
Welcome to PF;

OK - the problem statement is incomplete. However, from the context and what follows I can fill in the gaps. The origin for the force is the same place that the object started from, and the force acts in the opposite direction to the initial velocity of the object. Is that correct?

So you can end up with: $$mx^2\ddot{x}=-k \; : \; \dot{x}(2)=5\text{m/s}\; , \; x(2)=10\text{m}$$
Thank you.

Yes, sort of. The force starts to act after 2 seconds, first 2 seconds body moves with constant velocity. And force acts in opposite direction of the initial velocity on the same x-axis, yes.
That's what I came up with also.
Simon Bridge said:
... surely, if ##\dot{x}=p##, then ##\ddot{x}=\dot{p}## ?
Erm, not really. This is 2nd-order nonlinear DE we are dealing with and in this substitution p is function of x, which means when you derive x' you apply a chain rule.
See (2) here.

I understand this is mostly a math problem, but I'm not very good at physics so maybe I am missing something here which would allow me to get that time without messing with integrals. Because you will get something like this:

##\int \frac{1}{\sqrt{\frac{a}{x} -~b}}\,dx = \int\,dt##

And first integral is not really a nice one :biggrin:.
 
I don't know if you set up the integral correctly or not, but by factoring out a b you can do a nice trigonometric substitution for it. The math is a tad bit hairy, but if you are already doing differential equations, it shouldn't be too much of a problem.
 
Just a thought, may not work:

F(x)/m = a = -k/mx2 = dv/dt
k obtained from F(10) = 10
dv/dt = dv/dx dx/dt = v dv/dx
v dv/dx = -k/mx2
which can easily be solved by separation of variables, yielding v(x) using your given initial condition.

Then x2 d2x/dt2 = -k/m
= x2 d/dt dx/dt = x2 dv/dt = x2 dv/dx dx/dt
Again use separation of variables to solve for v(t).
 
in this substitution p is function of x,
Ah... and you've adjusted the original post to clarify that I see, well done.

Yeh - wen you make a substitution like that you lose the time information.

Looks like the first part of rude_man's post is pretty much what you did and the second half contains a way forward. You may not need the equation of x(t) (or t(x) as it may be) because you already have the v and you've found the x. Let us know how you got on.
 
Actually the equation x''=-k/x^2 yields an x function that can't be written in terms of elementary functions.
 
Simon Bridge said:
Ah... and you've adjusted the original post to clarify that I see, well done.

Yeh - wen you make a substitution like that you lose the time information.

Looks like the first part of rude_man's post is pretty much what you did and the second half contains a way forward. You may not need the equation of x(t) (or t(x) as it may be) because you already have the v and you've found the x. Let us know how you got on.
Hm, I wrote it in the first place, maybe you missed it at first ;)

Well, I've managed to solve integral with a special substitution. A bit of a hairy math, but solvable.
TheEtherWind said:
Actually the equation x''=-k/x^2 yields an x function that can't be written in terms of elementary functions.
Yes, it can be.
 
If you can solve for x in this type of equation in elementary functions, ln(f(x)) + g(x) = t let me know
 
  • #10
dosvarog said:
Hm, I wrote it in the first place, maybe you missed it at first ;)
... and the "last edited" time makes that ambiguous. It is possible though and I have no reason to argue ;)
Well, I've managed to solve integral with a special substitution. A bit of a hairy math, but solvable.
Great - what was your solution?
 
Back
Top