# Rayleigh's equation (fluid dynamics)

In fluid dynamics, Rayleigh's equation or Rayleigh stability equation is a linear ordinary differential equation to study the hydrodynamic stability of a parallel, incompressible and inviscid shear flow. The equation is:
    $(U-c)(\varphi ''-k^{2}\varphi )-U''\varphi =0,$
with $U(z)$ the flow velocity of the steady base flow whose stability is to be studied and $z$ is the cross-stream direction (i.e. perpendicular to the flow direction). Further $\varphi (z)$ is the complex valued amplitude of the infinitesimal streamfunction perturbations applied to the base flow, $k$ is the wavenumber of the perturbations and $c$ is the phase speed with which the perturbations propagate in the flow direction. The prime denotes differentiation with respect to $z.$

## Background

The equation is named after Lord Rayleigh, who introduced it in 1880. The Orr–Sommerfeld equation – introduced later, for the study of stability of parallel viscous flow – reduces to Rayleigh's equation when the viscosity is zero.
Rayleigh's equation, together with appropriate boundary conditions, most often poses an eigenvalue problem. For given (real-valued) wavenumber $k$ and mean flow velocity $U(z),$ the eigenvalues are the phase speeds $c,$ and the eigenfunctions are the associated streamfunction amplitudes $\varphi (z).$ In general, the eigenvalues form a continuous spectrum. In certain cases there may further be a discrete spectrum of complex conjugate pairs of $c.$ Since the wavenumber $k$ occurs only as a square $k^{2}$ in Rayleigh's equation, a solution (i.e. $\varphi (z)$ and $c$) for wavenumber $+k$ is also a solution for the wavenumber $-k.$
Rayleigh's equation only concerns two-dimensional perturbations to the flow. From Squire's theorem it follows that the two-dimensional perturbations are less stable than three-dimensional perturbations.
If a real-valued phase speed $c$ is in between the minimum and maximum of $U(z),$ the problem has so-called critical layers near $z=z_{\mathrm {crit} }$ where $U(z_{\mathrm {crit} })=c.$ At the critical layers Rayleigh's equation becomes singular. These were first being studied by Lord Kelvin, also in 1880. His solution gives rise to a so-called cat's eye pattern of streamlines near the critical layer, when observed in a frame of reference moving with the phase speed $c.$

## Derivation

Consider a parallel shear flow $U(z)$ in the $x$ direction, which varies only in the cross-flow direction $z.$ The stability of the flow is studied by adding small perturbations to the flow velocity $u(x,z,t)$ and $w(x,z,t)$ in the $x$ and $z$ directions, respectively. The flow is described using the incompressible Euler equations, which become after linearization – using velocity components $U(z)+u(x,z,t)$ and $w(x,z,t):$
    ${\begin{aligned}&\partial _{t}u+U\,\partial _{x}u+w\,U'=-{\frac {1}{\rho }}\partial _{x}p,\\&\partial _{t}w+U\,\partial _{x}w=-{\frac {1}{\rho }}\partial _{z}p\qquad {\text{and}}\\&\partial _{x}u+\partial _{z}w=0,\end{aligned}}$
with $\partial _{t}$ the partial derivative operator with respect to time, and similarly $\partial _{x}$ and $\partial _{z}$ with respect to $x$ and $z.$ The pressure fluctuations $p(x,z,t)$ ensure that the continuity equation $\partial _{x}u+\partial _{z}w=0$ is fulfilled. The fluid density is denoted as $\rho$ and is a constant in the present analysis. The prime $U'$ denotes differentiation of $U(z)$ with respect to its argument $z.$
The flow oscillations $u$ and $w$ are described using a streamfunction $\psi (x,z,t),$ ensuring that the continuity equation is satisfied:
    $u=+\partial _{z}\psi \quad {\text{ and }}\quad w=-\partial _{x}\psi .$
Taking the $z$- and $x$-derivatives of the $x$- and $z$-momentum equation, and thereafter subtracting the two equations, the pressure $p$ can be eliminated:
    $\partial _{t}\left(\partial _{x}^{2}\psi +\partial _{z}^{2}\psi \right)+U\,\partial _{x}\left(\partial _{x}^{2}\psi +\partial _{z}^{2}\psi \right)-U''\,\partial _{x}\psi =0,$
which is essentially the vorticity transport equation, $\partial _{x}^{2}\psi +\partial _{z}^{2}\psi$ being (minus) the vorticity.
Next, sinusoidal fluctuations are considered:
    $\psi (x,z,t)=\Re \left\{\varphi (z)\,\exp(ik(x-ct))\right\},$
with $\varphi (z)$ the complex-valued amplitude of the streamfunction oscillations, while $i$ is the imaginary unit ($i^{2}=-1$) and $\Re \left\{\cdot \right\}$ denotes the real part of the expression between the brackets. Using this in the vorticity transport equation, Rayleigh's equation is obtained.
The boundary conditions for flat impermeable walls follow from the fact that the streamfunction is a constant at them. So at impermeable walls the streamfunction oscillations are zero, i.e. $\varphi =0.$ For unbounded flows the common boundary conditions are that $\lim _{z\to \pm \infty }\varphi (z)=0.$