Save this video free

lecture 14: ODEs - Part 4

Professor Saad Explains · 1:13:24 · Watch on YouTube

Part of University of Utah CH EN 6400. See all 17 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 explains how time-scale separation makes ODE systems stiff, why SciPy’s explicit solvers suit non-stiff problems while implicit methods such as BDF and Radau handle stiffness more efficiently, and how to choose among solve_ivp methods. It then derives and simulates the SIR epidemic model using compartment balances and parameters β and γ, before introducing boundary-value problems and finite-difference approximations for spatial derivatives.

Key takeaways

Chapters

0:00 Stiffness as Separation Between Slow and Fast Time Scales
4:14 Why Explicit and Implicit ODE Solvers Behave Differently
9:56 Choosing SciPy solve_ivp Methods for Stiffness
14:20 SIR Epidemics as a Compartment-Model Example
20:25 Compartment Models Use Inflow Minus Outflow
25:15 Deriving the SIR Infection Rate and βSI/N
31:00 Modeling Recovery with γ and Completing the SIR Equations
34:27 Implementing the SIR System with SciPy solve_ivp
45:45 How β Changes the Timing and Height of an Epidemic Peak
50:18 How Recovery Rate γ Affects Infections and Curve Shape
55:45 Boundary-Value Problems Require Conditions at Spatial Boundaries
1:01:00 Discretizing a Spatial Domain for Finite Differences
1:04:50 Forward, Backward, and Central First-Derivative Formulas
1:08:58 Second-Derivative Stencils and Course Project Guidance

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

Transcript excerpt

0:00 Let's begin. Uh good day everyone. Uh today we will continue with our discussion on uh systems of ODEs and we will finish off with the uh discussion on stiffness. So I will go back to the Vanderpole oscillator and we quickly discussed at the end of the lecture last week uh or last on Tuesday uh about systems that are stiff and we defined stiffness as a measure when a system has two different time scales. One scale that is slow and one scale that is fast. And if you take the ratio of the slow to the fast scale, if you know them, um that

0:48 will give you an idea of how stiff your system is, that ratio is um is dimensionless. So it's an absolute value. Essentially, you can it doesn't have a scale to it. So one is one 10 is 10 times bigger than one. A 100 is very large. A thousand is a million is very very high. Okay. Um and so uh so it's it's it's I say that it's dimensionless because compared to you could say a million uh nanometers right is that big like well compared to a meter that's not big right so you have to compare it to something but if the number is dimensionless it's already relative to something so it's an absolute scale so 10 to the 6 is a very large number in

1:35 that case uh and and the example we gave with the with the vanderpole oscillator you a very slow gradual scale occurring when the spring is either kind of loading up or or releasing the energy and then suddenly you have a very sharp um change in position. Um so that's an example of a stiff system. If all the scales in the system are of the same

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, Professor Saad Explains.

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.