Unit 5: Initial Value Problems for Ordinary Differential Equations: Single-Step Methods
Comprehensive formulation of Initial Value Problems (IVPs), Picard's existence-uniqueness iteration, Taylor series expansions, explicit Runge-Kutta frameworks (Heun, Midpoint, classical RK4), Butcher tableaux, order condition derivations, and embedded adaptive pairs.
§5.1 Mathematical Formulation of IVPs, Picard's Existence-Uniqueness Theorem & Successive Approximations
1. The General Initial Value Problem (IVP)
Consider the first-order ordinary differential equation with prescribed initial state:
where $y: [t_0, T] \to \mathbb{R}^d$ and $f: [t_0, T] \times \mathbb{R}^d \to \mathbb{R}^d$.
Equivalent Volterra Integral Equation:
Integrating both sides over $[t_0, t]$ yields:
This integral formulation converts the differential equation into a fixed-point problem over the Banach space $C([t_0, T], \mathbb{R}^d)$.
2. The Picard-Lindelöf Existence and Uniqueness Theorem
Theorem (Picard-Lindelöf): Let $D = [t_0 - a, t_0 + a] \times \overline{B}(y_0, b) \subset \mathbb{R} \times \mathbb{R}^d$. Suppose:
- $f(t, y)$ is continuous on $D$, with $M = \max_{(t, y) \in D} \|f(t, y)\| < \infty$.
- $f(t, y)$ satisfies a uniform Lipschitz condition with respect to $y$ on $D$:
Then there exists a unique continuously differentiable solution $y(t)$ to the IVP on the interval $I = [t_0 - h, t_0 + h]$, where $h = \min\left(a, \frac{b}{M}\right)$.
Picard's Method of Successive Approximations:
Define the operator $T: C(I) \to C(I)$ by:
Starting from the constant initial guess $y^{(0)}(t) \equiv y_0$, generate the sequence:
Proof of Uniform Convergence:
For any $t \in [t_0, t_0 + h]$:
By induction:
Since the infinite series:
converges, the Weierstrass M-test guarantees that the sequence of continuous functions $\{y^{(k)}(t)\}$ converges uniformly on $I$ to a unique limit $y^(t) = \lim_{k \to \infty} y^{(k)}(t)$. Taking the limit under the integral sign proves $y^(t) = T y^*(t)$.
§5.2 Taylor Series Methods & Euler's Method: Derivation, Truncation Error & Limitations
1. High-Order Taylor Series Method
Assuming $f(t, y)$ is $p$-times continuously differentiable, the exact solution $y(t)$ can be expanded about $t_n$ using Taylor's theorem:
where $\xi_n \in (t_n, t_{n+1})$.
Using the chain rule, total derivatives of $y(t)$ are evaluated directly from the governing ODE:
The Taylor Method of Order $p$:
where the increment function is:
Fatal Practical Limitation: For systems of ODEs or complex nonlinear functions $f$, computing high-order total derivatives analytically requires nested symbolic chain rules whose algebraic complexity explodes exponentially (the "curse of differentiation").
2. Forward Euler's Method ($p = 1$)
Truncating after the linear term yields the simplest numerical integrator:
Error Analysis:
- Local Truncation Error (LTE):
- Local Error per unit step: $\tau_{n+1} = \frac{d_{n+1}}{h} = \mathcal{O}(h)$.
- Global Truncation Error (GTE): Over a fixed interval $[t_0, T]$ with $N = (T - t_0)/h$ steps, errors accumulate:
Hence, Forward Euler is only first-order accurate. To halve the error, computational work must double.
§5.3 Explicit Runge-Kutta Families: Geometric Motivation, 2nd-Order Schemes & Butcher Tableaux
1. General Philosophy of Runge-Kutta Methods
The core innovation of Carl Runge (1895) and Wilhelm Kutta (1901) was to match the Taylor series expansion up to order $p$ using only evaluations of $f(t, y)$ at intermediate points, completely bypassing analytic differentiation.
An explicit $s$-stage Runge-Kutta (ERK) method advances from $(t_n, y_n)$ to $t_{n+1} = t_n + h$ via:
where stage derivatives $k_i$ are sampled sequentially:
2. The Butcher Tableau Representation
John C. Butcher formalized Runge-Kutta schemes into a compact matrix-vector tableau:
where $c_i = \sum_{j=1}^{i-1} a_{ij}$ ensures internal stage consistency (zero-order consistency for autonomous systems).
3. Family of Two-Stage Second-Order Runge-Kutta Methods (RK2)
For $s = 2$:
Expanding in Bivariate Taylor Series:
Expanding $k_2 = f(t_n + c_2 h, y_n + h a_{21} f)$ about $(t_n, y_n)$:
Substituting into the numerical update:
Comparing with the exact Taylor series:
Equating coefficients of powers of $h$ and elementary differentials:
- $h^1$ term: $b_1 + b_2 = 1$
- $h^2 f_t$ term: $b_2 c_2 = \frac{1}{2}$
- $h^2 f f_y$ term: $b_2 a_{21} = \frac{1}{2}$
This gives 3 nonlinear equations in 4 unknowns ($b_1, b_2, c_2, a_{21}$), yielding a one-parameter family of second-order methods where $a_{21} = c_2$ and $b_2 = \frac{1}{2 c_2}$, $b_1 = 1 - \frac{1}{2 c_2}$ for any $c_2 \ne 0$:
Famous Members of the RK2 Family:
1. Explicit Midpoint Method ($c_2 = 1/2$):
2. Heun's Method / Improved Euler ($c_2 = 1$):
3. Ralston's Method ($c_2 = 2/3$):
Minimizes the truncation error bound: $b_1 = 1/4$, $b_2 = 3/4$, $a_{21} = 2/3$.
§5.4 The Classical Fourth-Order Runge-Kutta Method (RK4): Derivation & Implementation
1. The Classical RK4 Formula
The fourth-order Runge-Kutta method (often referred to simply as the Runge-Kutta method) is given by:
Butcher Tableau for Classical RK4:
Notice the weights $\vec{b} = \left[\frac{1}{6}, \frac{2}{6}, \frac{2}{6}, \frac{1}{6}\right]^T$, which correspond exactly to Simpson's $1/3$ rule weights across the interval $[t_n, t_{n+1}]$!
2. Derivation of Order Conditions via B-Series and Trees
For an explicit Runge-Kutta method to achieve order $p = 4$, the numerical expansion must match the Taylor series expansion for all rooted trees up to order 4:
1. Order 1 (1 condition): $\sum b_i = 1$
2. Order 2 (1 condition): $\sum b_i c_i = 1/2$
3. Order 3 (2 conditions):
- $\sum b_i c_i^2 = 1/3$
- $\sum b_i a_{ij} c_j = 1/6$
4. Order 4 (4 conditions):
- $\sum b_i c_i^3 = 1/4$
- $\sum b_i c_i a_{ij} c_j = 1/8$
- $\sum b_i a_{ij} c_j^2 = 1/12$
- $\sum b_i a_{ij} a_{jk} c_k = 1/24$
Together, these form a system of 8 nonlinear algebraic equations for the coefficients $\{a_{ij}, b_i, c_i\}$. The classical RK4 coefficients satisfy all 8 conditions identically, resulting in:
3. Butcher's Barrier Theorem for Higher Orders
A remarkable mathematical property discovered by J. C. Butcher is that the minimum number of stages $s(p)$ required to achieve order $p$ satisfies:
Theorem (Butcher's First Barrier): No explicit Runge-Kutta method of order $p \ge 5$ can have $s = p$ stages. Specifically, an order 5 explicit RK method requires at least $s = 6$ stages! This explains why RK4 is universally regarded as the computational sweet spot in scientific computing: it achieves 4th-order accuracy with the minimum possible number of stages ($s = 4$).
Tiered Solved Practice Problems & Examination Proofs
Comprehensive analytical derivations, multi-tier solutions (Foundational, Intermediate Algorithmic, and Honors/Proof Challenge) with complete line-by-line verification.
Consider the nonlinear initial value problem:
- Compute the first two Picard iterations $y^{(1)}(t)$ and $y^{(2)}(t)$ starting from $y^{(0)}(t) \equiv 1$. 2. Compute the 4th-degree Taylor polynomial of the exact solution $y(t)$ about $t_0 = 0$. 3. Verify how many terms of the Taylor series agree with $y^{(2)}(t)$.
Step 1: Picard Iterations Given $y_0 = 1$ and $f(t, y) = t + y^2$:
- Base approximation: $y^{(0)}(t) = 1$.
- First Picard iteration:
- Second Picard iteration:
Expanding the integrand:
Adding $s$:
Integrating term-by-term:
Step 2: Taylor Series Method Evaluate derivatives at $t = 0$ with $y(0) = 1$:
- $y'(0) = 0 + (1)^2 = 1$.
- $y''(t) = 1 + 2y y' \implies y''(0) = 1 + 2(1)(1) = 3$.
- $y'''(t) = 2(y')^2 + 2y y'' \implies y'''(0) = 2(1)^2 + 2(1)(3) = 8$.
- $y^{(4)}(t) = 6 y' y'' + 2y y''' \implies y^{(4)}(0) = 6(1)(3) + 2(1)(8) = 18 + 16 = 34$.
Forming the Taylor polynomial:
Step 3: Comparison Comparing $y^{(2)}(t) = 1 + t + \frac{3}{2} t^2 + \frac{2}{3} t^3 + \dots$ with the exact Taylor expansion:
- Degree 0: $1 = 1$ (matches)
- Degree 1: $t = t$ (matches)
- Degree 2: $\frac{3}{2} t^2 = \frac{3}{2} t^2$ (matches)
- Degree 3: $\frac{2}{3} t^3 \ne \frac{4}{3} t^3$.
Thus, $y^{(2)}(t)$ correctly reproduces the exact Taylor polynomial up to degree 2.
Consider the test IVP:
with exact analytical solution $y(t) = e^{-t^2}$. 1. Perform one single time step from $t_0 = 0$ to $t_1 = 0.2$ using step size $h = 0.2$ with: (a) Forward Euler, (b) Heun's method (RK2), and (c) Classical RK4. 2. Compute the exact solution $y(0.2)$ to 7 decimal places and calculate the absolute error $|y_{\text{exact}} - y_{\text{num}}|$ for all three methods.
Exact Solution:
(a) Forward Euler ($h = 0.2$):
- Absolute Error: $|0.9607894 - 1.0000000| = 0.0392106$ ($\approx 3.92 \times 10^{-2}$).
(b) Heun's Method (RK2, $h = 0.2$):
- Stage 1: $k_1 = f(0, 1) = 0$.
- Stage 2: $t_0 + h = 0.2$, $y_0 + h k_1 = 1 + 0.2(0) = 1$.
- Update:
- Absolute Error: $|0.9607894 - 0.9600000| = 0.0007894$ ($\approx 7.89 \times 10^{-4}$).
Notice error dropped by a factor of $\approx 50$ compared to Euler!
(c) Classical RK4 ($h = 0.2$):
- $k_1 = f(0, 1) = 0$.
- $k_2 = f\left(0 + \frac{0.2}{2}, 1 + \frac{0.2}{2} k_1\right) = f(0.1, 1) = -2(0.1)(1) = -0.2$.
- $k_3 = f\left(0.1, 1 + 0.1 k_2\right) = f(0.1, 1 + 0.1(-0.2)) = f(0.1, 0.98) = -2(0.1)(0.98) = -0.196$.
- $k_4 = f(0 + 0.2, 1 + 0.2 k_3) = f(0.2, 1 + 0.2(-0.196)) = f(0.2, 0.9608) = -2(0.2)(0.9608) = -0.38432$.
- Combine:
- Absolute Error: $|0.96078944 - 0.96078933| = 0.00000011 = 1.1 \times 10^{-7}$.
The classical RK4 method provides over 5 orders of magnitude higher accuracy than Euler for the same step size!
- Using bivariate Taylor expansions of the generic two-stage explicit Runge-Kutta scheme:
derive the necessary and sufficient algebraic conditions on $(b_1, b_2, c_2, a_{21})$ for second-order accuracy $\mathcal{O}(h^2)$. 2. Prove mathematically that no two-stage explicit Runge-Kutta scheme can achieve third-order accuracy $\mathcal{O}(h^3)$.
Part 1: Derivation of RK2 Order Conditions
Let $y(t)$ be the true solution to $y' = f(t, y)$. By Taylor's theorem:
Computing the total derivatives using the chain rule (suppressing arguments $(t_n, y_n)$):
Hence:
Now expand the numerical method. Here $k_1 = f$. For $k_2$:
Substituting into the numerical update $y_{n+1} = y_n + h b_1 k_1 + h b_2 k_2$:
Subtracting Eq. (2) from Eq. (1) gives the local error:
For this error to be $\mathcal{O}(h^3)$ for all arbitrary smooth functions $f$, each bracketed term must vanish independently:
- $b_1 + b_2 = 1$
- $b_2 c_2 = \frac{1}{2}$
- $b_2 a_{21} = \frac{1}{2}$
Dividing condition (3) by condition (2) immediately yields:
This proves the fundamental RK2 system of order conditions. $\blacksquare$
Part 2: Proof of Infeasibility for Order 3 with 2 Stages
For the scheme to be third-order accurate, the $\mathcal{O}(h^3)$ term of Eq. (2) must match the $\mathcal{O}(h^3)$ term of Eq. (1):
Matching the coefficient of $f_{tt}$:
Since $b_2 c_2 = \frac{1}{2}$, dividing gives:
Then $b_2 = \frac{1}{2 c_2} = \frac{3}{4}$, and $b_1 = 1 - b_2 = \frac{1}{4}$.
However, examine the term $f_y (f_t + f f_y)$ in the exact Taylor expansion: In Eq. (1), the coefficient of $f_y f_t$ is $\frac{1}{6}$. In Eq. (2), the numerical expansion contains no term proportional to $f_y f_t$ or $f f_y^2$ at order $h^3$, because $k_2$ only involves partial derivatives of $f$, and does not evaluate derivatives of $k_1$! Therefore, the coefficient of $f_y(f_t + f f_y)$ in the numerical method is identically zero, whereas in the exact solution it is $\frac{1}{6} \ne 0$.
Since $0 \ne \frac{1}{6}$, the difference cannot vanish for general non-linear ODEs where $f_y(f_t + f f_y) \ne 0$. Hence, no 2-stage explicit Runge-Kutta method can achieve order 3. $\blacksquare$