Linearly damped string (source code)

= Linearly damped string

On the unit interval $0<x<1$, a fixed-end string with unit <wave speed> and damping coefficient1 obeys
$$
y_{tt}-y_{xx}+y_t=0,\qquad y(0,t)=y(1,t)=0.
$$
Expanding in the <Fourier sine series> $y=\sum_{n\geq1}T_n(t)\sin(n\pi x)$ gives $T_n''+T_n'+n^2\pi^2T_n=0$. Thus
$$
T_n(t)=e^{-t/2}[A_n\cos(\omega_nt)+B_n\sin(\omega_nt)],\qquad\omega_n=\sqrt{n^2\pi^2-1/4}.
$$
All these modes are <underdamped>; their frequency depends on the endpoint geometry as well as the damping. Nonunit length, speed or damping changes this modal equation.

For a sufficiently regular finite-energy solution, the <energy dissipation identity for a linearly damped string> is
$$
E(t)=\frac12\int_0^1(y_t^2+y_x^2)\,dx,\qquad E'(t)=-\int_0^1y_t^2\,dx.
$$
Multiply the equation by $y_t$ and integrate by parts; the fixed endpoints remove the boundary term. This identifies exactly where mechanical <energy> is lost. The modal solution also separates decay of the amplitude envelope from oscillatory changes of the actual displacement.