Deriving the particle's motion using numerical integration

AI Thread Summary
The discussion revolves around deriving a particle's motion using numerical integration, specifically addressing the challenges of self-referential reasoning when acceleration depends on velocity. The original approach using differential equations yielded a negative exponential function, but the problem requires finite summations. Participants suggest using small time intervals and the forward Euler method to approximate changes in velocity and position. The conversation emphasizes the importance of clarity in applying numerical integration techniques and encourages comparing numerical results with analytical solutions for better understanding. Overall, the insights aim to guide the original poster toward successfully solving the problem.
theblazierbroom
Messages
9
Reaction score
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: 52
Physics news on Phys.org
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:
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?
 
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:
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!
 
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
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top