Save this video free

2026 2NM4 Week 8 - Differential Equations: Initial value problems

Numerical Methods for Engineering · 2:09:12 · Watch on YouTube

Part of McMaster University ENGPHYS 2NM4. See all 20 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture connects numerical integration to initial value problems, showing how truncation error, step size, and accumulated error shape time-stepping methods. It derives two-point Gauss-Legendre quadrature, reviews linear-system and nonlinear least-squares tools, then introduces IVPs, adaptive stepping, Runge-Kutta stages, and Forward Euler, whose global error is first order in the time step.

Key takeaways

Chapters

0:00 Newton-Cotes Integration and Why Panel Errors Accumulate
3:36 Richardson Extrapolation Cancels Trapezoid Error
9:05 Romberg Integration Builds a Recursive Accuracy Table
12:18 Romberg Assumptions and When Error Cancellation Fails
15:52 Romberg Demonstration and Machine-Precision Limits
20:34 Gaussian Quadrature Chooses Evaluation Points Strategically
25:34 Deriving Two-Point Gauss-Legendre Quadrature
28:28 Two Gauss Points Integrate Cubics Exactly
31:33 Mapping Arbitrary Intervals to the Gauss Reference Domain
34:20 Higher-Point Gauss Rules, Error, and Finite Elements
37:30 Multidimensional Quadrature and Element Mapping
40:00 Computational Complexity, LU, and Pseudoinverses
45:10 Sparse and Banded Matrices Need Appropriate Solvers
52:25 Preconditioners Make Iterative Linear Systems Easier
57:13 Golden-Section Search Balances Both Branches
1:00:47 Big O and Taylor Series Describe Different Scaling
1:09:49 Gauss-Newton and Levenberg-Marquardt for Curve Fitting
1:22:43 ODE Order, Linearity, and Equation Classification
1:25:22 Homogeneous Equations and Linear Differential Operators
1:30:07 Initial Conditions and Dirichlet, Neumann, and Robin Data
1:33:32 Boundary-Value Problems and PDE Types
1:39:16 IVP Data Requirements and Accumulating Time-Step Error
1:45:08 Physical Time Scales, Adaptive Stepping, and Memory
1:52:15 Local and Global Error, Stability, and Solver Families
1:53:18 Runge-Kutta Stages Approximate Higher-Order Corrections
1:56:56 Explicit Solvers and the Differential-Equation Function
1:58:33 Runge-Kutta Updates and Forward Euler's First-Order Error

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Cool. Numerical integration. We did a whole bunch of them. Uh, let's see. They were in general types of Newton-Cotes integration formulae. What that meant is that we had our total our total integral that we wanted to integrate all over. We divided those into panels and then we fit different order polynomials. Zeroth order polynomial is a constant. That was our left and right Riemann sums, midpoint Riemann. First order polynomial is a line. That's our trapezoid. Second order is our quad. That's our Simpson's. Uh, what is it? One third rule is the quad and uh 3/8 rule is the cubic. We needed to combine those two because if you're

0:48 doing quads, you've combined two panels. But if you have an odd number of panels, therefore you you kind of like stack mostly uh quads and then you throw on a cubic at the end. What we found with that was that each panel had an integration uncertainty, but the total integral had one less order of convergence on top of that. So each panel had like order h cubed, for example, but because you're stacking this panel and this panel and this panel and this panel, the number of panels there is proportional to your step size for the same total interval. Therefore order h cubed on each panel becomes order h squared overall. Okay? This is going to become critical as soon as we talk about uh differential equations and initial

1:39 value problems because this is where initial value problems are going to be time integrators. That's what they're called. All this integration is going to be like haunting your dreams for the next few weeks. Telling you right now. Uh, let's see. Okay. That was Simpson's rule. We got through that one. The way that Newton-Cotes works

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.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.