the running example, part one: the Duffing oscillator$\ddot x + x + \varepsilon x^3 = 0$, $\ x(0) = A$, $\ \dot x(0) = 0$ — a spring whose restoring force has a small cubic part, already nondimensionalised. Poincaré–Lindstedt gives $\omega = 1 + \tfrac38\varepsilon A^2 + O(\varepsilon^2)$. At $\varepsilon A^2 = 0.1$ the exact frequency, by quadrature, is $1.036717$ and the formula gives $1.037500$. The pendulum is the case $\varepsilon = -A^2/6$ at unit amplitudethe secular termThe naive first-order correction $x_1 = -\tfrac38A^3\,t\sin t + \tfrac1{32}A^3(\cos 3t - \cos t)$. Its first piece grows without bound although the true motion satisfies $|x| \le A$ for ever. At $\varepsilon = 0.1$, $A = 1$, $t = 100$ the naive answer is $2.758$ and the truth is $-1.000$the running example, part two: the relativistic orbit$w'' + w = 1 + \varepsilon w^2$, $\ w = p/r$, $\ \varepsilon = 3GM/c^2p$, where $r$ is the distance from the Sun at angle $\theta$, $' = \mathrm{d}/\mathrm{d}\theta$, and $p$ is the semi-latus rectum of the Newtonian ellipse — unit 08's Binet equation with one extra term, which unit 37 derives. Mercury: $p = 5.5460\times10^{10}$ m, $\varepsilon = 7.987\times10^{-8}$. The secular term gives a perihelion advance of $2\pi\varepsilon$ per orbit: $0.1035''$ per orbit, $42.98''$ per centurythe Stieltjes function$S(x) = \displaystyle\int_0^\infty \frac{e^{-t}}{1 + xt}\,\mathrm{d}t \sim \sum_{n\ge0} (-1)^n n!\,x^n$ as $x \to 0^+$. The series diverges for every $x \ne 0$. At $x = 0.04$, twenty-five terms give $S$ to an error of $8.6\times10^{-11}$the boundary-layer model$\varepsilon y'' + (1 + x)y' + y = 0$ on $[0, 1]$, $\ y(0) = 0$, $\ y(1) = 1$. Outer $2/(1+x)$, inner $2(1 - e^{-x/\varepsilon})$, composite $2/(1+x) - 2e^{-x/\varepsilon}$. Exact by one quadrature, because $\varepsilon y' + (1+x)y$ is constant
Part C · the analytic toolkit · spine
21
Perturbation theory: the series that diverges and is still right
Almost nothing has an exact answer. What it has instead is an expansion in a small
parameter — often divergent, usually non-uniform, and, handled correctly, accurate to ten digits.
needs 06, 02, 08~3 h slides + 6 h problemsproblems: ./mr problems 21
21 · overview
Two oscillators, one term
the Duffing oscillator · the term is removed
$$\ddot x + x + \varepsilon x^3 = 0, \qquad x(0) = A,\ \dot x(0) = 0 .$$
1. Expand $x = x_0 + \varepsilon x_1 + \cdots$: $x_0 = A\cos t$, and $x_1$ is driven by $-x_0^3$, which contains $-\tfrac34A^3\cos t$ — a push at the oscillator's own frequency.
2. Resonance puts $-\tfrac38A^3\,t\sin t$ into $x_1$: unbounded, though the true $|x| \le A$ for ever.
3. That term is a frequency shift, Taylor-expanded: $A\cos\big((1 + \varepsilon\omega_1)t\big) = A\cos t - \varepsilon\omega_1At\sin t + \cdots$
4. Give the frequency its own expansion and demand periodicity: $\omega = 1 + \tfrac38\varepsilon A^2$.
the relativistic orbit · the term is kept
$$w'' + w = 1 + \varepsilon w^2, \qquad w = p/r .$$
$r$ is the planet's distance from the Sun at angle $\theta$, $p$ a fixed length of its orbit, $' = \mathrm{d}/\mathrm{d}\theta$.
1. At $\varepsilon = 0$, $w_0 = 1 + e\cos\theta$: unit 08's ellipse, of eccentricity $e$.
2. $w_0^2$ contains $2e\cos\theta$, again a push at the natural frequency: $w_1$ gets $e\,\theta\sin\theta$.
3. Read as in Duffing's step 3, $w \approx 1 + e\cos\big((1 - \varepsilon)\theta\big)$: perihelion comes round $2\pi\varepsilon$ late each orbit.
4. For Mercury $\varepsilon = 8.0\times10^{-8}$: $43''$ a century, observed. Here the term is the answer.
The same mathematics, opposite verdicts. The plan.1 finding $\varepsilon$ · 2 asymptotic series · 3 secular terms · 4 removing them · 5 boundary layers · 6 WKB · 7 the orbit. A dotted underline is a glossary term (click, or G); a solid one like the Duffing oscillator is the running example (hover); N shows the notes.
section 1
Small parameters, and where they come from
"Small" means nothing until you say compared with what. Nondimensionalising says it.
21 · small parameters
Nondimensionalise first
A mass on a spring with a cubic stiffening: $m\ddot X + kX + \beta X^3 = 0$, released from rest at $X = a$. Six quantities, $X, t, m, k, \beta, a$, in three dimensions M, L, T.
nondimensionalisation
Choose a scale for each variable from the parameters, so that the scaled variables are of size one: here $x = X/a$ and $t' = t\sqrt{k/m}$. Divide by one coefficient. What is left over is a small parameter or it is not.
What $\varepsilon$ says. $\beta a^3/ka$: the cubic force over the linear one, at the amplitude. "Small" now has a meaning.
Buckingham, as a check
Six quantities, dimension matrix of rank 3, so three groups (unit 00): $X/a$, $t\sqrt{k/m}$ and $\beta a^2/k$. The scaled equation contains exactly those. Whatever the answer is, it is a function of $\varepsilon$ alone once time is measured in units of $\sqrt{m/k}$.
the pendulum is one of these
$\ddot\theta + \sin\theta = 0$ with $\sin\theta = \theta - \theta^3/6 + O(\theta^5)$. Put $\theta = A x$: $x'' + x - \tfrac{A^2}{6}x^3 = 0$. So Duffing with $\varepsilon = -A^2/6$, amplitude 1.
21 · small parameters
Regular or singular: the test
two kinds of problem
Set $\varepsilon = 0$. If the reduced problem is of the same kind — same degree, same order, all conditions still imposable — and its solution is the limit of the true one, the problem is a regular perturbation: expand in powers of $\varepsilon$ and go. If not, it is a singular perturbation.
the tell
$\varepsilon$ multiplying the highest power or derivative. Setting it to zero lowers the degree or the order: roots or boundary conditions are lost, and something must happen on a scale where the "small" term is not small.
$\varepsilon x^2 + x - 1$ for $\varepsilon = 0.2$ and $0.1$, and the line it becomes at $\varepsilon = 0$. One root stays near $1$; the other sits near $-1/\varepsilon$ and runs off to $-\infty$ as $\varepsilon \to 0$ — the root the reduced problem cannot see.
21 · small parameters · the smallest example
Where the lost root went: dominant balance
the smallest example: $\varepsilon x^2 + x - 1 = 0$
At $\varepsilon = 0$: one root, $x = 1$. But a quadratic has two. Put $x = 1 + \varepsilon x_1 + \varepsilon^2x_2$ and collect: $x_1 = -1$, $x_2 = 2$. The other root is lost — it is at $x \approx -1/\varepsilon$, where "$\varepsilon x^2$ is small" is false. Rescale $x = X/\varepsilon$: $X^2 + X - \varepsilon = 0$, regular, $X = -1 - \varepsilon + \dots$
At $\varepsilon = 0.1$: exact $0.916080$ and $-10.916080$; the series through $\varepsilon^2$, $1 - \varepsilon + 2\varepsilon^2$ and $-1/\varepsilon - 1 + \varepsilon - 2\varepsilon^2$ (notes), give $0.920$ and $-10.920$.
Finding the scale of the lost root is dominant balance: try $x = \varepsilon^{-\alpha}X$, and choose $\alpha$ so that two terms are of the same size and the rest are smaller. Here $\alpha = 1$ balances $\varepsilon x^2$ against $x$.
Duffing passes the test — $\varepsilon$ multiplies $x^3$, not $\ddot x$ — and is regular on any fixed time interval. Section 3 shows it is not regular on $[0, \infty)$: a second kind of singularity, in the domain rather than the equation.
section 2
Asymptotic series
What "$\approx$" means, precisely — and why a divergent series can deserve it.
21 · asymptotic series
Order notation
order notation
Let $f, g$ be defined near $x_0$ (possibly $x_0 = \infty$), $g \neq 0$ near $x_0$. As $x \to x_0$:
$f = O(g)$ if $|f/g|$ is bounded on some punctured neighbourhood of $x_0$;
$f = o(g)$ if $f/g \to 0$;
$f \sim g$, asymptotically equivalent, if $f/g \to 1$, that is, $f - g = o(g)$.
as $x \to 0$
$\sin x = x + O(x^3)$; $\ \sin x \sim x$; $\ 1 - \cos x = o(x)$; $\ x^{10} = o(x^9)$.
$e^{-1/x} = o(x^n)$ as $x \to 0^+$, for every $n$: smaller than every power.
as $x \to \infty$
$\ln x = o(x^\delta)$ for every $\delta \gt 0$; $\ x^2 + x \sim x^2$; $\ x^2 + x \sim x^2 + 1$, although their difference is unbounded.
Every statement is about a limit, never about a particular $x$. That is both the power and the trap: "$O(\varepsilon^2)$" says nothing about the constant, and nothing about $\varepsilon = 0.3$.
21 · asymptotic series
Poincaré's definition
asymptotic sequence and asymptotic expansion
$(\phi_n)_{n \ge 0}$ is an asymptotic sequence as $x \to x_0$ if $\phi_{n+1} = o(\phi_n)$ for every $n$. Then $f \sim \sum_{n\ge0} a_n\phi_n$ means
$$f - \sum_{n=0}^{N} a_n\phi_n = o(\phi_N)\ \text{ for every } N .$$
Poincaré, 1886. The series need not converge: the definition is about a fixed $N$ as $x \to x_0$, not about $N \to \infty$ at fixed $x$.
uniqueness of the coefficients
If $f$ has an expansion in $(\phi_n)$, its coefficients are $a_N = \lim_{x\to x_0}\big(f - \sum_{n\lt N} a_n\phi_n\big)/\phi_N$.
Why: divide the definition at $N$ by $\phi_N$. $\square$
but not of the function
$e^{-1/x} \sim 0 + 0\cdot x + 0\cdot x^2 + \cdots$ as $x \to 0^+$. So $f$ and $f + e^{-1/x}$ have the same expansion in powers. An expansion determines the coefficients, never the function.
Duffing's frequency, as an expansion
$\lambda = \varepsilon A^2$
$\omega$ exact
$\omega - (1 + \tfrac38\lambda)$
$\div\lambda^2$
0.2
1.072000
$-3.0\times10^{-3}$
$-0.0750$
0.1
1.036717
$-7.8\times10^{-4}$
$-0.0783$
0.01
1.003742
$-8.2\times10^{-6}$
$-0.0816$
The error is $O(\lambda^2)$, so $1 + \tfrac38\lambda$ is the two-term expansion — and the last column is converging to the next coefficient, $-21/256 = -0.0820$, which the problem sheet derives by carrying section 4's method one order further.
21 · asymptotic series
Convergent is not the same as useful
convergent, and useless
$e^{-20} = \sum_n (-20)^n/n!$ converges. Its terms climb to $4.31\times10^{7}$ (at $n = 19, 20$) before they fall, and they must cancel to $2.06\times10^{-9}$.
You need terms up to $n = 74$ for $0.1\%$ accuracy. Summed in double precision, 121 terms give anything from $0.7\times10^{-9}$ to $6\times10^{-9}$, depending on how the terms are rounded — never the right answer, however many terms.
divergent, and excellent
$\displaystyle\sum_n (-1)^n n!\,x^n$ diverges for every $x \ne 0$: the ratio of terms is $(n+1)x \to \infty$.
Yet at $x = 0.04$ its first twenty-five terms give the function it expands to an error of $8.6\times10^{-11}$ — ten correct digits.
The next slide puts the two side by side, term by term.
21 · asymptotic series
The two series, term by term
$|$term $n|$ on a log scale. The convergent series must cancel terms $10^{16}$ times larger than its answer (dashed). The divergent one reaches $10^{-10}$ before it turns: stop there.
Convergence is a statement about $N \to \infty$ at fixed $x$. Usefulness is a statement about small $N$ at the $x$ you have. Neither implies the other.
An asymptotic series is one whose first few terms are good when $x$ is near $x_0$, whatever the tail does. In the picture: what matters is how low the curve gets before it turns, not where it ends.
21 · asymptotic series
The Stieltjes series, and its remainder
the Stieltjes function
$$S(x) = \int_0^\infty \frac{e^{-t}}{1 + xt}\,\mathrm{d}t, \qquad x \ge 0 .$$
For $y \ne -1$, the finite geometric sum is exact: $\dfrac1{1+y} = \displaystyle\sum_{n=0}^{N-1}(-y)^n + \frac{(-y)^N}{1+y}$. Put $y = xt$, multiply by $e^{-t}$, integrate, and use $\int_0^\infty t^ne^{-t}\,\mathrm{d}t = n!$:
For $x \gt 0$: $R_N(x)$ has the sign of $(-1)^N$ and $0 \lt |R_N(x)| \lt N!\,x^N$.
Why: $0 \lt 1/(1+xt) \lt 1$ for $t \gt 0$, so $0 \lt \int_0^\infty t^Ne^{-t}/(1+xt) \lt N!$. $\square$
So $|R_N| \lt N!\,x^N = o(x^{N-1})$: the series is the asymptotic expansion of $S$ as $x \to 0^+$, with an explicit error bound — a rare luxury.
$S$ is not exotic: $xS(x)$ solves Euler's equation $x^2y' + y = x$, whose only formal power-series solution is $x$ times this divergent series. The problem sheet shows it.
21 · asymptotic series · example
Optimal truncation
worked example 1 — $S(0.2)$, term by term
$n$
term $(-1)^nn!\,0.2^n$
sum to $n$
minus $S$
0
1
1
$+0.148$
1
$-0.2$
0.8
$-0.052$
2
0.08
0.88
$+0.028$
3
$-0.048$
0.832
$-0.020$
4
0.0384
0.8704
$\mathbf{+0.018}$
5
$-0.0384$
0.832
$-0.020$
6
0.04608
0.87808
$+0.026$
7
$-0.064512$
0.813568
$-0.039$
8
0.10322
0.91679
$+0.065$
$S(0.2) = 0.852111$. Terms shrink while $(n+1)x \lt 1$, then grow. Stop at the smallest term: through $n = 4$ the sum is off by $0.018$, less than the first omitted term $0.0384$, and the correction still needed, $-0.018$, has that term's sign.
optimal truncation, and its error
Truncate at $N = \lfloor 1/x\rfloor$, where the terms are smallest. Then
$$|R_N(x)| \le \frac{e^2}{x}\,e^{-1/x}.$$
The error is exponentially small — smaller than every power of $x$ — though no finite truncation has error zero.
21 · asymptotic series
Optimal truncation, plotted
$|S_N - S(x)|$ after $N$ terms of the Stieltjes series. Each curve is a V with its point at $N = 1/x$ (ringed): the smaller $x$, the later the turn and the deeper the V.
The best errors. $x = 0.2$: $1.8\times10^{-2}$ at $N = 5$. $\ x = 0.1$: $1.8\times10^{-4}$ at $N = 10$. $\ x = 0.04$: $8.6\times10^{-11}$ at $N = 25$.
Each is about half the smallest term, which Stirling's formula (cited, unit 20) puts at $\sqrt{2\pi/x}\,e^{-1/x}$. The depth of the V goes like $e^{-1/x}$: exponentially small, as the theorem said.
Right of the point, every added term makes the answer worse.
21 · asymptotic series
Borel summation, named
Borel summation
Given $\sum a_nx^n$, form $B(t) = \sum a_n t^n/n!$ — often convergent where the original is not. If $B$ extends to $[0, \infty)$ and the integral exists, define
The motive: $n! = \int_0^\infty t^ne^{-t}\,\mathrm{d}t$, so formally $\sum a_n x^n = \int_0^\infty e^{-t}\sum a_n(xt)^n/n!\,\mathrm{d}t$ — the swap being exactly the step that is not allowed.
on the Stieltjes series
$a_n = (-1)^nn!$ gives $B(t) = \sum(-t)^n = 1/(1+t)$ for $|t| \lt 1$, and the formula $1/(1+t)$ is defined on all of $[0, \infty)$. Then $\int_0^\infty e^{-t}/(1 + xt)\,\mathrm{d}t = S(x)$ — the function, recovered exactly.
named, not developed
When Borel's sum exists and when it equals "the" function is a theorem with hypotheses (Watson's, cited: Bender and Orszag, ch. 8; Hardy, Divergent Series, for the theory). This course uses optimal truncation instead, which needs nothing.
section 3
Secular terms
The naive expansion of the Duffing oscillator, and the term that kills it after a time $1/\varepsilon$.
into $\ddot x + x + \varepsilon x^3 = 0$ and into the initial conditions, and set each power of $\varepsilon$ to zero separately. This is the perturbation hierarchy:
with $x_0(0) = A$, $\dot x_0(0) = 0$, and zero data for every $x_n$, $n \ge 1$.
the structure to notice
Every order is the same linear operator $L = \mathrm{d}^2/\mathrm{d}t^2 + 1$, driven by a known right-hand side built from lower orders. One nonlinear problem has become a sequence of forced linear oscillators: unit 06, over and over.
The one identity we need, from $\cos^3 t = \big(\tfrac{e^{it} + e^{-it}}{2}\big)^3$:
$$\cos^3 t = \tfrac34\cos t + \tfrac14\cos 3t .$$
So the $\varepsilon^1$ equation is an undamped oscillator driven at its own frequency, $-\tfrac34A^3\cos t$, plus a harmless $-\tfrac14A^3\cos 3t$.
21 · secular terms · example
Worked: the naive first order
worked example 2 — solve the $\varepsilon^1$ equation
Step 1 — the order-zero solution. $x_0 = A\cos t$.
Step 2 — the forcing. $-x_0^3 = -\tfrac34A^3\cos t - \tfrac14A^3\cos 3t$.
Step 3 — the off-resonant part. Try $c\cos 3t$: $(-9 + 1)c = -\tfrac14A^3$, so $c = \tfrac1{32}A^3$.
Step 4 — the resonant part. $c\cos t$ fails ($L\cos t = 0$): unit 06's resonance. Try $b\,t\sin t$: $L(t\sin t) = 2\cos t$, so $2b = -\tfrac34A^3$, $b = -\tfrac38A^3$.
Step 5 — the initial conditions. Add the homogeneous $d\cos t$ (the $\sin t$ part is zero since $\dot x_1(0) = 0$ already holds). $x_1(0) = \tfrac1{32}A^3 + d = 0$, so $d = -\tfrac1{32}A^3$.
The term $t\sin t$ is a secular term: it grows without bound, and it comes from forcing a linear oscillator at its own frequency.
21 · secular terms
Why the naive answer dies at t ~ 1/ε
$\varepsilon = 0.1$, $A = 1$. The exact solution (numerical) never leaves the shaded band $|x| \le 1$; the naive $x_0 + \varepsilon x_1$ drifts out of phase and then out of the band, starting near $t = 1/\varepsilon$.
the true motion is bounded
For $\varepsilon \ge 0$, $|x(t)| \le A$ for all $t$.
Why: energy $\tfrac12\dot x^2 + \tfrac12x^2 + \tfrac14\varepsilon x^4$ is conserved, and $\tfrac12x^2 + \tfrac14\varepsilon x^4$ is increasing in $|x|$. $\square$
$t$
exact
$x_0 + \varepsilon x_1$
1
0.5047
0.5040
10
$-0.5834$
$-0.6320$
50
0.0004
1.4561
100
$-1.0000$
2.7584
21 · secular terms
What the secular term really is
$x = A\cos(\text{phase})$ is the shadow of a point going round a circle. A frequency error $\delta$ puts the true point an arc $A\delta t$ further on; Taylor-expanding moves it the same length along the tangent instead, off the circle — and its shadow leaves $|x| \le A$. Schematic, $\delta t = 1.3$.
a phase error, Taylor-expanded
Expand a slightly wrong frequency: $A\cos\big((1 + \varepsilon\omega_1)t\big) = A\cos t - \varepsilon\omega_1A\,t\sin t + O(\varepsilon^2t^2)$. With $\omega_1 = \tfrac38A^2$ that is exactly $x_0 + $ the secular part of $\varepsilon x_1$. The series is Taylor-expanding a phase error, which is fine while $\varepsilon t \ll 1$ and nonsense after.
uniformly valid
$x_0 + \varepsilon x_1$ has error $O(\varepsilon^2)$ at each fixed $t$, but not uniformly in $t \in [0, \infty)$: no single constant works for all $t$.
21 · secular terms
How long the naive answer is good: a Grönwall bound
theorem
Let $\varepsilon \ge 0$ and $r = x - x_0 - \varepsilon x_1$. Then for $0 \le t \le T$,
$r$ solves $\ddot r + r = -\varepsilon(x^3 - x_0^3)$ with zero data. Since $|x|, |x_0| \le A$, $|x^3 - x_0^3| \le 3A^2|x - x_0| \le 3A^2(\varepsilon|x_1| + |r|)$. Variation of parameters (unit 06) writes $r$ as an integral against $\sin(t - s)$, whose size is at most 1; then unit 01's Grönwall inequality closes the estimate.
full proof in the notes (N)
What it says. On any fixed interval the error is $O(\varepsilon^2)$: the naive expansion is asymptotic there. The bound is useful while $\varepsilon T \lesssim 1$ and useless for $T \gg 1/\varepsilon$, exactly where the table failed.
Check. $\varepsilon = 0.1$, $A = 1$, $T = 1$: bound $0.0101$; the true maximum error on $[0, 1]$ is $7.0\times10^{-4}$. Pessimistic, as Grönwall bounds are, but of the right order in $\varepsilon$.
section 4
Removing secular terms
If the secular term is a frequency error, put the frequency in the ansatz.
21 · removing secular terms
The solvability condition
the solvability condition
Let $f$ be continuous and $2\pi$-periodic. The equation $u'' + u = f$ has a $2\pi$-periodic solution if and only if
Multiply by $\cos\tau$ and integrate over a period; integrating by parts twice moves both derivatives onto $\cos\tau$ with no boundary terms (periodicity), and $\cos'' + \cos = 0$. Same for $\sin$. $\square$
If: the particular solution $u = \int_0^\tau \sin(\tau - s)f(s)\,\mathrm{d}s$ from variation of parameters satisfies $u(\tau + 2\pi) - u(\tau) = \sin\tau\int_0^{2\pi}\!f\cos - \cos\tau\int_0^{2\pi}\!f\sin = 0$. Details in the notes.
In words: the forcing must have no component along the kernel of $\mathrm{d}^2/\mathrm{d}\tau^2 + 1$. A component along $\cos\tau$ or $\sin\tau$ is resonant, and produces $\tau\sin\tau$ or $\tau\cos\tau$.
21 · removing secular terms · example
Worked: Poincaré–Lindstedt for Duffing
worked example 3 — the Poincaré–Lindstedt method on the running example
Step 1 — strain the time. The motion is periodic with an unknown frequency $\omega(\varepsilon)$. Put $\tau = \omega t$, so $x$ is $2\pi$-periodic in $\tau$, and $\omega^2x'' + x + \varepsilon x^3 = 0$.
Step 6 — the correction. $x_1 = \tfrac1{32}A^3(\cos3\tau - \cos\tau)$, fixing $x_1(0) = 0$. No secular term.
Step 7 — undo the straining. $x \approx A\cos\omega t + \tfrac{\varepsilon A^3}{32}(\cos3\omega t - \cos\omega t)$ — bounded, periodic, and uniformly valid on times of order $1/\varepsilon$.
21 · removing secular terms
Checking the frequency
dimensions, restored
$\omega = \sqrt{k/m}\,\big(1 + \tfrac{3\beta a^2}{8k}\big)$. $[\beta a^2/k] = 1$ ✓, and the prefactor is a frequency ✓.
limit: $\varepsilon \to 0$
$\omega \to 1$, the linear oscillator ✓. $\varepsilon \gt 0$ (a stiffening spring) raises the frequency, $\varepsilon \lt 0$ lowers it — as it must, since a stiffer spring is faster ✓.
special case: the pendulum
$\varepsilon = -A^2/6$ at unit amplitude: $\omega = 1 - \tfrac1{16}A^2$, so $T = 2\pi(1 + \tfrac1{16}A^2 + \cdots)$ — unit 00's $\theta_0^2/16$, obtained there from an elliptic integral ✓.
against the quadrature, on Duffing
$\varepsilon A^2$
exact $\omega$
$1 + \tfrac38\varepsilon A^2$
error
0.01
1.003742
1.003750
$8.2\times10^{-6}$
0.1
1.036717
1.037500
$7.8\times10^{-4}$
0.5
1.170781
1.187500
$1.7\times10^{-2}$
1
1.317776
1.375000
$5.7\times10^{-2}$
The error falls a hundredfold when $\varepsilon A^2$ falls tenfold: $O(\varepsilon^2)$, as promised. At $\varepsilon A^2 = 1$ it is still only $4\%$ wrong.
And the time series: at $\varepsilon = 0.1$, $t = 100$, the Poincaré–Lindstedt answer is $-0.9969$ against the exact $-1.0000$, where the naive one said $2.758$.
21 · removing secular terms
Multiple scales
the method of multiple scales
Pretend the solution depends on two times, a fast $t$ and a slow $T = \varepsilon t$, independently: $x(t) = X(t, \varepsilon t)$. By the chain rule (unit 03)
with $\psi = t + \phi$. No secular term iff the amplitude equations hold:
$$a' = 0,\qquad \phi' = \tfrac38a^2 .$$
So $x \approx A\cos\big((1 + \tfrac38\varepsilon A^2)t\big)$ — the same answer, with no assumption of periodicity.
21 · removing secular terms
Two clocks, plotted
$\ddot x + 2\varepsilon\mu\dot x + x + \varepsilon x^3 = 0$, $\varepsilon = 0.1$, $\mu = 0.5$, $A = 1$: numerical (solid), multiple scales $a\cos(t + \phi)$ (dashed), and its envelope $\pm a(T)$ (dotted). The fast clock sets the wiggles, the slow one the envelope.
Add weak damping to Duffing. Nothing is periodic any more, so Poincaré–Lindstedt cannot start. Multiple scales gains one term, and the amplitude equations become
$$a' = -\mu a,\qquad \phi' = \tfrac38a^2,$$
so $a = Ae^{-\mu T}$: the amplitude decays on the slow clock $T = \varepsilon t$, and the frequency $1 + \tfrac38\varepsilon a^2$ drifts back down towards 1 as it does.
Largest error over $0 \le t \le 60$: $0.044$, of order $\varepsilon$ — what a first-order expansion promises.
21 · removing secular terms
Secular terms are a boundary layer in time
Look at what the three methods did to Duffing:
naive: one time variable $t$; valid for $t = O(1)$;
Poincaré–Lindstedt: one strained variable $\omega t$; valid for $t = O(1/\varepsilon)$ provided the motion is periodic;
multiple scales: two variables $t$ and $\varepsilon t$; valid for $t = O(1/\varepsilon)$ in general.
The naive expansion is good on the "inner" time scale and fails on the "outer" one, $T = \varepsilon t = O(1)$. Multiple scales writes down an expansion that is right on both at once.
the unifying idea
Every non-uniformity has two scales, and a correct approximation respects both. Secular growth is two time scales. The next section's boundary layer is two length scales. WKB is a fast phase and a slow amplitude.
choosing a method
Periodic solution, want its frequency: Poincaré–Lindstedt, fastest. Drifting amplitude, damping, transients, slow variation of a parameter: multiple scales. Thin region of rapid change in space: matched expansions.
section 5
Boundary layers
A small parameter on the highest derivative, and the thin region where it is not small.
21 · boundary layers
A small parameter on the highest derivative
the model problem
$$\varepsilon y'' + (1 + x)\,y' + y = 0$$
on $[0, 1]$, with $y(0) = 0$ and $y(1) = 1$.
Set $\varepsilon = 0$: $(1 + x)y' + y = 0$, i.e. $\big((1 + x)y\big)' = 0$, so $y = C/(1 + x)$. A first-order equation takes one boundary condition. $y(1) = 1$ gives $C = 2$; then $y(0) = 2 \ne 0$.
The reduced problem cannot meet both conditions. Near one end, $y$ must change by $O(1)$ over a short distance, where $\varepsilon y''$ is not small: a boundary layer.
this one is exactly solvable
$\varepsilon y'' + (1 + x)y' + y = \big(\varepsilon y' + (1 + x)y\big)'$, so $\varepsilon y' + (1+x)y = K$, constant. A first-order linear equation:
with $K$ fixed by $y(1) = 1$. We shall not need it to find the answer — only to check it.
Physics: Prandtl, 1904. Viscosity multiplies the highest derivative in the equation of fluid motion, and the flow past a wing is inviscid except in a thin layer at its surface — where the drag is decided.
21 · boundary layers
Inner and outer solutions
outer solution
The expansion valid away from the layer, obeying the boundary condition the reduced equation can keep: $y_{\rm out} = 2/(1 + x)$.
inner solution
Stretch the variable near $x = 0$: $x = \varepsilon^\alpha X$. The terms $\varepsilon y''$, $(1+x)y'$, $y$ become of sizes $\varepsilon^{1 - 2\alpha}$, $\varepsilon^{-\alpha}$, $1$. The balance that keeps $y''$ is $\alpha = 1$ — the distinguished limit. With $Y(X) = y(\varepsilon X)$:
With $Y_0(0) = 0$: $Y_0 = C\,(1 - e^{-X})$. One constant is still unknown.
$\varepsilon = 0.05$: the exact solution (solid) and the composite (short dashes) climb steeply through the shaded layer, then join the outer solution $2/(1+x)$ (long dashes) — right away from $x = 0$, wrong in the layer.
21 · boundary layers
Matching: the intermediate variable and Van Dyke's rule
The inner solution must turn into the outer one somewhere in between. Matching makes that precise, in either of two ways.
through an intermediate variable
Put $x = \varepsilon^\beta\xi$ with $0 \lt \beta \lt 1$ and $\xi$ fixed, so $\varepsilon \ll x \ll 1$. Then
Both are approximations to the same $y$ in the overlap, so $C = 2$.
Van Dyke's matching rule
The $m$-term inner expansion of the $n$-term outer solution equals the $n$-term outer expansion of the $m$-term inner solution.
With $m = n = 1$: the outer $2/(1 + \varepsilon X)$ in inner variables, to one term, is $2$. The inner $C(1 - e^{-x/\varepsilon})$ in outer variables, to one term, is $C$ (the exponential is beyond all orders). So $C = 2$ again.
a rule, not a theorem
Van Dyke's rule is a procedure that works for power-law expansions and can fail when logarithms appear. The intermediate-variable argument is the one to trust when they disagree.
21 · boundary layers
The overlap, on a logarithmic axis
$\varepsilon = 0.001$, $x$ on a log scale so that both scales fit. In the middle band, $0.003 \lt x \lt 0.05$, inner and outer are both within $0.1$ of the exact solution, and both are close to $2$.
On a linear axis the layer is a sliver at the wall. On a log axis every decade gets the same room, and three regions appear:
inner, $x = O(\varepsilon)$: $y$ climbs; only $Y_0$ is right;
overlap, $\varepsilon \ll x \ll 1$: both are right, and both are $\approx 2$ — this is what fixes $C = 2$;
outer, $x = O(1)$: $y$ falls to $1$; only $y_{\rm out}$ is right.
The intermediate variable $x = \varepsilon^\beta\xi$ is a point that stays in the middle band as $\varepsilon \to 0$.
21 · boundary layers · example
Worked: the composite solution, against the exact one
Step 5 — check the ends. $y_c(0) = 0$ exactly; $y_c(1) = 1 - 2e^{-1/\varepsilon}$, off by an exponentially small amount.
$x = \varepsilon$
$x = 0.1$
$x = 0.5$
max error
$\varepsilon = 0.05$, exact
1.2300
1.6246
1.3477
$\varepsilon = 0.05$, composite
1.1690
1.5475
1.3332
0.077
$\varepsilon = 0.01$, exact
1.2574
1.8289
1.3360
$\varepsilon = 0.01$, composite
1.2444
1.8181
1.3333
0.018
the checks
Order: the maximum error drops by 4.3 when $\varepsilon$ drops by 5: $O(\varepsilon)$, uniformly on $[0,1]$. Limit: as $\varepsilon \to 0$ at fixed $x \gt 0$, $y_c \to 2/(1+x)$, the outer solution ✓. Dimensions: $x$ and $y$ are dimensionless, and $x/\varepsilon$ says the layer's width is $\varepsilon$ in units of the interval ✓.
21 · boundary layers
Where the layer goes
the sign of the first-derivative term decides
For $\varepsilon y'' + a(x)y' + b(x)y = 0$ with $a$ of one sign on $[0,1]$: at a layer at $x_0$, the inner equation is $Y'' \pm a(x_0)Y' = 0$, with solutions $1$ and $e^{\mp a(x_0)X}$. The layer must decay into the interior.
$a \gt 0$: layer at the left end, $x = 0$.
$a \lt 0$: layer at the right end, $x = 1$.
$a$ changes sign: interior layers or turning points — a subject of its own, named here.
Test it. A layer at $x = 1$ for the model problem: $X = (1 - x)/\varepsilon$ gives $Y'' - 2Y' = 0$, solutions $1$ and $e^{2X}$. The second grows as you leave the wall — it cannot match any outer solution. No layer there.
$\varepsilon = 0.05$, exact solutions (solid) and outer solutions (dashed). The outer solution is carried in from the end whose condition it keeps (arrow); the layer forms where it arrives.
back to Duffing
Duffing's $\varepsilon$ does not touch $\ddot x$, so there is no layer in the equation. Its non-uniformity lives at large $t$: the naive expansion is the "inner" solution, good for $t = O(1)$, and the amplitude equations, on the slow scale $T = \varepsilon t$, are the "outer" ones. Regular in the equation, singular in the domain.
section 6
WKB
A wave in a medium that changes slowly: fast phase, slow amplitude.
21 · WKB
The WKB approximation
$\varepsilon^2y'' + q(x)\,y = 0$ with $q \gt 0$: an oscillator whose "stiffness" varies slowly compared with the oscillation. $\varepsilon$ is on the highest derivative — singular — but there is no layer: the solution oscillates on the short scale $\varepsilon$ everywhere.
Try $y = e^{S(x)/\varepsilon}$ with $S = S_0 + \varepsilon S_1 + \cdots$ complex. Then $S'^2 + \varepsilon S'' + q = 0$, and
Check: $q$ constant gives $\cos(\sqrt q\,x/\varepsilon)$, the exact solution ✓. Dimensions: with $\varepsilon$ a length and $q$ dimensionless, the phase $\int\sqrt q\,\mathrm{d}x/\varepsilon$ is a pure number ✓.
Names: the eikonal equation fixes the phase, the transport equation the amplitude. If you have done unit 15, $S_0'^2 = -q$ is its eikonal again, the Hamilton–Jacobi equation of a particle whose momentum is $\sqrt q$.
21 · WKB
When WKB is valid, and an adiabatic invariant
validity condition
The expansion is consistent while the correction is small beside the leading term: $|\varepsilon S_1'| \ll |S_0'|$, that is
$$\frac{\varepsilon\,|q'|}{4\,q^{3/2}} \ll 1 .$$
In words: the wavelength $2\pi\varepsilon/\sqrt q$ changes by a small fraction of itself over one wavelength. It fails where $q \to 0$.
In time: $\ddot x + \omega(\varepsilon t)^2x = 0$ is the same equation ($s = \varepsilon t$, $q = \omega^2$). WKB says $x \approx a\cos\int\omega\,\mathrm{d}t$ with amplitude $a \propto \omega^{-1/2}$, so the energy $E \approx \tfrac12\omega^2a^2$ is proportional to $\omega$:
$$E/\omega \approx \text{const}.$$
Slowly doubling the frequency doubles the energy: the next slide shows it happen.
This adiabatic invariant is the Duffing lesson again: the multiple-scales amplitude equation for a slowly varying $\omega$ is $(\omega a^2)' = 0$ — the same law, from the same solvability condition.
21 · WKB
The adiabatic invariant, plotted
$\ddot x + \omega(t)^2x = 0$ with $\omega = 1 + t/100$, integrated numerically. The frequency doubles; the amplitude follows $\omega^{-1/2}$ (dashed) down to $1/\sqrt2$, so $E \approx \tfrac12\omega^2a^2$ doubles while $E/\omega$ stays put.
a numerical check
$\ddot x + (1 + t/100)^2x = 0$, $x(0) = 1$, $\dot x(0) = 0$, run to $t = 100$: the frequency doubles. Integrated numerically:
energy: $\times1.998$ (WKB: $\times2$);
$E/\omega$: changed by $0.12\%$;
amplitude: $0.7067$ (WKB: $1/\sqrt2 = 0.7071$);
$x(100)$: $0.4926$ (WKB: $0.4944$).
21 · WKB
Turning points and the connection formulae
Where $q$ changes sign, at a turning point $x = a$, the approximation fails: $q^{-1/4}$ blows up and the validity ratio $\varepsilon|q'|/4q^{3/2}$ does too. On one side the solution oscillates; on the other it grows or decays like $|q|^{-1/4}e^{\pm\frac1\varepsilon\int\sqrt{|q|}}$.
Near $a$, $q \approx q'(a)(x - a)$, and the local equation is Airy's, $y'' = zy$ in a stretched variable $z$ — a boundary layer of width $\varepsilon^{2/3}$.
the connection formulae (cited)
Let $q \gt 0$ for $x \lt a$, $q \lt 0$ for $x \gt a$, with $q'(a) \ne 0$. The solution that decays for $x \gt a$,
Proof: match both sides to the Airy function through its asymptotics, which need unit 20's integral methods. Bender and Orszag, ch. 10.
21 · WKB
The turning point, pictured
$\varepsilon^2y'' + q\,y = 0$ with $q = a - x$, $\varepsilon = 0.1$: exact (an Airy function) against the two WKB forms of the connection formula, decaying for $x \gt a$ and $2q^{-1/4}\cos(\cdots - \pi/4)$ for $x \lt a$ (same constant).
Away from $a$, each WKB form lies on the exact curve: oscillation where $q \gt 0$, with wavelength $2\pi\varepsilon/\sqrt q$ and amplitude $q^{-1/4}$ both growing towards $a$; decay where $q \lt 0$.
Near $a$, inside the strip of width $\sim\varepsilon^{2/3}$, both blow up like $|x - a|^{-1/4}$ while the exact solution passes smoothly through. That strip is the turning point's boundary layer.
The connection formula is the statement that the two sides belong to one solution — the factor $2$ and the phase $-\pi/4$ are what make them line up.
section 7
The orbit: a secular term that is the answer
The same calculation, pointed at Mercury.
21 · the orbit
The relativistic orbit equation, nondimensionalised
Unit 08's Binet equation for the inverse-square law, with $u = 1/r$ and $h = r^2\dot\theta = L/\mu$:
$$u'' + u = \frac{GM}{h^2} .$$
General relativity (cited: unit 37 derives it from the Schwarzschild geodesics) adds one term:
$$u'' + u = \frac{GM}{h^2} + \frac{3GM}{c^2}\,u^2 .$$
Nondimensionalise with the Newtonian semi-latus rectum $p = h^2/GM$: put $w = pu$.
$GM/c^2$ is a length: $1.476$ km for the Sun (half its Schwarzschild radius $2.953$ km). For Mercury, $p = a(1 - e^2) = 5.5460\times10^{10}$ m, so
$$\varepsilon = 7.987\times10^{-8}.$$
Classify it. $\varepsilon$ multiplies $w^2$, not $w''$: regular in the equation, like Duffing. And $\theta$ runs over $[0, \infty)$ as the planet goes round: potentially singular in the domain, like Duffing.
At $\varepsilon = 0$: $w_0 = 1 + e\cos\theta$, unit 08's ellipse, perihelion at $\theta = 0$.
21 · the orbit · example
Worked: the first-order orbit
worked example 5 — expand the relativistic orbit naively
Step 6 — the same structure as Duffing. The constant and $\cos2\theta$ pieces change the orbit's shape by a bounded, tiny amount. The secular piece is worked example 2's term again, in $\theta$ instead of $t$.
21 · the orbit
Reading the secular term: the perihelion advances
Exactly as for Duffing, $\cos\big((1 - \varepsilon)\theta\big) = \cos\theta + \varepsilon\theta\sin\theta + O(\varepsilon^2\theta^2)$. So, to this order,
Perihelion — largest $w$ — is where $(1 - \varepsilon)\theta = 2\pi k$, at $\theta = 2\pi k/(1 - \varepsilon)$. Each orbit the perihelion's angle $\varpi$ moves on by
Poincaré–Lindstedt, with $\varphi = \nu\theta$, gives $\nu = 1 - \varepsilon + O(\varepsilon^2)$: the same $\Delta\varpi$, uniformly valid.
Three turns of $w'' + w = 1 + \varepsilon w^2$, integrated numerically, with $e = 0.5$ and $\varepsilon = 0.05$ — exaggerated six hundred thousand times over Mercury's. Successive perihelia (1–4) step round by $\Delta\varpi$ each orbit; the Newtonian ellipse (dashed) closes.
21 · the orbit
Mercury: 43 seconds of arc a century
Mercury
$2\pi\varepsilon = 5.019\times10^{-7}$ rad $= 0.1035''$ per orbit. With a period of $87.969$ days, $415.20$ orbits per century:
$$\Delta\varpi = 42.98''\ \text{per century}.$$
The residual Le Verrier (1859, $38''$) and Newcomb (1882, $43''$) could not explain with any Newtonian perturbation.
checks
Dimensionless ✓. $c \to \infty$: no advance ✓. Numerically, integrating $w'' + w = 1 + \varepsilon w^2$ at $\varepsilon = 10^{-3}$, $e = 0.2$: advance per orbit $0.0062990$ against $2\pi\varepsilon = 0.0062832$ — agreement to $0.25\% \approx 2.5\varepsilon$, the size of the next order ✓.
How wrong $2\pi\varepsilon$ is: the integrated advance over $2\pi\varepsilon$, minus 1. The excess grows like $2.5\varepsilon$ — the next order; the ring is the check in the box, $0.25\%$ at $\varepsilon = 10^{-3}$. For Mercury it is $2\times10^{-7}$ of the $43''$.
21 · the orbit
Remove it, or keep it?
Duffing
the orbit
secular term
$-\tfrac38\varepsilon A^3t\sin t$
$\varepsilon e\,\theta\sin\theta$
what it encodes
frequency $1 + \tfrac38\varepsilon A^2$
frequency $1 - \varepsilon$
its growth
false: $|x| \le A$
false: the orbit does not swell
its phase
not observed
accumulates, and is observed
In both, the secular term is a frequency shift written badly. "Removing" it means re-writing it correctly — never discarding it.
why it must be kept
A Newtonian bound orbit closes: $w$ is $2\pi$-periodic in $\theta$. Demand that of $w_1$ and the solvability condition requires the $\cos\theta$ coefficient of $w_0^2$, which is $2e$, to vanish — false for any non-circular orbit. The equation forbids a closed orbit. The only way to satisfy it is to let the radial frequency differ from 1, and that difference is the precession.
and the naive form is enough
The naive series fails when $\varepsilon\theta \sim 1$: for Mercury, after $2.0$ million orbits, $480\,000$ years. Observations span centuries. Over them, $\varepsilon e\,\theta\sin\theta$ is uniformly accurate — and its coefficient is the $43''$.
21 · summary
What this unit bought
the toolkit
Nondimensionalise to find $\varepsilon$; classify: regular, singular in the equation, or singular in the domain.
Asymptotic, not convergent: error $o(\phi_N)$ at fixed $N$. Truncate at the smallest term; the error is exponentially small.
Secular terms are frequency shifts expanded badly. Poincaré–Lindstedt for periodic motion, multiple scales otherwise, both through the solvability condition.
Boundary layers: stretch by dominant balance, solve inner and outer, match, composite.
WKB: phase from the eikonal equation, amplitude $q^{-1/4}$ from transport, valid while the medium varies slowly; connection formulae at turning points.
Reading
Hinch, Perturbation Methods (CUP, 1991): the chapters on algebraic equations, asymptotic approximations, matched expansions and multiple scales. Skip the one on integrals until after unit 20. Short, and exactly at this level.
Bender and Orszag, Advanced Mathematical Methods for Scientists and Engineers: ch. 7 (perturbation series), 9 (boundary layers), 10 (WKB, stopping before the Airy asymptotics), 11 (multiple scales). Skip ch. 6 until after unit 20: it uses complex analysis.
Next
22 continuum mechanics · 37 the classical tests, where the orbit is derived and closed · 38 gravitational waves, first-order perturbation theory of spacetime.
21 · checkpoint
Done when
checkpoint
Given a perturbed problem you can, on paper and without notes:
nondimensionalise it, name $\varepsilon$, and say whether it is regular or singular, in the equation or in the domain;
remove a secular term by Poincaré–Lindstedt or multiple scales, and get the frequency correction right including its sign;
construct a boundary layer, match it to the outer solution, and write the composite;
for a divergent asymptotic series, find the optimal truncation point and state the accuracy it achieves;
say, for the relativistic orbit equation, why the secular term must be kept.
Failing it is unambiguous
A layer at the wrong end; a stiffening spring that slows down; terms added past the smallest one; or "secular terms are unphysical, so the precession is zero".
Next
The sheet: ./mr problems 21. When the checkpoint is true: ./mr done 21.