Numerical Methods | |
|
Mass-nonlinear spring systemA mass $m$ is attached to a nonlinear linear spring that exerts a force $F=-kx|x|$. The spring is stretched 2 cm from its equilibrium position and the mass is released from rest. If friction is neglected, the mass oscillates around the equilibrium position of the spring. The acceleration of the mass is $a_x=-kx|x|/m$. The motion is in a line which we can take to be the $x$-axis. The equations are loaded into the numerical second order differential equation solver below. The period of the oscillations depends on the initial amplitude $x(t_0)$. |