I would like to solve numerically the differential equation for the displacement
x[t] of a mass
k system with compliant stoppers.
The equation should be something like:
m x"[t] == -k x[t] -F[t]
F[t] should be defined so that:
Abs[x] is below a certain value
-it is equal to
- k2 (x[t] - x0) when
Abs[x] is above
Which Mathematica function should I use to define
F[t] so that
NDSolve can solve the corresponding equation?