Numerical Integration of ODEs with Forward Euler and Backward Euler in Python and Matlab @Eigensteve
Numerical Integration of ODEs with Forward Euler and Backward Euler in Python and Matlab  @Eigensteve
Uploaded December 2022 | Updated September 2026, 2 weeks ago
In this video, we code up the Forward Euler and Backward Euler integration schemes in Python and Matlab, investigating stability and error as a function of the time step. We test these integrators on the simple spring-mass-damper system, where we have an analytic solution to compare against.

Playlist: youtube.com/playlist?list=PLMrJAkhIeNNTYaOnVI3QpH7jgULnAmvPA
Course Website: http://faculty.washington.edu/sbrunton/me564/

Codes (Python): http://faculty.washington.edu/sbrunton/me564/python/L17_pend.ipynb and http://faculty.washington.edu/sbrunton/me564/python/L17_simpend.ipynb
Codes (Matlab): http://faculty.washington.edu/sbrunton/me564/matlab/L17_pend.m and http://faculty.washington.edu/sbrunton/me564/matlab/L17_simpend.m

@eigensteve on Twitter
eigensteve.com
databookuw.com

This video was produced at the University of Washington

%%% CHAPTERS %%%
0:00 Problem setup
8:39 Matlab code example
20:20 Python code example
Numerical Integration of ODEs with Forward Euler and Backward Euler in Python and MatlabMethod of Moments to Fit Distributions from DataArousal as a universal embedding for spatiotemporal brain dynamicsExample of The Moment Generating FunctionPhysics Informed Machine Learning: High Level Overview of AI and ML in Science and EngineeringDifferential Equations with Forcing: Method of Undetermined CoefficientsGentle Introduction to Modeling with Matrices and Vectors: A Probabilistic Weather ModelConditional ProbabilitiesNumerical Integration of Chaotic Dynamics: Uncertainty Propagation & Vectorized IntegrationDeriving Forward Euler and Backward/Implicit Euler Integration Schemes for Differential EquationsJoint Probability DistributionsNew Advances in Artificial Intelligence and Machine Learning
Steve Brunton |

Numerical Integration of ODEs with Forward Euler and Backward Euler in Python and Matlab

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER