Solve Damping Oscillation: Find Position Function of Spring

  • Context: Undergrad 
  • Thread starter Thread starter coki2000
  • Start date Start date
  • Tags Tags
    Damping Oscillation
Click For Summary

Discussion Overview

The discussion revolves around finding the position function of a spring on a frictional surface, specifically addressing the differential equation governing the motion and the role of friction in damping oscillations. Participants explore theoretical aspects, mathematical reasoning, and the implications of friction on the system's behavior.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents the differential equation for a spring on a frictional surface as \(\ddot{x}+\omega^2x=-kmg\) and seeks assistance in solving it.
  • Another participant suggests solving the homogeneous part of the equation first and proposes a particular solution, indicating that the original equation lacks a damping term.
  • Some participants argue that damping is typically modeled with friction proportional to velocity, while others question this assertion, suggesting that friction may behave differently in various contexts.
  • A participant points out that the friction term in the equation should depend on the direction of movement, proposing a modified equation that incorporates this aspect.
  • There is a discussion about the nature of the solution, with one participant describing it as a sequence of "half sine waves" and noting that the period of oscillation is unaffected by friction.
  • Concerns are raised about the complexity of accurately modeling the system numerically, with some participants noting potential chaotic behavior in naive implementations of the friction model.

Areas of Agreement / Disagreement

Participants express differing views on the role of friction in damping and the correct formulation of the differential equation. There is no consensus on the best approach to solve the equation or the nature of the damping involved.

Contextual Notes

Some participants highlight limitations in the original equation, such as the incorrect inclusion of mass in the friction term and the need for a more nuanced understanding of friction's dependence on velocity and direction. The discussion also touches on the challenges of numerical solutions and the potential for chaotic behavior in the system.

coki2000
Messages
91
Reaction score
0
Hello all,

I want to find position function of a spring which is on a frictional surface so there is a friction force like k.m.g. Its differential equation is like that

[itex]\ddot{x}+\omega ^2x=-kmg[/itex]

But I can't solve this. Can you help me to solve that equation? And also I don't understand why most of classical mechanics books say that friction is proportional to velocity. I was said that friction is proportional to velocity at only under water or another liquid thing. Can you also explain this?

Thank you for your helps.
 
Physics news on Phys.org
To solve that ODE(=ordinary differential equation), you first need to solve the homogeneous ODE, and then find a particular solution. In fact, [itex]x(t)=x_{homog.}+x_{particular}[/itex] is the solution of the equation.

1) [itex]\ddot{x}+\omega^2x=0[/itex] (homogeneous) -> [itex]x(t)=Ae^{i\omega t}+Be^{-i\omega t}[/itex]
2) You need to find a particular solution to that equation, that is, you must find a solution [itex]\bar{x} \rightarrow \ddot{\bar{x}}+\omega^2\bar{x}=-kmg[/itex]. Usually you start guessing (there are some techniques, but I won't tell them here), but here is simple: if you choose [itex]\bar{x}=x_{particular}=-\frac{kmg}{\omega}[/itex] the equation is satisfied.

So, the solution of the ODE [itex]\ddot{x}+\omega^2x=-kmg[/itex] is [itex]x(t)=Ae^{i\omega t}+Be^{-i\omega t}-\frac{kmg}{\omega}[/itex]

Now, you expected to see a damping. The thing is that the ODE you are trying to solve has not the damping term :D
The damping term occurs when friction is proportional to speed. This is why in textbooks, when they talk about the damping, they say that friction is proportional to speed. In fact, if you put
[itex]\ddot{x}+\omega^2x=-k\dot{x}\Rightarrow\ddot{x}+k\dot{x}+\omega^2x=0[/itex]
the solution is
[itex]x(t)=Ae^{-\frac{\sqrt{k^2-4\omega^2}+k}{2}t}+Be^{\frac{\sqrt{k^2-4\omega^2}-k}{2}t}[/itex] that can be written as [itex]x(t)=e^{-\frac{k}{2}}\left(Ae^{-\frac{\sqrt{k^2-4\omega^2}}{2}t}+Be^{\frac{\sqrt{k^2-4\omega^2}}{2}t}\right)[/itex]

If [itex]k^2<4\omega^2[/itex], then x(t) is a damped periodic oscillation. You can see it if you put [itex]4\omega^2-k^2=\gamma^2[/itex], it can be written as [itex]x(t)=e^{-\frac{k}{2}}\left(Ae^{-i\frac{\gamma}{2}t}+Be^{i\frac{\gamma}{2}t}\right)[/itex]. It is damped because the exponential term [itex]e^{-\frac{k}{2}t}[/itex] decreases with time.
 
coki2000 said:
I don't understand why most of classical mechanics books say that friction is proportional to velocity. I was said that friction is proportional to velocity at only under water or another liquid thing. Can you also explain this?

Think of "damping" caused not by friction (like the spring mass system sliding on a rough surface) but by something like a shock absorber.
 
Well for starters, your equation isn't quite right. You shouldn't have mass in it because your units are no longer correct. If you start from a force balance, you then get your equation and divide through by mass to arrive at the one you tried to arrive at. Then you are missing an important part of your friction term. As it stands, your friction term is constant, but in reality it depends on the direction of movement. In reality, your equation should look more like this:

[tex]\ddot{x} + kg\;\mathrm{sgn}(\dot{x}) + \omega^2 x = 0[/tex]
or
[tex]\ddot{x} + kg\frac{\dot{x}}{|\dot{x}|} + \omega^2 x = 0[/tex]

I honestly am not quite sure how one would go about solving this analytically. Using a numerical method such as Runge-Kutta would be the best bet. I just did it in Matlab to make sure my equation was sane and it comes out right. It is just an oscillator whose amplitude decreases linearly to zero, which is what I found.
 
Last edited:
boneh3ad said:
I honestly am not quite sure how one would go about solving this analytically.

The analytic solution is just a sequence of "half sine waves", with a different origin for the ones with positive and negative velocities.

While the velocity is one direction (either positive or negative), this is just a mass-on-a-spring with a constant applied force. Exactly the same as a vertical spring with a mass when you include the weight of the mass in the equation of motion.

The period of oscillation is not affected by the friction force, so you could write one complicated formula to represent the whole motion if you really wanted to, but in practice there's not much point doing that. But the analytic solution for each part of the motion IS useful if you want to look how the amplitude decays, the rate or energy dissipation, etc.

Unlike damping proportional to velocity, the motion does not decay exponentially "for ever", it only continues for a finite number of cycles until the static friction is enough to hold the mass stationary.

FWIW an accurate numerical solution of this is not as simple as it might appear. If you include the friction force in the model in a naive way, you will find the output from the model does not come to a stop, but goes into an apparently "chaotic" oscillation whose properties depend on the size of the time step you use, and not on the stiffness and mass of the structure, With a "clever" adaptive time stepping integration method, the results can look quite pretty - but completely wrong.
 
AlephZero said:
The analytic solution is just a sequence of "half sine waves", with a different origin for the ones with positive and negative velocities.

Sure you could set up a piece-wise analytic solution that way, but I didn't think that is what the OP had in mind. I may have just fallen victim to assumptions, but I thought he/she was looking for an explicit form of [itex]x=f(t)[/itex].

AlephZero said:
While the velocity is one direction (either positive or negative), this is just a mass-on-a-spring with a constant applied force. Exactly the same as a vertical spring with a mass when you include the weight of the mass in the equation of motion.

Assuming you mean the absolute value is constant, I agree. I don't see how it is the same as a mass on a spring since the force always opposes the motion in this case. For a mass on a spring that is hanging, the added force is always down so it just becomes a non-homogeneous term on the EoM. For a horizontal spring, the only way that weight matters is with friction, which is exactly what is being discussed here. Maybe I made a mistake in my reasoning here, in which case I am certainly open to being corrected.

AlephZero said:
The period of oscillation is not affected by the friction force, so you could write one complicated formula to represent the whole motion if you really wanted to, but in practice there's not much point doing that. But the analytic solution for each part of the motion IS useful if you want to look how the amplitude decays, the rate or energy dissipation, etc.

I agree.

AlephZero said:
Unlike damping proportional to velocity, the motion does not decay exponentially "for ever", it only continues for a finite number of cycles until the static friction is enough to hold the mass stationary.

Indeed. The Runge-Kutta solution I got to this showed this exact thing for all the initial conditions and physical constant values that I tried (needed a 30-min break from work earlier today, haha).

AlephZero said:
FWIW an accurate numerical solution of this is not as simple as it might appear. If you include the friction force in the model in a naive way, you will find the output from the model does not come to a stop, but goes into an apparently "chaotic" oscillation whose properties depend on the size of the time step you use, and not on the stiffness and mass of the structure, With a "clever" adaptive time stepping integration method, the results can look quite pretty - but completely wrong.

I recognize that this is always a possibility in any dynamical system, but I don't see that being a problem with this equation. I haven't done a stability analysis of it or anything, but just in a physical sense, you always have a constant force opposing the motion and no input force, so the amplitude should monotonically decrease regardless of initial conditions or the physical constants. The system seems to be dissipative to me based solely on inspection, so I feel like in this particular case, the system is globally stable.

I know what your saying though. That is, after all, related to how Ed Lorenz discovered strange attractors in the first place.
 

Similar threads

  • · Replies 131 ·
5
Replies
131
Views
9K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K