Deriving the particle's motion using numerical integration

  • #1
theblazierbroom
3
1
Homework Statement
A particle of mass m moves along a straight line. Its motion is resisted by a force proportional to its velocity, F=-k*v. It starts with speed v = v_0 at x = 0 and t = 0.

(a) Find x as a function of t by numerical integration.
(b) Find the time t_1/2 required to lose half its speed, and the maximum distance x_max attained.

Notes:
(1) Adjust the scales of x and t so that the equation of motion has simple numerical coefficients.
(2) Invent a scheme to attain good accuracy with a relatively coarse interval for delta t.
(3) Use dimensional analysis to deduce how t_1/2 and x_max should depend upon v_0, k, and m, and solve for the actual motion only for a single convenient value of v_0, say v_0 = 1.00 (in modified x and t units).
Relevant Equations
x(t_n) = \sum{i=0}^{n}{v(t_i)} * delta t
v(t_n) = \sum{i=0}^{n}{a(t_i)} * delta t
When I used differential equation techniques, I found the function of x and v to be a negative exponential function.

However, based on the notes, I believe the problem wants me to use finite summations as the relevant equations above. This stumps me because the acceleration is dependent on the velocity, and I get stuck in this self-referential thought process.

I believe figuring out a solution to this problem would help me better understand the thought process behind integration. I would appreciate any guidance!
 

Attachments

  • IMG_0068.jpg
    IMG_0068.jpg
    36.4 KB · Views: 4
Physics news on Phys.org
  • #2
theblazierbroom said:
Homework Statement: A particle of mass m moves along a straight line. Its motion is resisted by a force proportional to its velocity, F=-k*v. It starts with speed v = v_0 at x = 0 and t = 0.

(a) Find x as a function of t by numerical integration.
(b) Find the time t_1/2 required to lose half its speed, and the maximum distance x_max attained.

Notes:
(1) Adjust the scales of x and t so that the equation of motion has simple numerical coefficients.
(2) Invent a scheme to attain good accuracy with a relatively coarse interval for delta t.
(3) Use dimensional analysis to deduce how t_1/2 and x_max should depend upon v_0, k, and m, and solve for the actual motion only for a single convenient value of v_0, say v_0 = 1.00 (in modified x and t units).
Relevant Equations: x(t_n) = \sum{i=0}^{n}{v(t_i)} * delta t
v(t_n) = \sum{i=0}^{n}{a(t_i)} * delta t

When I used differential equation techniques, I found the function of x and v to be a negative exponential function.

However, based on the notes, I believe the problem wants me to use finite summations as the relevant equations above. This stumps me because the acceleration is dependent on the velocity, and I get stuck in this self-referential thought process.

I believe figuring out a solution to this problem would help me better understand the thought process behind integration. I would appreciate any guidance!
Can you rewrite ##\ddot x## in terms of the approximate finite differences ## \Delta v ## and ##\Delta t ## for us?

The thing about the "apparent" circular reasoning, is it isn't circular reason. You should revisit Reimann Sums. The idea is you are getting the future value of ##v## by using the current value of ##v##. So how do you get from the first value of ##v_t## to the next ##v_{t +\Delta t }## given you know how it accelerates when it has some particular ##v## via Newtons Second?
 
Last edited:
  • #3
erobz said:
Can you rewrite ##\ddot x## in terms of ## \Delta v ## and ##\Delta t ## for us?
Wait, so set ## \Delta v ## / ##\Delta t## = - (k/m) * v?
So then if I do ## \Delta v ## = - (k/m) * v * ## \Delta t ##, then I set v in the RHS as the velocity from the previous interval?
 
  • #4
theblazierbroom said:
Wait, so set ## \Delta v ## / ##\Delta t## = - (k/m) * v?
So then if I do ## \Delta v ## = - (k/m) * v * ## \Delta t ##, then I set v in the RHS as the velocity from the previous interval?
As long as the time interval is small enough.

$$\Delta v \approx -\left. \frac{k}{m} v \right|_{t} ~\Delta t $$

If you have more precise questions involving the mathematics someone will be probably along that can go over the fine details (I'm scarcely qualified). I'm just trying to get you out of the "self referential loop". :smile:
 
Last edited:
  • #5
erobz said:
As long as the time interval is small enough.

$$\Delta v \approx -\frac{k}{m} v \Delta t $$

If you have more precise questions involving the mathematics someone will be along that can go over the official stuff I'm sure (I'm scarcely qualified). I'm just trying to get you out of the "self referential loop". :)
I see, you helped me get out. I think some good amount of overthinking was occurring in my head haha Thanks!
 
  • Like
Likes erobz
  • #6
erobz said:
As long as the time interval is small enough.

$$\Delta v \approx -\left. \frac{k}{m} v \right|_{t} ~\Delta t $$

If you have more precise questions involving the mathematics someone will be probably along that can go over the fine details (I'm scarcely qualified). I'm just trying to get you out of the "self referential loop". :smile:
It should be pointed out that this (essentially the forward Euler method) is the most basic way of numerically integrating an ODE. If you need higher precision and/or stability, there are more advanced methods.

However, for the purposes of the OP, this is probably fine. It is however an interesting exercise to compare the numerical solution to the analytical one.
 
  • Like
Likes PhDeezNutz and erobz
Back
Top