Let \(u(x, t)\) be a solution of the partial differential equation
$$
\frac{\partial^{2} u}{\partial t^{2}}-\frac{\partial^{2} u}{\partial
x^{2}}=\sin x \sin \omega t, \quad 00,
$$
and boundary conditions \(u(0, t)=0, u(\pi, t)=0, u(x, 0)=0, \partial u /
\partial t(x, 0)=0\). Show that resonance occurs only when \(\omega=\pm 1\) and
determine the form of the solution in the two cases: \(\omega=\pm 1, \omega
\neq \pm 1\). [The other resonant frequencies \(2,3, \ldots\) are not excited
because the force \(F(x, t)\) is orthogonal to the corresponding "basis vectors"
\(\sin 2 x, \sin 3 x, \ldots ; \mathrm{cf}\). Problem 9 following Section 10.3.]