2025 Week 7-1 - 3NM4 lecture 2025 10 28 - Differential equations - explicit time steppers
Overview
The material introduces initial-value problems and explains explicit time stepping as repeated integration of a differential equation, where local truncation error accumulates into global error and stability depends on resolving the physics' time scales. It builds from forward Euler and Heun's predictor-corrector method to the midpoint method and generalized Runge-Kutta methods, using Butcher tableaux to describe stages; classical RK4 achieves local error O(h^5) and global error O(h^4), while rapidly changing solutions may require adaptive time steps.
Key takeaways
- Forward Euler uses one current-state slope per interval and has global error O(h), so reducing the step size improves accuracy but increases the number of accumulated steps.
- Heun's method and the midpoint method both achieve global error O(h^2), but they estimate the improved slope differently: Heun averages endpoint slopes, while midpoint evaluates a half-step slope.
- Repeated predictor-corrector iterations do not automatically improve the true solution; they may converge to a fixed point of the correction procedure that still differs from the exact differential-equation solution.
- Classical RK4 uses four strategically placed slope evaluations to achieve global error O(h^4), which can be more accurate than composing multiple lower-order steps over the same interval.
- Explicit Runge-Kutta coefficients are organized in a Butcher tableau, whose lower-triangular structure reflects that each explicit stage uses only already-computed information.
- A fixed time step can fail when the solution changes sharply; adaptive step sizing is needed to maintain accuracy when the physics evolves on changing time scales.
Chapters
- Equation order is set by the highest derivative present, distinguishing first-order equations from second-order or higher equations.
- A linear equation has the dependent variable and its derivatives appearing linearly; terms such as y squared or y times dy/dx make it nonlinear.
- Homogeneous linear equations have zero on the right-hand side, while a nonzero forcing function makes an equation nonhomogeneous.
- Initial-value problems specify conditions at one point, boundary-value problems specify conditions at endpoints, and PDEs include multiple independent coordinates such as space and time.
- An initial-value problem starts from a known state, such as y(0), and advances by solving a rate equation such as dy/dt = f(t,y).
- Time integration accumulates local truncation error at each step into global error across the full solution interval.
- Numerical noise can destabilize a time-stepping scheme, so stability and robustness matter alongside accuracy.
- A time step must resolve relevant physics: quasi-static elasticity may ignore acoustic waves of interest only indirectly, and stability can still constrain the step size.
- Single-step methods calculate the next value from the current step, while multistep methods also use stored history from earlier steps.
- Explicit methods predict the future using information available at the current time, unlike implicit methods that use future-state information.
- Taylor expansion of y at the next time requires higher derivatives; Runge-Kutta methods approximate their effects by evaluating slopes at intermediate substeps.
- The standard form dy/dt = f(t,y) uses indexed values such as y_i and y_{i+1}, with h denoting the time-step size.
- Forward Euler updates y_{i+1} = y_i + h f(t_i,y_i), equivalent to using a left-endpoint slope; its local error is O(h^2) and global error is O(h).
- Heun's method first predicts the next value with Euler, then averages the initial slope and the slope at the predicted endpoint.
- Repeated predictor-corrector cycles can converge to a fixed point that is not the exact solution, so extra correction iterations do not guarantee arbitrary accuracy.
- When f depends only on time and not on y, the predictor is directly available and the corrected update reduces to the trapezoid rule.
- The explicit midpoint method takes a half-step estimate, evaluates the slope there, and uses that midpoint slope across the full interval.
- Midpoint integration has local error O(h^3) and global error O(h^2), improving on forward Euler with an additional slope evaluation.
- General explicit Runge-Kutta methods combine intermediate slopes, or stages, using coefficients that determine each stage's time and solution estimate.
- A Butcher tableau compactly organizes Runge-Kutta weights, stage locations, and the lower-triangular coefficient matrix used by explicit methods.
- Second-order Runge-Kutta methods match terms in a Taylor expansion, leaving a degree of freedom that produces variants such as Heun, midpoint, and Ralston methods.
- RK2 methods have local error O(h^3) and global error O(h^2); Ralston's coefficient choice minimizes the leading error bound among the discussed RK2 options.
- The standard RK3 method adds a third stage and achieves local error O(h^4) and global error O(h^3).
- When f depends only on time, the standard RK3 construction recovers Simpson's 1/3 rule.
- Classical RK4 combines four slopes, evaluated at the start, two half-step estimates, and the endpoint, to achieve local error O(h^5) and global error O(h^4).
- The four RK4 stages combine intermediate information to cancel higher-order error terms, often outperforming simply splitting an interval into several lower-order steps.
- RK4 assumes the solution behaves smoothly enough across the interval; a sharp change can make slopes from different parts of the interval misleading.
- Adaptive time stepping addresses rapid changes by adjusting h rather than applying one fixed step size throughout the integration.
Transcript excerpt
0:01 Okay. Hi everyone. Uh today we're going to talk about differential equations. My apologies for having to pre-record this lecture. So uh differential equations basically since Newton mankind has come to realize that the laws of physics are best expressed as in the language of differential equations. Um differential equations are pervasive in in functions in physics in chemistry and in basically all of the natural sciences and social sciences too. There are a lot of applications for these things. Um, differential equations relate functions and their derivatives. Uh, they're all over the place and their their applications are are manifold. They're vast. Okay, this is going to be an incomplete classification of the types of equations we're going to look at, right? There's the the classification according to the order of the
0:47 differential equations. And this refers to the the first derivative of the function, right? So, the the leading order derivative. So this is an example of a first order derivative because the derivative is only in the first order in x, right? Second order or higher can be any combination wherein the the highest order determines the the order of the equation, right? So this one is going to be a second order equation because there's a second derivative and we don't really care about the the other ones here. Uh there's linear versus nonlinear differential equations and what that means is that the dependent variable and the derivatives appear linearly. So for example, this is going to be a linear equation because this term is by itself. This term even though it multiplies by a function of the independent variable x
1:35 in this case, it's not y. Right? So if it was y dy by dx, then it wouldn't count right here. Similarly, and over here, that's all still fine. This is
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Numerical Methods for Engineering.