Please wait for the animation to completely load.
A mass can be driven by an external force in addition to an internal restoring force and friction. Restart. Specifically, Fnet = Frestore + Ffriction + Fdriving, where the default values are
Frestore = -2*y, Ffriction = -0.2*vy, and Fdriving= sin(t).
You can change these default values as you see fit. Remember to use the proper syntax such as -10+0.5*t, -10+0.5*t*t, and -10+0.5*t^2. Revisit Exploration 1.3 to refresh your memory.
Drive the system (use a linear restoring force of -1*y and initially no friction) with a function that switches a constant force on and off. This can be achieved with the step function: step(sin(t/4)). The step function is zero if the argument is negative and one if the argument is positive. The given function, step(sin(t/4)), will therefore produce a square wave with amplitude of one and an angular frequency of one quarter. Note that the total force you should use is -1*y+step(sin(t/4)). Start the mass in its original position; do not drag it.
Note that the mass is not allowed to oscillate past about 22 m.