Save this video free

CPBS 7620 - Lecture 16 - Differential Equations

Nicholas Dwork · 9:26 · Watch on YouTube

Part of University of Colorado Anschutz Medical Campus CPBS 7620. See all 19 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

Nicholas Dwork introduces ordinary differential equations (ODEs) and numerical methods for solving them, using a rainwater basin with initial height h(0) = 1 to illustrate time-stepping. He compares forward and backward Euler, central differences and leapfrog, then develops RK2 and RK4 as more accurate methods that trade additional function evaluations for improved estimates. Finally, he shows how to rewrite a higher-order ODE as a first-order system by collecting the unknown function and its derivatives into a vector.

Key takeaways

Chapters

0:00 ODEs, the Rainwater Basin, and Euler Time-Stepping
4:44 Difference Accuracy, Leapfrog, and Runge–Kutta Methods
8:17 Turning Higher-Order ODEs into First-Order Systems

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

Transcript excerpt

0:00 Hi, I'm Nicholas Twork, and in this lecture we'll discuss ordinary differential equations. An ordinary differential equation, or ODE, includes derivatives in the equation. So, for example, f''(x) + 2f'(x) + f(x) = e to the -kx. The goal of solving an ODE is to find a function that satisfies the expression. Much of the study of ODEs historically has focused on finding closed-form solutions for many classes of ODEs. For ODEs where we do not have a closed-form solution, we can still try to find solutions numerically. Let's look at an example. Suppose a retention basin collects rainwater. Water enters through the basin's opening in the top and leaves through a drain in the bottom.

0:48 For a basin of particular structure, it could be characterized using this ordinary differential equation. This first term contributes to the rate of change of height based on the amount of rainfall coming in, and this one takes away based on the amount of water draining. We need an initial condition, and for this case we'll say h(0) is equal to 1. To solve this numerically, we need an approximation of the derivative. And this is going to come from this now very familiar expression: h(t + Δt) is approximately equal to h(t) + h'(t) Δt. Solving for h'(t), we get h(t + Δt) - h(t) all over Δt. We can insert this approximation into our expression, and what we get is the forward Euler method. We can index time

1:37 as follows: t sub n is equal to n Δt for n = 0, 1, 2. And now we have an expression for the height at the next time, given the height at the current time. We know h sub 0, we know Δt, so we could find h sub 1, which lets us find h sub 2, etc.

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, Nicholas Dwork.

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.