It is easy to mathematically describe the motion of a mass which is attached to a spring and also pushed around by a sinusoidal force. We get a differential equation of the form:
$$\frac{\mathrm{d}^2x}{\mathrm{d}t^2}=-\omega^2x+A\cos(\omega't)$$
Applying the Fourier transform to this and integrating to obtain the energy, it is possible to see that the energy of the system peaks when $\omega'=\pm\omega$. This is resonance.
But resonance is observed in many situations which are not easy to describe mathematically. If you sing at a wine glass at the right pitch, it might resonate and crack. If an earthquake shakes a building at the right frequency, it might resonate and collapse. If winds shake a bridge at the right frequency, it might resonate and collapse.
Question: Is there a very general mathematical result that explains why resonance is such a widespread phenomenon? I suspect that even if there were such a result, it wouldn't be of much interest to physicists and engineers, for it would only confirm what they already know and consider obvious. This is why I am asking this question on MathOverflow.
Supplementary questions:
What can we assume about the form of the equation? In each of the examples I gave, there is presumably some partial differential equation that describes the system. But I don't think this equation is necessarily linear, and we also cannot assume that energy is conserved, because resonance is observed even in damped systems (e.g. systems with friction).
Wave equation: How can we prove that resonance in a system described by the wave equation $\nabla^2 f=\partial_t^2f$ happens when the driving frequency matches the eigenvalues of $\nabla^2$? What relates resonant frequencies to eigenfrequencies?
Edit (14/9): clarifications / further questions:
For convenience, let us limit our discussion to the wave equation.
Suppose the state of a system (e.g. the air in a closed room) is described by a function $u(\mathbf{x},t)$ (e.g. the air pressure at time $t$ and point $\mathbf{x}$ in the room), which obeys the wave equation:
$$\partial_t^2 u=\nabla^2 u$$
As Michael Engelhardt explains in his answer, the qualitative content of the wave equation is that the system is an ensemble of harmonic oscillators which are each coupled to their nearest neighbours. The restoring force that each oscillator exerts on the surrounding oscillators is (to a good approximation) linear.
Eric Towers explains in a comment that these are empirical truths which cannot be deduced through purely mathematical reasoning. I understand this, and I apologise for not making it completely clear what I was looking for.
Nature give us the premise that the system is described by the wave equation, and also the boundary conditions (e.g. if $u$ is air pressure, then there is no pressure gradient perpendicular to the walls of the room).
The rest of our discussion can proceed along purely mathematical lines.
Normal modes are eigenfunctions of the relevant linear operator (e.g. Laplace operator), and these eigenfunctions form a complete basis for the space of all solutions. This is a purely mathematical fact.
If our system is driven by external forces, the equation that describes it is now:
$$\partial_t^2 u=\nabla^2 u + f(\mathbf{x},t)$$
where $f$ describes the external forces.
I would like to see the following questions answered in mathematical terms.
Questions:
1.Mathematically, how do we describe the 'excitation' of a particular normal mode? What conditions must $f$ satisfy in order for $u$ to be, or approach asymptotically, a normal mode?
Why does resonance happen exactly when the system is in a normal mode? How can the correspondence between "resonance" and "normal mode" be seen mathematically?
Can resonance happen in only some regions of the system? How can this be expressed mathematically? For example, if a driving force is applied to the system in a very localised manner (e.g. a speaker playing a sound in the corner of a big room).