This Demonstration uses Laplace transforms to illustrate resonance and beating phenomenon. You can vary the spring mass , the dampening constant , the spring stiffness , and the frequency of the forcing function . Also shown are the transfer function and its decomposition using partial fractions.
See Chapter 5, Modeling with Partial Differential Equations in [1].
Reference
[1] J. R. Brannan and W. E. Boyce, Differential Equations with Boundary Value Problems: An Introduction to Modern Methods and Applications, New York: John Wiley and Sons, 2010.