ODE solutions for a driven oscillator in higher resonance modes An ODE for a driven, undamped, oscillator might be written as
$$
m\frac{d^2y}{dt^2}+ky=\sin{(\sqrt{k/m})}t
$$
If the initial conditions are $y(0)=0$ and $y'(0)=0$ and the values of parameters are $m=1$ and $k=1$, the solution is
$$
y=\frac{1}{2}(\sin t-t\cos t).
$$
That is, we expect an increasing amplitude over time, a resonance.
But an oscillating system has numerous resonance frequencies, $n\omega$ where $n=1,2,3,...$ for $\omega=\sqrt{k/m}$ . But the solution for $n>1$ does not imply an increasing amplitude, e.g $n=2$ gives us
$$
y=\frac{-2}{3}\sin{t}(\cos(t)-1)
$$
I can derive the resonance frequencies (the frequency which gives us a standing wave) for a wave on  string, based of the wave speed and the string's length, and if we apply a driving force in any resonance frequency we expect an increasing amplitude in the fundamental frequency as well as in higher modes. Is the above ODE not applicable in such cases?
 A: The full solution is $y(t) = \dfrac{\sin (\omega t) -\omega t \cos (\omega t)}{2 m \omega ^2}$ where $\omega^2 = \dfrac km$.
It may not look dimensionally correct but one must remember that there is a constant $1$ which multiplies the right-hand side of the differential equation and that $1$ has the dimensions of a force.
Let $\omega = 3$ and $m=1$ the graph of $y$ against $t$ looks like this.

As there is no damping term and the forcing frequency is equal to the natural frequency of oscillation of the system (the resonance condition) energy is pumped into the spring-mass system from the driver with no energy being lost by the system so the amplitude of motion of the mass increases without bound.
Note that there is only one natural frequency of oscillation with one mass and one spring.
As the number of masses and springs in a system increases so does the number of natural frequencies of oscillation of the system and hence the number of resonance frequencies.
So with two masses and three springs,

there are two resonant frequencies as explained here.
With a stretch string which can be thought of as very many masses (molecules)  connected together with very many strings (bonds between molecules) there are very many natural frequencies of oscillation and hence resonant frequencies.
A: An oscillating system may have numerous resonances, but not that system! That ODE represents a driven harmonic oscillator with exactly one resonant frequency and, indeed, if you apply an out-of-resonance driving force you get a bounded solution.
Systems with more than one resonant frequency are represented by higher-order differential equations or by partial differential equations (as in the case of continuous systems), but note also that, in general, the resonant frequencies need not be harmonics of a fundamental.
