Solve for x(t) and v(t) given a Force equation using Mathematica

2 replies · 2K views · last reply
zeesyk
Messages
5
Reaction score
1
Typed problem statement: a particle of mass m in a 1D force field F(x), asking for v(t) and x(t) and behavior as t goes to 0 and infinity, with cases (A) F = -ka/x^2 and (B) F = -kb/x^3.

Homework Statement

Homework Equations


F= ma or F= md^2x/dt^2

The Attempt at a Solution


I know that this second order differential is non linear. I attempted to solve the problem as -k/x^2 = md^2x/dt^2 but I'm getting trouble since it is a second order ODE and I haven't learned how to solve those yet. I was also looking at my class notes to a similar problem but my professor included potential energy? I'm a bit confused. Any help would be greatly appreciated. If you can also show me how to solve this on Mathematica, that would also be a plus. I don't have any experience with it.
 
Attachments
  • Typed problem statement: a particle of mass m in a 1D force field F(x), asking for v(t) and x(t) and behavior as t goes to 0 and infinity, with cases (A) F = -ka/x^2 and (B) F = -kb/x^3.
    Capture d’écran 2019-01-24 à 23.09.08.png
    19.7 KB · Views: 813
Last edited by a moderator:
update: i think i may have solved the first part? Now I need to figure out to put in on Mathematica.
Handwritten derivation on paper: F(x) = -k/x^2 = m d^2x/dt^2, rearranged to -k(-x^{-1}) = mx(t)^2/2 and then v(t) = sqrt(2k/xm), followed by integration giving t = sqrt(m/2k) * (2/3)(x)^{3/2} and x(t) = sqrt(2k/m) * (3/2 + t^{3/2}).
 
Attachments
  • Handwritten derivation on paper: F(x) = -k/x^2 = m d^2x/dt^2, rearranged to -k(-x^{-1}) = mx(t)^2/2 and then v(t) = sqrt(2k/xm), followed by integration giving t = sqrt(m/2k) * (2/3)(x)^{3/2} and x(t) = sqrt(2k/m) * (3/2 + t^{3/2}).
    IMG_3534.jpg
    17.6 KB · Views: 469
You need to use the chain rule from calculus.

You know that a = dv/dt.

However, this can also be written as a = (dv/dx) * (dx/dt) = v (dv/dx).

This means that your force equation a = F/m can now be written as

[tex]v \frac{dv}{dx} = \frac{F}{m}[/tex]

Consequently, what you need to solve (or integrate) is

[tex]v dv = \frac{F}{m} dx[/tex]

since F is given as a function of x.

Zz.