# Cnoidal wave

In fluid dynamics, a cnoidal wave is a nonlinear and exact periodic wave solution of the Korteweg–de Vries equation. These solutions are in terms of the Jacobi elliptic function cn, which is why they are coined cnoidal waves. They are used to describe surface gravity waves of fairly long wavelength, as compared to the water depth.
The cnoidal wave solutions were derived by Korteweg and de Vries, in their 1895 paper in which they also propose their dispersive long-wave equation, now known as the Korteweg–de Vries equation. In the limit of infinite wavelength, the cnoidal wave becomes a solitary wave.
The Benjamin–Bona–Mahony equation has improved short-wavelength behaviour, as compared to the Korteweg–de Vries equation, and is another uni-directional wave equation with cnoidal wave solutions. Further, since the Korteweg–de Vries equation is an approximation to the Boussinesq equations for the case of one-way wave propagation, cnoidal waves are approximate solutions to the Boussinesq equations.
Cnoidal wave solutions can appear in other applications than surface gravity waves as well, for instance to describe ion acoustic waves in plasma physics.

## Background
### Korteweg–de Vries, and Benjamin–Bona–Mahony equations

The Korteweg–de Vries equation (KdV equation) can be used to describe the uni-directional propagation of weakly nonlinear and long waves—where long wave means: having long wavelengths as compared with the mean water depth—of surface gravity waves on a fluid layer. The KdV equation is a dispersive wave equation, including both frequency dispersion and amplitude dispersion effects. In its classical use, the KdV equation is applicable for wavelengths λ in excess of about five times the average water depth h, so for λ > 5 h; and for the period τ greater than $\scriptstyle 7{\sqrt {h/g}}$ with g the strength of the gravitational acceleration. To envisage the position of the KdV equation within the scope of classical wave approximations, it distinguishes itself in the following ways:
* Korteweg–de Vries equation — describes the forward propagation of weakly nonlinear and dispersive waves, for long waves with λ > 7 h.
* Shallow water equations — are also nonlinear and do have amplitude dispersion, but no frequency dispersion; they are valid for very long waves, λ > 20 h.
* Boussinesq equations — have the same range of validity as the KdV equation (in their classical form), but allow for wave propagation in arbitrary directions, so not only forward-propagating waves. The drawback is that the Boussinesq equations are often more difficult to solve than the KdV equation; and in many applications wave reflections are small and may be neglected.
* Airy wave theory — has full frequency dispersion, so valid for arbitrary depth and wavelength, but is a linear theory without amplitude dispersion, limited to low-amplitude waves.
* Stokes' wave theory — a perturbation-series approach to the description of weakly nonlinear and dispersive waves, especially successful in deeper water for relative short wavelengths, as compared to the water depth. However, for long waves the Boussinesq approach—as also applied in the KdV equation—is often preferred. This is because in shallow water the Stokes' perturbation series needs many terms before convergence towards the solution, due to the peaked crests and long flat troughs of the nonlinear waves. While the KdV or Boussinesq models give good approximations for these long nonlinear waves.
The KdV equation can be derived from the Boussinesq equations, but additional assumptions are needed to be able to split off the forward wave propagation. For practical applications, the Benjamin–Bona–Mahony equation (BBM equation) is preferable over the KdV equation, a forward-propagating model similar to KdV but with much better frequency-dispersion behaviour at shorter wavelengths. Further improvements in short-wave performance can be obtained by starting to derive a one-way wave equation from a modern improved Boussinesq model, valid for even shorter wavelengths.

### Cnoidal waves

The cnoidal wave solutions of the KdV equation were presented by Korteweg and de Vries in their 1895 paper, which article is based on the PhD thesis by de Vries in 1894. Solitary wave solutions for nonlinear and dispersive long waves had been found earlier by Boussinesq in 1872, and Rayleigh in 1876. The search for these solutions was triggered by the observations of this solitary wave (or "wave of translation") by Russell, both in nature and in laboratory experiments. Cnoidal wave solutions of the KdV equation are stable with respect to small perturbations.
The surface elevation η(x,t), as a function of horizontal position x and time t, for a cnoidal wave is given by:
    $\eta (x,t)=\eta _{2}+H\,\operatorname {cn} ^{2}\,\left({\begin{array}{c|c}\displaystyle 2\,K(m)\,{\frac {x-c\,t}{\lambda }}&m\end{array}}\right),$
where H is the wave height, λ is the wavelength, c is the phase speed and η$_2$ is the trough elevation. Further cn is one of the Jacobi elliptic functions and K(m) is the complete elliptic integral of the first kind; both are dependent on the elliptic parameter m. The latter, m, determines the shape of the cnoidal wave. For m equal to zero the cnoidal wave becomes a cosine function, while for values close to one the cnoidal wave gets peaked crests and (very) flat troughs. For values of m less than 0.95, the cnoidal function can be approximated with trigonometric functions.
An important dimensionless parameter for nonlinear long waves (λ ≫ h) is the Ursell parameter:
    $U={\frac {H\,\lambda ^{2}}{h^{3}}}={\frac {H}{h}}\,\left({\frac {\lambda }{h}}\right)^{2}.$
For small values of U, say U < 5, a linear theory can be used, and at higher values nonlinear theories have to be used, like cnoidal wave theory. The demarcation zone between—third or fifth order—Stokes' and cnoidal wave theories is in the range 10–25 of the Ursell parameter. As can be seen from the formula for the Ursell parameter, for a given relative wave height H/h the Ursell parameter—and thus also the nonlinearity—grows quickly with increasing relative wavelength λ/h.
Based on the analysis of the full nonlinear problem of surface gravity waves within potential flow theory, the above cnoidal waves can be considered the lowest-order term in a perturbation series. Higher-order cnoidal wave theories remain valid for shorter and more nonlinear waves. A fifth-order cnoidal wave theory was developed by Fenton in 1979. A detailed description and comparison of fifth-order Stokes' and fifth-order cnoidal wave theories is given in the review article by Fenton.
Cnoidal wave descriptions, through a renormalisation, are also well suited to waves on deep water, even infinite water depth; as found by Clamond. A description of the interactions of cnoidal waves in shallow water, as found in real seas, has been provided by Osborne in 1994.

### Surface tension

In case surface tension effects are (also) important, these can be included in the cnoidal wave solutions for long waves.

## Periodic wave solutions
### Korteweg–de Vries equation

The Korteweg–de Vries equation (KdV equation), as used for water waves and in dimensional form, is:
    $\partial _{t}\eta +{\sqrt {gh}}\;\partial _{x}\eta +{\tfrac {3}{2}}\,{\sqrt {\frac {g}{h}}}\;\eta \,\partial _{x}\eta +{\tfrac {1}{6}}\,h^{2}\,{\sqrt {gh}}\;\partial _{x}^{3}\eta =0,$
where
    η : surface elevation, a function of x and t, with the positive direction upwards (opposing gravity), x : horizontal coordinate, t : time, g : the value of Earth's gravity, h : the mean water depth, and ∂$_x$ and ∂$_t$ : partial derivative operators with respect to x and t.

#### Non-dimensionalisation

All quantities can be made dimensionless using the gravitational acceleration g and water depth h:
    ${\tilde {\eta }}={\frac {\eta }{h}},$ ${\tilde {x}}={\frac {x}{h}}$ and ${\tilde {t}}={\sqrt {\frac {g}{h}}}\,t.$
The resulting non-dimensional form of the KdV equation is
    $\partial _{\tilde {t}}{\tilde {\eta }}+\partial _{\tilde {x}}{\tilde {\eta }}+{\tfrac {3}{2}}\,{\tilde {\eta }}\,\partial _{\tilde {x}}{\tilde {\eta }}+{\tfrac {1}{6}}\,\partial _{\tilde {x}}^{3}{\tilde {\eta }}=0,$
In the remainder, the tildes will be dropped for ease of notation.

#### Relation to a standard form

The form
    $\partial _{\hat {t}}\phi +6\,\phi \ \partial _{\hat {x}}\phi +\partial _{\hat {x}}^{3}\phi =0$
is obtained through the transformation
    ${\hat {t}}={\tfrac {1}{6}}\,t,\,$ ${\hat {x}}=x-t\,$ and $\phi ={\tfrac {3}{2}}\,\eta ,\,$
but this form will not be used any further in this derivation.

#### Fixed-form propagating waves

Periodic wave solutions, travelling with phase speed c, are sought. These permanent waves have to be of the following:
    $\eta =\eta (\xi )\,$ with $\xi$ the wave phase: $\xi =x-c\,t.\,$
Consequently, the partial derivatives with respect to space and time become:
    $\partial _{x}\eta =\eta '\,$ and $\partial _{t}\eta =-c\,\eta ',\,$
where η′ denotes the ordinary derivative of η(ξ) with respect to the argument ξ.
Using these in the KdV equation, the following third-order ordinary differential equation is obtained:
    ${\tfrac {1}{6}}\,\eta '''+\left(1-c\right)\,\eta '+{\tfrac {3}{2}}\,\eta \,\eta '=0.\,$

#### Integration to a first-order ordinary differential equation

This can be integrated once, to obtain:
    ${\tfrac {1}{6}}\eta ''+\left(1-c\right)\,\eta +{\tfrac {3}{4}}\,\eta ^{2}={\tfrac {1}{4}}r,\,$
with r an integration constant. After multiplying with 4 η′, and integrating once more
    ${\tfrac {1}{3}}\left(\eta '\right)^{2}+2\,\left(1-c\right)\,\eta ^{2}+\eta ^{3}=r\,\eta +s,\,$
with s another integration constant. This is written in the form
| ${\tfrac {1}{3}}\left(\eta '\right)^{2}=f(\eta )\,$ with $f(\eta )=-\eta ^{3}+2\,\left(c-1\right)\,\eta ^{2}+r\,\eta +s.\,$ | (A) |
The cubic polynomial f(η) becomes negative for large positive values of η, and positive for large negative values of η. Since the surface elevation η is real valued, also the integration constants r and s are real. The polynomial f can be expressed in terms of its roots η$_1$, η$_2$ and η$_3$:
| $f(\eta )=-\left(\eta -\eta _{1}\right)\,\left(\eta -\eta _{2}\right)\,\left(\eta -\eta _{3}\right).$ | (B) |
Because f(η) is real valued, the three roots η$_1$, η$_2$ and η$_3$ are either all three real, or otherwise one is real and the remaining two are a pair of complex conjugates. In the latter case, with only one real-valued root, there is only one elevation η at which f(η) is zero. And consequently also only one elevation at which the surface slope η′ is zero. However, we are looking for wave like solutions, with two elevations—the wave crest and trough (physics)—where the surface slope is zero. The conclusion is that all three roots of f(η) have to be real valued.
Without loss of generality, it is assumed that the three real roots are ordered as:
    $\eta _{1}\geq \eta _{2}\geq \eta _{3}.\,$

#### Solution of the first-order ordinary-differential equation

Now, from equation (A) it can be seen that only real values for the slope exist if f(η) is positive. This corresponds with η$_2$ ≤ η≤ η$_1$, which therefore is the range between which the surface elevation oscillates, see also the graph of f(η). This condition is satisfied with the following representation of the elevation η(ξ):
| $\eta (\xi )=\eta _{1}\;\cos ^{2}\,\psi (\xi )+\eta _{2}\,\sin ^{2}\,\psi (\xi ),$ | (C) |
in agreement with the periodic character of the sought wave solutions and with ψ(ξ) the phase of the trigonometric functions sin and cos. From this form, the following descriptions of various terms in equations (A) and (B) can be obtained:
    ${\begin{aligned}\eta -\eta _{1}&=-\left(\eta _{1}-\eta _{2}\right)\;\sin ^{2}\,\psi (\xi ),\\\eta -\eta _{2}&=+\left(\eta _{1}-\eta _{2}\right)\;\cos ^{2}\,\psi (\xi ),\\\eta -\eta _{3}&=\left(\eta _{1}-\eta _{3}\right)-\left(\eta _{1}-\eta _{2}\right)\;\sin ^{2}\,\psi (\xi ),&&{\text{and}}\\\eta '&=-2\,\left(\eta _{1}-\eta _{2}\right)\;\sin \,\psi (\xi )\;\cos \,\psi (\xi )\;\;\psi '(\xi )&&{\text{with}}\quad \psi '(\xi )={\frac {{\text{d}}\psi (\xi )}{{\text{d}}\xi }}.\end{aligned}}$
Using these in equations (A) and (B), the following ordinary differential equation relating ψ and ξ is obtained, after some manipulations:
    ${\frac {4}{3}}\,\left({\frac {{\text{d}}\psi }{{\text{d}}\xi }}\right)^{2}=\left(\eta _{1}-\eta _{3}\right)-\left(\eta _{1}-\eta _{2}\right)\;\sin ^{2}\,\psi (\xi ),$
with the right hand side still positive, since η$_1$ − η$_3$ ≥ η$_1$ − η$_2$. Without loss of generality, we can assume that ψ(ξ) is a monotone function, since f(η) has no zeros in the interval η$_2$ < η < η$_1$. So the above ordinary differential equation can also be solved in terms of ξ(ψ) being a function of ψ:
    ${\frac {1}{\Delta }}\,{\frac {{\text{d}}\xi }{{\text{d}}\psi }}=\pm \,{\frac {1}{\sqrt {1-m\sin ^{2}\,\psi }}},$
with:
    $\Delta ^{2}={\frac {4}{3}}\,{\frac {1}{\eta _{1}-\eta _{3}}}$ and $m={\frac {\eta _{1}-\eta _{2}}{\eta _{1}-\eta _{3}}},$
where m is the so-called elliptic parameter, satisfying 0 ≤ m ≤ 1 (because η$_3$ ≤ η$_2$ ≤ η$_1$). If ξ = 0 is chosen at the wave crest η(0) = η$_1$ integration gives
| $\xi =\pm \,\Delta \,\int _{0}^{\psi }{\frac {{\text{d}}{\hat {\psi }}}{\sqrt {1-m\,\sin ^{2}{\hat {\psi }}}}}=\pm \,\Delta \,F(\psi |m),$ | (D) |
with F(ψ|m) the incomplete elliptic integral of the first kind. The Jacobi elliptic functions cn and sn are inverses of F(ψ|m) given by
    $\cos \,\psi =\operatorname {cn} \left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right)$ and $\sin \,\psi =\operatorname {sn} \left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right).$
With the use of equation (C), the resulting cnoidal-wave solution of the KdV equation is found
    $\eta (\xi )=\eta _{2}+\left(\eta _{1}-\eta _{2}\right)\,\operatorname {cn} ^{2}\left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right).$
What remains, is to determine the parameters: η$_1$, η$_2$, Δ and m.

#### Relationships between the cnoidal-wave parameters

First, since η$_1$ is the crest elevation and η$_2$ is the trough elevation, it is convenient to introduce the wave height, defined as H = η$_1$ − η$_2$. Consequently, we find for m and for Δ:
    $m={\frac {H}{\eta _{1}-\eta _{3}}}$ and ${\frac {\Delta ^{2}}{m}}={\frac {4}{3\,H}}$ so $\Delta ={\sqrt {{\frac {4}{3}}{\frac {m}{H}}}}.$
The cnoidal wave solution can be written as:
    $\eta (\xi )=\eta _{2}+H\,\operatorname {cn} ^{2}\left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right).$
Second, the trough is located at ψ = ⁠1/2⁠ π, so the distance between ξ = 0 and ξ = ⁠1/2⁠ λ is, with λ the wavelength, from equation (D):
    ${\tfrac {1}{2}}\,\lambda =\Delta \,F\left({\begin{array}{c|c}{\tfrac {1}{2}}\,\pi &m\end{array}}\right)=\Delta \,K(m),$ giving $\lambda =2\,\Delta \,K(m)={\sqrt {{\frac {16}{3}}{\frac {m}{H}}}}\;K(m),$
where K(m) is the complete elliptic integral of the first kind. Third, since the wave oscillates around the mean water depth, the average value of η(ξ) has to be zero. So
    ${\begin{aligned}0&=\int _{0}^{\lambda }\eta (\xi )\;{\text{d}}\xi =2\,\int _{0}^{{\tfrac {1}{2}}\lambda }\left[\eta _{2}+\left(\eta _{1}-\eta _{2}\right)\,\operatorname {cn} ^{2}\,\left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right)\right]\;{\text{d}}\xi \\&=2\,\int _{0}^{{\tfrac {1}{2}}\pi }{\Bigl\eta _{2}+\left(\eta _{1}-\eta _{2}\right)\,\cos ^{2}\,\psi {\Bigr ]}\,{\frac {{\text{d}}\xi }{{\text{d}}\psi }}\;{\text{d}}\psi =2\,\Delta \,\int _{0}^{{\tfrac {1}{2}}\pi }{\frac {\eta _{1}-\left(\eta _{1}-\eta _{2}\right)\,\sin ^{2}\,\psi }{\sqrt {1-m\,\sin ^{2}\,\psi }}}\;{\text{d}}\psi \\&=2\,\Delta \,\int _{0}^{{\tfrac {1}{2}}\pi }{\frac {\eta _{1}-m\,\left(\eta _{1}-\eta _{3}\right)\,\sin ^{2}\,\psi }{\sqrt {1-m\,\sin ^{2}\,\psi }}}\;{\text{d}}\psi =2\,\Delta \,\int _{0}^{{\tfrac {1}{2}}\pi }\left[{\frac {\eta _{3}}{\sqrt {1-m\,\sin ^{2}\,\psi }}}+\left(\eta _{1}-\eta _{3}\right)\,{\sqrt {1-m\,\sin ^{2}\,\psi }}\right]\;{\text{d}}\psi \\&=2\,\Delta \,{\Bigl\eta _{3}\,K(m)+\left(\eta _{1}-\eta _{3}\right)\,E(m){\Bigr ]}=2\,\Delta \,{\Bigl\eta _{3}\,K(m)+{\frac {H}{m}}\,E(m){\Bigr ]},\end{aligned}}$
where E(m) is the complete elliptic integral of the second kind. The following expressions for η$_1$, η$_2$ and η$_3$ as a function of the elliptic parameter m and wave height H result:
    $\eta _{3}=-\,{\frac {H}{m}}\,{\frac {E(m)}{K(m)}},$ $\eta _{1}={\frac {H}{m}}\,\left(1-{\frac {E(m)}{K(m)}}\right)$ and $\eta _{2}={\frac {H}{m}}\,\left(1-m-{\frac {E(m)}{K(m)}}\right).$
Fourth, from equations (A) and (B) a relationship can be established between the phase speed c and the roots η$_1$, η$_2$ and η$_3$:
    $c=1+{\tfrac {1}{2}}\,\left(\eta _{1}+\eta _{2}+\eta _{3}\right)=1+{\frac {H}{m}}\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right).$
The relative phase-speed changes are depicted in the figure below. As can be seen, for m > 0.96 (so for 1 − m < 0.04) the phase speed increases with increasing wave height H. This corresponds with the longer and more nonlinear waves. The nonlinear change in the phase speed, for fixed m, is proportional to the wave height H. Note that the phase speed c is related to the wavelength λ and period τ as:
    $c={\frac {\lambda }{\tau }}.$

#### Résumé of the solution

All quantities here will be given in their dimensional forms, as valid for surface gravity waves before non-dimensionalisation.
The cnoidal-wave solution of the KdV equation is:
    $\eta (x,t)=\eta _{2}+H\,\operatorname {cn} ^{2}\left({\begin{array}{c|c}\displaystyle {\frac {x-c\,t}{\Delta }}&m\end{array}}\right),$
with H the wave height—the difference between crest and trough elevation, η$_2$ the trough elevation, m the elliptic parameter, c the phase speed and cn one of the Jacobi elliptic functions. The trough level η$_2$ and width parameter Δ can be expressed in terms of H, h and m:
    $\eta _{2}={\frac {H}{m}}\,\left(1-m-{\frac {E(m)}{K(m)}}\right),$ and $\Delta ={\frac {\lambda }{2\,K(m)}}\,=h\,{\sqrt {{\frac {4}{3}}{\frac {m\,h}{H}}}},$
with K(m) the complete elliptic integral of the first kind and E(m) the complete elliptic integral of the second kind. Note that K(m) and E(m) are denoted here as a function of the elliptic parameter m and not as a function of the elliptic modulus k, with m = k$^2$.
The wavelength λ, phase speed c and wave period τ are related to H, h and m by:
    $\lambda =h\,{\sqrt {{\frac {16}{3}}{\frac {m\,h}{H}}}}\;K(m),$ $c={\sqrt {gh}}\,\left[1+{\frac {H}{m\,h}}\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)\right]$ and $\tau ={\frac {\lambda }{c}},$
with g the Earth's gravity.
Most often, the known wave parameters are the wave height H, mean water depth h, gravitational acceleration g, and either the wavelength λ or else the period τ. Then the above relations for λ, c and τ are used to find the elliptic parameter m. This requires numerical solution by some iterative method.

### Benjamin–Bona–Mahony equation

The Benjamin–Bona–Mahony equation (BBM equation), or regularised long wave (RLW) equation, is in dimensional form given by:
    $\partial _{t}\eta +{\sqrt {g\,h}}\,\partial _{x}\eta +{\tfrac {3}{2}}\,{\sqrt {\frac {g}{h}}}\,\eta \,\partial _{x}\eta -{\tfrac {1}{6}}\,h^{2}\,\partial _{t}\,\partial _{x}^{2}\eta =0.$
All quantities have the same meaning as for the KdV equation. The BBM equation is often preferred over the KdV equation because it has a better short-wave behaviour.

#### Derivation

The derivation is analogous to the one for the KdV equation. The dimensionless BBM equation is, non-dimensionalised using mean water depth h and gravitational acceleration g:
    $\partial _{t}\eta +\partial _{x}\eta +{\tfrac {3}{2}}\,\eta \,\partial _{x}\eta -{\tfrac {1}{6}}\,\partial _{t}\,\partial _{x}^{2}\eta =0.$
This can be brought into the standard form
    $\partial _{\hat {t}}\varphi +\partial _{\hat {x}}\varphi +\varphi \,\partial _{\hat {x}}\varphi -\partial _{\hat {t}}\,\partial _{\hat {x}}^{2}\varphi =0\,$
through the transformation:
    ${\hat {t}}={\sqrt {6}}\,t,$ ${\hat {x}}={\sqrt {6}}\,x$ and $\varphi ={\tfrac {3}{2}}\,\eta ,$
but this standard form will not be used here.
Analogue to the derivation of the cnoidal wave solution for the KdV equation, periodic wave solutions η(ξ), with ξ = x−ct are considered Then the BBM equation becomes a third-order ordinary differential equation, which can be integrated twice, to obtain:
    ${\tfrac {1}{3}}\,c\,\left(\eta '\right)^{2}=f(\eta )\,$ with $f(\eta )=-\eta ^{3}+2\,\left(c-1\right)\,\eta ^{2}+r\,\eta +s.\,$
Which only differs from the equation for the KdV equation through the factor c in front of (η′)$^2$ in the left hand side. Through a coordinate transformation β = ξ / $\scriptstyle {\sqrt {c}}$ the factor c may be removed, resulting in the same first-order ordinary differential equation for both the KdV and BBM equation. However, here the form given in the preceding equation is used. This results in a different formulation for Δ as found for the KdV equation:
    $\Delta ={\sqrt {{\frac {4}{3}}{\frac {m\,c}{H}}}}.$
The relation of the wavelength λ, as a function of H and m, is affected by this change in $\Delta :$
    $\lambda ={\sqrt {{\frac {16}{3}}\,{\frac {m\,c}{H}}}}\;K(m).$
For the rest, the derivation is analogous to the one for the KdV equation, and will not be repeated here.

#### Résumé

The results are presented in dimensional form, for water waves on a fluid layer of depth h.
The cnoidal wave solution of the BBM equation, together with the associated relationships for the parameters is:
    ${\begin{aligned}\eta (x,t)&=\eta _{2}+H\,\operatorname {cn} ^{2}\left({\begin{array}{c|c}\displaystyle {\frac {x-c\,t}{\Delta }}&m\end{array}}\right),\\\eta _{2}&={\frac {H}{m}}\,\left(1-m-{\frac {E(m)}{K(m)}}\right),\\\Delta &=h\,{\sqrt {{\frac {4}{3}}\,{\frac {m\,h}{H}}\,{\frac {c}{\sqrt {g\,h}}}}}&&={\frac {\lambda }{2\,K(m)}},\\\lambda &=h\,{\sqrt {{\frac {16}{3}}\,{\frac {m\,h}{H}}\,{\frac {c}{\sqrt {gh}}}}}\;K(m),\\c&={\sqrt {gh}}\,\left[1+{\frac {H}{m\,h}}\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)\right]&&{\text{and}}\\\tau &={\frac {\lambda }{c}}.\end{aligned}}$
The only difference with the cnoidal wave solution of the KdV equation is in the equation for the wavelength λ. For practical applications, usually the water depth h, wave height H, gravitational acceleration g, and either the wavelength λ, or—most often—the period (physics) τ are provided. Then the elliptic parameter m has to be determined from the above relations for λ, c and τ through some iterative method.

## Example

In this example, a cnoidal wave according to the Korteweg–de Vries (KdV) equation is considered. The following parameters of the wave are given:
* mean water depth h = 5 m (16 ft),
* wave height H = 3 m (9.8 ft),
* wave period τ = 7 s, and
* gravitational acceleration g = 9.81 m/s$^2$ (32 ft/s$^2$).
Instead of the period τ, in other cases the wavelength λ may occur as a quantity known beforehand.
First, the dimensionless period is computed:
    $\tau \,{\sqrt {\frac {g}{h}}}=9.80,$
which is larger than seven, so long enough for cnoidal theory to be valid. The main unknown is the elliptic parameter m. This has to be determined in such a way that the wave period τ, as computed from cnoidal wave theory for the KdV equation:
    $\lambda =h\,{\sqrt {{\frac {16}{3}}{\frac {m\,h}{H}}}}\;K(m),$ $c={\sqrt {gh}}\,\left[1+{\frac {H}{m\,h}}\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)\right]$ and $\tau ={\frac {\lambda }{c}},$
is consistent with the given value of τ; here λ is the wavelength and c is the phase speed of the wave. Further, K(m) and E(m) are complete elliptic integrals of the first and second kind, respectively. Searching for the elliptic parameter m can be done by trial and error, or by use of a numerical root-finding algorithm. In this case, starting from an initial guess m$_{init}$ = 0.99, by trial and error the answer
    $m=0.9832\,$
is found. Within the process, the wavelength λ and phase speed c have been computed:
* wavelength λ = 50.8 m (167 ft), and
* phase speed c = 7.26 m/s (23.8 ft/s).
The phase speed c can be compared with its value $\scriptstyle {\sqrt {gh}}$ according to the shallow water equations:
    ${\frac {c}{\sqrt {g\,h}}}=1.0376,$
showing a 3.8% increase due to the effect of nonlinear amplitude dispersion, which wins in this case from the reduction of phase speed by frequency dispersion.
Now the wavelength is known, the Ursell number can be computed as well:
    $U={\frac {H\,\lambda ^{2}}{h^{3}}}=62,$
which is not small, so linear wave theory is not applicable, but cnoidal wave theory is. Finally, the ratio of wavelength to depth is λ / h = 10.2 > 7, again indicating this wave is long enough to be considered as a cnoidal wave.

## Solitary-wave limit

For very long nonlinear waves, with the parameter m close to one, m → 1, the Jacobi elliptic function cn can be approximated by
    $\operatorname {cn} \left(z|m\right)\approx \operatorname {sech} (z)-{\tfrac {1}{4}}\,(1-m)\,{\Bigl\sinh(z)\;\cosh(z)-z{\Bigr ]}\,\tanh(z)\;\operatorname {sech} (z),$ with $\operatorname {sech} (z)={\frac {1}{\cosh(z)}}.$
Here sinh, cosh, tanh and sech are hyperbolic functions. In the limit m = 1:
    $\operatorname {cn} \left(z|m\right)\to \operatorname {sech} (z),$
with sech(z) = 1 / cosh(z).
Further, for the same limit of m → 1, the complete elliptic integral of the first kind K(m) goes to infinity, while the complete elliptic integral of the second kind E(m) goes to one. This implies that the limiting values of the phase speed c and minimum elevelation η$_2$ become:
    $c={\sqrt {g\,h}}\,\left(1+{\frac {1}{2}}\,{\frac {H}{h}}\right)$ and $\eta _{2}=0.\,$
Consequently, in terms of the width parameter Δ, the solitary wave solution to both the KdV and BBM equation is:
    $\eta (x,t)=H\,\operatorname {sech} ^{2}\left({\frac {x-c\,t}{\Delta }}\right).$
The width parameter, as found for the cnoidal waves and now in the limit m → 1, is different for the KdV and the BBM equation:
    $\Delta =h\,{\sqrt {\frac {4\,h}{3\,H}}}$ : KdV equation, and $\Delta =h\,{\sqrt {{\frac {4\,h}{3\,H}}\,{\frac {c}{\sqrt {g\,h}}}}}$ : BBM equation.
But the phase speed of the solitary wave in both equations is the same, for a certain combination of height H and depth h.

## Limit of infinitesimal wave height

For infinitesimal wave height the results of cnoidal wave theory are expected to converge towards those of Airy wave theory for the limit of long waves λ ≫ h. First the surface elevation, and thereafter the phase speed, of the cnoidal waves for infinitesimal wave height will be examined.

### Surface elevation

The Jacobi elliptic function cn can be expanded into a Fourier series
    $\operatorname {cn} (z|m)={\frac {\pi }{{\sqrt {m}}\,K(m)}}\,\sum _{n=0}^{\infty }\,\operatorname {sech} \left((2n+1)\,{\frac {\pi \,K'(m)}{2\,K(m)}}\right)\;\cos \left((2n+1)\,{\frac {\pi \,z}{2\,K(m)}}\right).$
K′(m) is known as the imaginary quarter period, while K(m) is also called the real quarter period of the Jacobi elliptic function. They are related through: K′(m) = K(1−m)
Since the interest here is in small wave height, corresponding with small parameter m ≪ 1, it is convenient to consider the Maclaurin series for the relevant parameters, to start with the complete elliptic integrals K and E:
    ${\begin{aligned}K(m)&={\frac {\pi }{2}}\,\left[1+\left({\frac {1}{2}}\right)^{2}\,m+\left({\frac {1\,\cdot \,3}{2\,\cdot \,4}}\right)^{2}\,m^{2}+\left({\frac {1\,\cdot \,3\,\cdot \,5}{2\,\cdot \,4\,\cdot \,6}}\right)^{2}\,m^{3}+\cdots \right],\\E(m)&={\frac {\pi }{2}}\,\left[1-\left({\frac {1}{2}}\right)^{2}\,{\frac {m}{1}}-\left({\frac {1\,\cdot \,3}{2\,\cdot \,4}}\right)^{2}\,{\frac {m^{2}}{3}}-\left({\frac {1\,\cdot \,3\,\cdot \,5}{2\,\cdot \,4\,\cdot \,6}}\right)^{2}\,{\frac {m^{3}}{5}}-\cdots \right].\end{aligned}}$
Then the hyperbolic-cosine terms, appearing in the Fourier series, can be expanded for small m ≪ 1 as follows:
    $\operatorname {sech} \left((2n+1)\,{\frac {\pi \,K'(m)}{2\,K(m)}}\right)=2\,{\frac {q^{n+{\tfrac {1}{2}}}}{1+q^{2n+1}}}$ with the nome q given by $q=\exp \left(-\pi \,{\frac {K'(m)}{K(m)}}\right).$
The nome q has the following behaviour for small m:
    $q={\frac {m}{16}}+8\,\left({\frac {m}{16}}\right)^{2}+84\,\left({\frac {m}{16}}\right)^{3}+992\,\left({\frac {m}{16}}\right)^{4}+\cdots .$
Consequently, the amplitudes of the first terms in the Fourier series are:
    $n=0\,$ : ${\frac {\pi }{{\sqrt {m}}\,K(m)}}\,\operatorname {sech} \,\left({\frac {\pi \,K'(m)}{2\,K(m)}}\right)=1-{\tfrac {1}{16}}\,m-{\tfrac {9}{16}}\,m^{2}+\cdots ,$ $n=1\,$ : ${\frac {\pi }{{\sqrt {m}}\,K(m)}}\,\operatorname {sech} \,\left({\frac {3\,\pi \,K'(m)}{2\,K(m)}}\right)={\tfrac {1}{16}}\,m+{\tfrac {1}{32}}\,m^{2}+\cdots ,$ $n=2\,$ : ${\frac {\pi }{{\sqrt {m}}\,K(m)}}\,\operatorname {sech} \,\left({\frac {5\,\pi \,K'(m)}{2\,K(m)}}\right)={\tfrac {1}{256}}\,m^{2}+\cdots .$
So, for m ≪ 1 the Jacobi elliptic function has the first Fourier series terms:
    ${\begin{aligned}\operatorname {cn} \,(z|m)&={\Bigl1-{\tfrac {1}{16}}\,m-{\tfrac {9}{16}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,\alpha \,z\;\\&+\;{\Bigl{\tfrac {1}{16}}\,m+{\tfrac {1}{32}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,2\,\alpha \,z\;\\&+\;{\Bigl{\tfrac {1}{256}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,3\,\alpha \,z\;+\;\cdots ,\end{aligned}}$ with $\alpha \equiv {\frac {\pi }{2\,K(m)}}.$
And its square is
    ${\begin{aligned}\operatorname {cn} ^{2}\,(z|m)&={\Bigl{\tfrac {1}{2}}-{\tfrac {1}{16}}\,m-{\tfrac {1}{32}}\,m^{2}+\cdots &&{\Bigr )}\\&+\;{\Bigl{\tfrac {1}{2}}-{\tfrac {3}{512}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,2\,\alpha \,z\;\\&+\;{\Bigl{\tfrac {1}{16}}\,m+{\tfrac {1}{32}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,4\,\alpha \,z\;\\&+\;{\Bigl{\tfrac {3}{512}}\,m^{2}+\cdots &&{\Bigr )}\;\cos \,6\,\alpha \,z\;+\;\cdots .\end{aligned}}$
The free surface η(x,t) of the cnoidal wave will be expressed in its Fourier series, for small values of the elliptic parameter m. First, note that the argument of the cn function is ξ/Δ, and that the wavelength λ = 2 Δ K(m), so:
    $\theta \equiv {\frac {\pi \,\xi }{K(m)}}\,{\frac {\xi }{\Delta }}=2\,\pi \,{\frac {\xi }{\lambda }}.$
Further, the mean free-surface elevation is zero. Therefore, the surface elevation of small amplitude waves is
    $\eta (x,t)=\;H\,{\Bigl{\tfrac {1}{2}}-{\tfrac {3}{512}}\,m^{2}+\cdots {\Bigr )}\,\cos \,\theta \;+\;H\,{\Bigl{\tfrac {1}{16}}\,m+{\tfrac {1}{32}}\,m^{2}+\cdots {\Bigr )}\,\cos \,2\theta \;+\;H\,{\Bigl{\tfrac {3}{512}}\,m^{2}+\cdots {\Bigr )}\,\cos \,3\theta \;+\;\cdots .$
Also the wavelength λ can be expanded into a Maclaurin series of the elliptic parameter m, differently for the KdV and the BBM equation, but this is not necessary for the present purpose.
    Note: The limiting behaviour for zero m—at infinitesimal wave height—can also be seen from:  $\operatorname {cn} (z|m)\approx \cos(z)+{\tfrac {1}{4}}\,m\,{\biglz-\sin(z)\,\cos(z){\bigr )}\,\sin(z)+\cdots ,$ but the higher-order term proportional to m in this approximation contains a secular term, due to the mismatch between the period of cn(z|m), which is 4 K(m), and the period 2π for the cosine cos(z). The above Fourier series for small m does not have this drawback, and is consistent with forms as found using the Lindstedt–Poincaré method in perturbation theory.
For infinitesimal wave height, in the limit m → 0, the free-surface elevation becomes:
    $\eta (x,t)={\tfrac {1}{2}}\,H\,\cos \,\theta ,$ with $\theta =2\,\pi \,{\frac {\xi }{\lambda }}=2\,\pi \ {\frac {x-c\,t}{\lambda }}.$
So the wave amplitude is ⁠1/2⁠H, half the wave height. This is of the same form as studied in Airy wave theory, but note that cnoidal wave theory is only valid for long waves with their wavelength much longer than the average water depth.

### Phase speed

The phase speed of a cnoidal wave, both for the KdV and BBM equation, is given by:
    $c={\sqrt {gh}}\,\left[1+{\frac {H}{m\,h}}\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)\right].$
In this formulation the phase speed is a function of wave height H and parameter m. However, for the determination of wave propagation for waves of infinitesimal height, it is necessary to determine the behaviour of the phase speed at constant wavelength λ in the limit that the parameter m approaches zero. This can be done by using the equation for the wavelength, which is different for the KdV and BBM equation:
    KdV : $\lambda =h\,{\sqrt {{\frac {16}{3}}\,{\frac {mh}{H}}}}\,K(m),$ BBM : $\lambda =h\,{\sqrt {{\frac {16}{3}}\,{\frac {mh}{H}}\,{\frac {c}{\sqrt {g\,h}}}}}\,K(m),$
Introducing the relative wavenumber κh:
    $\kappa \,h={\frac {2\,\pi }{\lambda }}\,h,$
and using the above equations for the phase speed and wavelength, the factor H / m in the phase speed can be replaced by κh and m. The resulting phase speeds are:
    KdV : $c={\sqrt {gh}}\,\left[1+(\kappa \,h)^{2}\,{\frac {4}{3\,\pi ^{2}}}\,K^{2}(m)\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)\right],$ BBM : $c={\sqrt {gh}}\,{\frac {1}{\displaystyle 1-(\kappa \,h)^{2}\,{\frac {4}{3\,\pi ^{2}}}\,K^{2}(m)\,\left(1-{\frac {1}{2}}\,m-{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)}}.$
The limiting behaviour for small m can be analysed through the use of the Maclaurin series for K(m) and E(m), resulting in the following expression for the common factor in both formulas for c:
    $\gamma ={\frac {4}{3\,\pi ^{2}}}\,K^{2}(m)\,\left(1-{\frac {1}{2}}\,m-\,{\frac {3}{2}}\,{\frac {E(m)}{K(m)}}\right)=-{\tfrac {1}{6}}+{\tfrac {1}{64}}\,m^{2}+{\tfrac {1}{64}}\,m^{3}+\cdots ,$
so in the limit m → 0, the factor γ → −⁠1/6⁠. The limiting value of the phase speed for m ≪ 1 directly results.
The phase speeds for infinitesimal wave height, according to the cnoidal wave theories for the KdV equation and BBM equation, are
    KdV : $c={\Bigl1-{\tfrac {1}{6}}\,\left(\kappa h\right)^{2}{\Bigr ]}\,{\sqrt {g\,h}},$ BBM :$c={\frac {1}{1+{\tfrac {1}{6}}\,\left(\kappa h\right)^{2}}}\,{\sqrt {g\,h}},$
with κ = 2π / λ the wavenumber and κh the relative wavenumber. These phase speeds are in full agreement with the result obtained by directly searching for sine-wave solutions of the linearised KdV and BBM equations. As is evident from these equations, the linearised BBM equation has a positive phase speed for all κh. On the other hand, the phase speed of the linearised KdV equation changes sign for short waves with κh > $\scriptstyle {\sqrt {6}}$. This is in conflict with the derivation of the KdV equation as a one-way wave equation.

## Direct derivation from the full inviscid-flow equations

Cnoidal waves can be derived directly from the inviscid, irrotational and incompressible flow equations, and expressed in terms of three invariants of the flow, as shown by Benjamin & Lighthill (1954) in their research on undular bores. In a frame of reference moving with the phase speed, in which reference frame the flow becomes a steady flow, the cnoidal wave solutions can directly be related to the mass flux, momentum flux and energy head of the flow. Following Benjamin & Lighthill (1954)—using a stream function description of this incompressible flow—the horizontal and vertical components of the flow velocity are the spatial derivatives of the stream function Ψ(ξ,z): +∂$_z$Ψ and −∂$_ξ$Ψ, in the ξ and z direction respectively (ξ = x−ct). The vertical coordinate z is positive in the upward direction, opposite to the direction of the gravitational acceleration, and the zero level of z is at the impermeable lower boundary of the fluid domain. While the free surface is at z = ζ(ξ); note that ζ is the local water depth, related to the surface elevation η(ξ) as ζ = h + η with h the mean water depth.
In this steady flow, the discharge Q through each vertical cross section is a constant independent of ξ, and because of the horizontal bed also the horizontal momentum flux S, divided by the density ρ, through each vertical cross section is conserved. Further, for this inviscid and irrotational flow, Bernoulli's principle can be applied and has the same Bernoulli constant R everywhere in the flow domain. They are defined as:
    ${\begin{aligned}Q&=\int _{0}^{\zeta (\xi )}\partial _{z}\Psi \;{\text{d}}z,\\R&={\frac {p}{\rho }}+{\tfrac {1}{2}}\,{\Bigl\left(\partial _{\xi }\Psi \right)^{2}+\left(\partial _{z}\Psi \right)^{2}{\Bigr ]}+g\,z\qquad {\text{and}}\\S&=\int _{0}^{\zeta (\xi )}\left[{\frac {p}{\rho }}+\left(\partial _{z}\Psi \right)^{2}\right]\;{\text{d}}z.\end{aligned}}$
For fairly long waves, assuming the water depth ζ is small compared to the wavelength λ, the following relation is obtained between the water depth ζ(ξ) and the three invariants Q, R and S:
| ${\tfrac {1}{3}}\,Q^{2}\,\left(\zeta '\right)^{2}\approx -g\,\zeta ^{3}+2\,R\,\zeta ^{2}-2\,S\,\zeta +Q^{2}.$ | (E) |
This nonlinear and first-order ordinary differential equation has cnoidal wave solutions.
For very long waves of infinitesimal amplitude on a fluid of depth h and with a uniform flow velocity v, the flow constants are according to the shallow water equations:
    $Q_{0}=v\,h,$ $R_{0}={\tfrac {1}{2}}\,v^{2}+g\,h$ and $S_{0}=v^{2}\,h+{\tfrac {1}{2}}\,g\,h^{2}.$
Equation (E) can be brought into non-dimensional form by use of the discharge Q and gravitational acceleration g, and defining the critical depth h$_c$:
    $h_{c}={\sqrt[{3}]{\frac {Q^{2}}{g}}},$
related to the critical flow demarcation between subcritical flow and supercritical flow (see also Froude number). Consequently, the non-dimensional form of the equation is
    ${\tfrac {1}{3}}\,\left({\tilde {\zeta }}'\right)^{2}\approx -\zeta ^{3}+2\,{\tilde {R}}\,{\tilde {\zeta }}^{2}-2\,{\tilde {S}}\,{\tilde {\zeta }}+1,$
with
    ${\tilde {\zeta }}={\frac {\zeta }{h_{c}}},$ ${\tilde {\xi }}={\frac {\xi }{h_{c}}},$ ${\tilde {R}}={\frac {R}{g\,h_{c}}},$ and ${\tilde {S}}={\frac {S}{g\,h_{c}^{2}}}.$

### Derivation

First eliminate the pressure p from the momentum flux S by use of the Bernoulli equation:
    $S=R\,\zeta -{\tfrac {1}{2}}\,g\,\zeta ^{2}+\int _{0}^{\zeta }{\tfrac {1}{2}}\left[\left(\partial _{z}\Psi \right)^{2}-\left(\partial _{\xi }\Psi \right)^{2}\right]\;{\text{d}}z.$
The streamfunction Ψ is expanded as a Maclaurin series around the bed at z = 0, and using that the impermeable bed is a streamline and the irrotationality of the flow: Ψ = 0 and ∂$_z$$^2$Ψ = 0 at z = 0:
    $\Psi =z\,u_{b}(\xi )-{\frac {z^{3}}{3!}}\,u_{b}''(\xi )+{\frac {z^{5}}{5!}}\,u_{b}^{\text{iv}}(\xi )+\cdots ,$
with u$_b$ the horizontal velocity at the bed z = 0. Because the waves are long, h ≫ λ, only terms up to z$^3$ and ζ$^3$ are retained in the approximations to Q and S. The momentum flux S then becomes:
    $S=R\,\zeta -{\tfrac {1}{2}}\,g\,\zeta ^{2}+{\tfrac {1}{2}}\,\zeta \,u_{b}^{2}-{\tfrac {1}{6}}\,\zeta ^{3}\,u_{b}\,u_{b}''-{\tfrac {1}{6}}\,\zeta ^{3}\,\left(u_{b}'\right)^{2}+\cdots .$
The discharge Q becomes, since it is the value of the streamfunction Ψ at the free surface z = ζ:
    $Q=\zeta \,u_{b}(\xi )-{\tfrac {1}{6}}\,\zeta ^{3}\,u_{b}''{\xi }+\cdots .$
As can be seen, the discharge Q is an O(ζ) quantity. From this, the bed velocity is seen to be
    $u_{b}={\frac {Q}{\zeta }}+{\tfrac {1}{6}}\,\zeta ^{2}\,u_{b}''+\cdots .$
Note that Q / ζ is an order one quantity. This relation will be used to replace the bed velocity u$_b$ by Q and ζ in the momentum flux S. The following terms can be derived from it:
    ${\begin{aligned}u_{b}^{2}&={\frac {Q^{2}}{\zeta ^{2}}}+{\tfrac {1}{3}}\,\zeta \,Q\,u_{b}''+\cdots ,\\u_{b}'&=-{\frac {Q}{\zeta }}\,\zeta '+{\tfrac {1}{3}}\,\zeta \,\zeta '\,u_{b}''+{\tfrac {1}{6}}\,\zeta ^{2}\,u_{b}'''+\cdots \qquad {\text{and}}\\\left(u_{b}'\right)^{2}&={\frac {Q^{2}}{\zeta ^{4}}}\,\left(\zeta '\right)^{2}-{\tfrac {2}{3}}\,{\frac {Q}{\zeta }}\,\zeta '\,u_{b}''+\cdots .\end{aligned}}$
Consequently, the momentum flux S becomes, again retaining only terms up to proportional to ζ$^3$:
    $S\approx R\,\zeta -{\tfrac {1}{2}}\,g\,\zeta ^{2}+{\tfrac {1}{2}}\,{\frac {Q^{2}}{\zeta }}-{\tfrac {1}{6}}\,{\frac {Q^{2}}{\zeta }}\,\left(\zeta '\right)^{2}.$
Which can directly be recast in the form of equation (E).

## Potential energy

The potential energy density
    $E_{\text{pot}}={\frac {1}{\lambda }}\,\int _{0}^{\lambda }{\tfrac {1}{2}}\,\rho \,g\,\eta ^{2}(x,t)\;{\text{d}}x$
with ρ the fluid density, is one of the infinite number of invariants of the KdV equation. This can be seen by multiplying the KdV equation with the surface elevation η(x,t); after repeated use of the chain rule the result is:
    $\partial _{t}\left({\tfrac {1}{2}}\,\eta ^{2}\right)+\partial _{x}\left\{{\tfrac {1}{2}}\,{\sqrt {g\,h}}\,\eta ^{2}+{\tfrac {1}{2}}\,{\sqrt {\frac {g}{h}}}\,\eta ^{3}+{\tfrac {1}{12}}\,h^{2}{\sqrt {g\,h}}\,\left[\partial _{x}^{2}\left(\eta ^{2}\right)-3\left(\partial _{x}\eta \right)^{2}\right]\right\}=0,$
which is in conservation form, and is an invariant after integration over the interval of periodicity—the wavelength for a cnoidal wave. The potential energy is not an invariant of the BBM equation, but ⁠1/2⁠ρg [η$^2$ + ⁠1/6⁠ h$^2$ (∂$_x$ η)$^2$] is.
First the variance of the surface elevation in a cnoidal wave is computed. Note that η$_2$ = −(1/λ) $_0$∫$^λ$ H cn$^2$(ξ/Δ|m) dx, cn(ξ/Δ|m) = cos ψ(ξ) and λ = 2 Δ K(m), so
    ${\begin{aligned}{\frac {1}{\lambda }}\,\int _{0}^{\lambda }\eta ^{2}\;{\text{d}}x&={\frac {1}{\lambda }}\int _{0}^{\lambda }\left\{\eta _{2}+H\,\operatorname {cn} ^{2}\left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right)\right\}^{2}\;{\text{d}}\xi ={\frac {H^{2}}{\lambda }}\int _{0}^{\lambda }\operatorname {cn} ^{4}\left({\begin{array}{c|c}\displaystyle {\frac {\xi }{\Delta }}&m\end{array}}\right)\;{\text{d}}\xi -\eta _{2}^{2}\\&={\frac {\Delta \,H^{2}}{\lambda }}\int _{0}^{\pi }\cos ^{4}\,\psi \,{\frac {{\text{d}}\xi }{{\text{d}}\psi }}\;{\text{d}}\psi -\eta _{2}^{2}={\frac {H^{2}}{2\,K(m)}}\int _{0}^{\pi }{\frac {\cos ^{4}\,\psi }{\sqrt {1-m\,\sin ^{2}\,\psi }}}\;{\text{d}}\psi -\eta _{2}^{2}\\&={\frac {1}{3}}\,{\frac {H^{2}}{m^{2}}}\,\left[\left(2-5\,m+3\,m^{2}\right)+\left(4\,m-2\right)\,{\frac {E(m)}{K(m)}}\right]-{\frac {H^{2}}{m^{2}}}\,\left(1-m-{\frac {E(m)}{K(m)}}\right)^{2}\end{aligned}}$
The potential energy, both for the KdV and the BBM equation, is subsequently found to be
    $E_{\text{pot}}={\tfrac {1}{2}}\,\rho \,g\,H^{2}\,\left[-{\frac {1}{3\,m}}+{\frac {2}{3\,m}}\,\left(1+{\frac {1}{m}}\right)\left(1-{\frac {E(m)}{K(m)}}\right)-{\frac {1}{m^{2}}}\,\left(1-{\frac {E(m)}{K(m)}}\right)^{2}\right].$
The infinitesimal wave-height limit (m → 0) of the potential energy is E$_{pot}$ = ⁠1/16⁠ ρ g H$^2$, which is in agreement with Airy wave theory. The wave height is twice the amplitude, H = 2a, in the infinitesimal wave limit.