[motivation]
## Motivation
### The problem: differential equations we cannot solve exactly
Many differential equations in physics and engineering contain a small parameter $\epsilon$ — a dimensionless number measuring the ratio of two disparate scales. For example, $\epsilon$ might be the ratio of the thickness of a fluid [boundary](/page/Boundary) layer to the length of an airfoil, or the ratio of a reaction rate to a diffusion rate. When $\epsilon$ is small, we would like to exploit this smallness to find an approximate solution: rather than solving the full equation exactly (which is often impossible), we seek an *asymptotic approximation* — an expression that becomes increasingly accurate as $\epsilon \to 0$.
The most natural attempt is to expand the solution as a [power series](/page/Power%20Series) in $\epsilon$:
\begin{align*}
y(x;\epsilon) \sim y_0(x) + \epsilon \, y_1(x) + \epsilon^2 \, y_2(x) + \cdots
\end{align*}
Substituting into the differential equation and matching powers of $\epsilon$ produces a hierarchy of simpler equations for $y_0, y_1, \ldots$ This is called a **regular perturbation expansion**, and it works beautifully when the character of the equation does not change as $\epsilon \to 0$.
### When regular perturbation fails: singular perturbation
But sometimes setting $\epsilon = 0$ fundamentally changes the equation. The most common scenario is when $\epsilon$ multiplies the highest-order derivative: for instance, in
\begin{align*}
\epsilon \, y'' + y' + y = 0, \qquad y(0) = 0, \quad y(1) = 1,
\end{align*}
setting $\epsilon = 0$ reduces the equation from second order to first order. A first-order equation can satisfy only *one* boundary condition, not two. No matter how we choose $y_0$, the leading-order approximation will fail to satisfy one of the boundary conditions. The error is not small — the approximation is completely wrong near one of the boundaries. This is a **singular perturbation**.
What happens physically is that the solution develops a **boundary layer**: a thin region (of width proportional to some power of $\epsilon$) where the solution changes rapidly, transitioning between the value forced by the boundary condition and the value predicted by the "outer" approximation that ignores that boundary condition. Outside this thin layer, the regular perturbation expansion works fine; *inside* the layer, a completely different approximation is needed.
### The method of [matched asymptotic expansions](/page/Matched%20Asymptotic%20Expansions)
The strategy for solving singular perturbation problems is to construct *two separate approximations*:
**The outer expansion** is the regular perturbation expansion valid away from the boundary layer. It satisfies the differential equation (with $\epsilon = 0$) and the boundary conditions that are *not* in the layer.
**The inner expansion** is obtained by "zooming in" on the boundary layer. We introduce a rescaled variable $\xi = x/\delta(\epsilon)$, where $\delta(\epsilon)$ is the boundary-layer width. In terms of $\xi$, the thin layer becomes an $O(1)$ region, and the equation takes a new form that retains the highest derivative. The inner expansion satisfies this rescaled equation and the boundary condition that lies inside the layer.
Neither approximation is valid everywhere. The outer expansion breaks down inside the boundary layer, and the inner expansion breaks down far from it. But there is an **overlap region** — the zone where $x$ is small (so the outer expansion is near its [limit](/page/Limit) of validity) but $\xi$ is large (so the inner expansion is near its limit of validity). In this overlap region, both approximations must agree. This requirement, called **asymptotic matching**, determines the free constants that were left undetermined by the boundary conditions alone. Together, the matched inner and outer expansions provide an accurate approximation across the entire domain.
### Why logarithms cause special trouble
The standard matching procedure works smoothly when the inner solution, expanded for large $\xi$, grows as a *power* of $\xi$ — say, $Y \sim C\xi$ as $\xi \to \infty$. Re-expressed in terms of the outer variable $x = \delta \xi$, this becomes $C x/\delta$, and matching against the outer expansion is straightforward because powers of $\delta$ and powers of $\epsilon$ sit at well-separated asymptotic orders.
But some problems produce inner solutions that grow only *logarithmically*: $Y \sim C \ln \xi$ as $\xi \to \infty$. This is where things become subtle. To see why, consider what happens when we re-express $\ln \xi$ in terms of the outer variable. If $\xi = x/\epsilon$, then
\begin{align*}
\ln \xi = \ln \frac{x}{\epsilon} = \ln x - \ln \epsilon.
\end{align*}
The term $\ln \epsilon$ is large (it diverges as $\epsilon \to 0$), but it diverges only *logarithmically* — much more slowly than any negative power of $\epsilon$. It sits at an awkward intermediate asymptotic order: it is larger than any constant, yet smaller than $1/\epsilon$. This means the inner and outer expansions cannot be matched order by order in the usual way. The inner solution's logarithmic growth forces the outer expansion to include terms at "unexpected" orders — terms proportional to $1/\ln \epsilon$, $1/\ln^2 \epsilon$, etc. — that do not appear in a standard power series. This phenomenon is called **switchback**, because matching at one order "switches back" and forces corrections at a nominally higher order.
This page explains how to handle these logarithmic complications, through two detailed examples that illustrate both the difficulty and its resolution.
[/motivation]