Finding x(t) for a Particle Under Force F(x) = kx

  • Thread starter Thread starter Fascheue
  • Start date Start date
AI Thread Summary
The discussion focuses on solving the differential equation for a particle under the force F(x) = kx, where k is a positive constant. The initial conditions specify the particle's position and velocity, leading to the equation d²x/dt² = (k/m)x. Participants explore various methods for finding the solution, including guessing functions and integrating, ultimately identifying that the general solution can be expressed as x(t) = Ae^(√(k/m)t) + Be^(-√(k/m)t). By applying initial conditions, the constants A and B can be determined, confirming the solution's validity. The conversation emphasizes the importance of correctly applying integration techniques and understanding the properties of differential equations.
Fascheue

Homework Statement



A particle of mass m is subject to a force F(x) = kx, with k > 0. The initial position is x0, and the initial speed is zero. Find x(t).

Homework Equations



F(x) = kx

F = ma

The Attempt at a Solution


[/B]
F = kx

ma = kx

d^2x/dt^2 = kx/m

dx/dt = (kx^2)/(2m)

x^-2dx = (k/2m)dt

-x^-1 = kt/2m + c

-x^-1 = kt/2m + x0

x(t) = -2m/kt - 1/x0
 
Last edited by a moderator:
Physics news on Phys.org
Welcome to PF!

Fascheue said:
d^2x/dt^2 = kx/m

dx/dt = (kx^2)/(2m)
In getting the second equation from the first, you integrated the left side with respect to t. But you integrated the right side with respect to x. This is not valid since you must do the same thing to both sides of an equation.

There are various ways you can solve the first equation. Have you studied methods of solving linear ordinary differential equations?
 
  • Like
Likes Fascheue
TSny said:
Welcome to PF!In getting the second equation from the first, you integrated the left side with respect to t. But you integrated the right side with respect to x. This is not valid since you must do the same thing to both sides of an equation.

There are various ways you can solve the first equation. Have you studied methods of solving linear ordinary differential equations?
Not really, the most advanced math I’ve taken is Calculus 1, so my knowledge of differential equations is limited.
 
Fascheue said:
Not really, the most advanced math I’ve taken is Calculus 1, so my knowledge of differential equations is limited.
OK.

One approach is to guess the solution. (This is a very legitimate approach to solving differential equations!)

You need to solve ##\ddot x = \frac{k}{m} x##. So, you are looking for a function ##x(t)## such that when you differentiate it twice you get back the function multiplied by a positive constant ##\frac{k}{m}##.

Suppose for the moment we forget the constant. Can you think of a function ##x(t)## that would be a solution of ##\ddot x = x##?
 
  • Like
Likes Fascheue
TSny said:
OK.

One approach is to guess the solution. (This is a very legitimate approach to solving differential equations!)

You need to solve ##\ddot x = \frac{k}{m} x##. So, you are looking for a function ##x(t)## such that when you differentiate it twice you get back the function multiplied by a positive constant ##\frac{k}{m}##.

Suppose for the moment we forget the constant. Can you think of a function ##x(t)## that would be a solution of ##\ddot x = x##?
I believe e^t should work.
 
Last edited by a moderator:
Fascheue said:
I believe e^t should work.
Great. Can you "doctor" this solution so that it will solve ##\ddot x = \frac{k}{m} x##?
 
  • Like
Likes Fascheue
TSny said:
Great. Can you "doctor" this solution so that it will solve ##\ddot x = \frac{k}{m} x##?
Would it be x = (m/k)e^t?
 
That's a good try, but it doesn't actually work. If ##x(t) = \frac{m}{k}e^t##, then ##\ddot x = \frac{d^2 }{dt^2}\left( \frac{m}{k}e^t \right) = \frac{m}{k}e^t = x \neq \frac{k}{m} x##.

Can you think of another way to try to modify ##e^t##?
 
Last edited:
  • Like
Likes Fascheue
TSny said:
That's a good try, but it doesn't actually work. If ##x(t) = \frac{m}{k}e^t##, then ##\ddot x = \frac{d^2 }{dt^2}\left( \frac{m}{k}e^t \right) = \frac{m}{k}e^t = x \neq \frac{k}{m} x##.

Can you think of another way to try to modify ##e^t##?
Oh, it would just be x = (k/m)e^t wouldn’t it be?
 
  • #10
Fascheue said:
Oh, it would just be (k/m)e^t wouldn’t it be?
No. If you try it you will see that it doesn't work. Taking two time derivatives just gives back the function. It doesn't give (k/m) times the function, which would be (k/m)⋅(k/m)et = (k/m)2et.

Let's try ##x(t) = e^{bt}##, where ##b## is some constant. Can you find a value (or values) of ##b## that will work?
 
  • #11
TSny said:
No. If you try it you will see that it doesn't work. Taking two time derivatives just gives back the function. It doesn't give (k/m) times the function, which would be (k/m)⋅(k/m)et = (k/m)2et.

Let's try ##x(t) = e^{bt}##, where ##b## is some constant. Can you find a value (or values) of ##b## that will work?
I think I see now, should it be e^sqrt(k/m)t?
 
  • #12
Yes. Good. It will be important to see that there is another value of ##b## that will also work.
 
  • Like
Likes Fascheue
  • #13
TSny said:
Yes. Good. It will be important to see that there is another value of ##b## that will also work.
I think e^-sqrt(k/m)t should work as well.
 
  • #14
Right. So, you have two independent solutions to the differential equation: ##e^{\sqrt{k/m}\, t}## and ##e^{-\sqrt{k/m}\, t}## .

It is not hard to check that you can combine these to obtain a general solution in the form $$x(t) = Ae^{\sqrt{k/m}\, t} + Be^{-\sqrt{k/m}\, t}$$ where ##A## and ##B## are arbitrary constants. Hopefully, you will check that this does satisfy the differential equation.

For your problem, you can determine the values of these two constants by using the information given about the initial position and velocity. Start with the information about the initial velocity.
 
  • Like
Likes Fascheue
  • #15
TSny said:
Right. So, you have two independent solutions to the differential equation: ##e^{\sqrt{k/m}\, t}## and ##e^{-\sqrt{k/m}\, t}## .

It is not hard to check that you can combine these to obtain a general solution in the form $$x(t) = Ae^{\sqrt{k/m}\, t} + Be^{-\sqrt{k/m}\, t}$$ where ##A## and ##B## are arbitrary constants. Hopefully, you will check that this does satisfy the differential equation.

For your problem, you can determine the values of these two constants by using the information given about the initial position and velocity. Start with the information about the initial velocity.
I plugged in the constants and got x0/2 for both A and B. Is that correct?
 
  • #16
Fascheue said:
I plugged in the constants and got x0/2 for both A and B. Is that correct?
Yes. That should do it. You can express the result in terms of a hyperbolic trig function if you wish.
 
  • Like
Likes Fascheue
Back
Top