Theory of vibration with applications