Solution (source code)

= Solution

Use <incompressibility>, negligible <viscosity> and <surface tension>, and an initially <irrotational flow>. Take the undisturbed <free surface> at $z=0$ and bed at $z=-H$. The <velocity potential> $\varphi$ satisfies <Laplace equation> and $\varphi_z(-H)=0$. For a <Fourier mode>, write
$$
\varphi=A\cosh[k(z+H)]e^{i(kx-\omega t)},\qquad \eta=\eta_a e^{i(kx-\omega t)},\qquad k>0.
$$
The linear <kinematic boundary condition> and linear <Bernoulli equation> at the <free surface> are $\eta_t=\varphi_z$ and $\varphi_t+g\eta=0$. Eliminating $A,\eta_a$ gives the <surface gravity wave> <dispersion relation>
$$
\boxed{\omega^2=gk\tanh(kH)}.
$$
The rightward <phase velocity> and <group velocity> are
$$
c_p=\frac\omega k=\sqrt{\frac gk\tanh(kH)},\qquad c_g=\frac{d\omega}{dk}=\frac{c_p}{2}\left[1+\frac{2kH}{\sinh(2kH)}\right].
$$
The <phase velocity> transports a crest; the <group velocity> transports a narrow-band envelope and its leading-order <energy>. For $kH\gg1$, $\omega\sim\sqrt{gk}$ and $c_g\sim c_p/2\sim\sqrt{g/k}/2$: deep-water <surface gravity waves> are dispersive. For $kH\ll1$, $\omega\sim k\sqrt{gH}$ and $c_g\sim c_p\sim\sqrt{gH}$, the nondispersive <shallow-water dispersion relation>. The boundary <velocity> controls the excited amplitude; it does not change the linear <dispersion relation>.