Save this video free

lecture 3: Error Analysis, linear systems 1

Professor Saad Explains · 1:18:13 · 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 completes numerical error analysis by showing how NumPy arrays and slicing compute forward-difference derivatives and successive relative errors efficiently, then introduces Lp norms for measuring collections of errors. It begins linear systems by distinguishing algebraic from differential equations, defining linearity, and connecting conservation laws and computational fluid dynamics to systems of algebraic equations, with a steady-state reactor example setting up the next class.

Key takeaways

Chapters

0:00 Forward Differences and the Need to Automate Error Calculations
5:00 Python Indexing and Slice Boundaries
9:15 NumPy Vectorization Applies Functions Across Step Sizes
13:15 Aligning Successive Derivatives with Slices
17:45 Implementing the Error Calculation in a Jupyter Notebook
25:15 True Error Versus Approximate Error
30:30 GPS Position Error Motivates Vector Norms
37:00 L1, L2, and L-infinity Norms for Error Arrays
40:00 NumPy Norms and Choosing an Error Measure
43:30 From Measurement Errors to Equations in Engineering
48:00 Algebraic Equations and Linear Versus Nonlinear Variables
52:40 NIST Fire Simulation Shows Why Linear Systems Matter
1:02:30 Formal Definition of a Linear Algebraic Equation
1:06:00 Systems of Linear Equations and Conservation of Mass
1:12:00 Steady-State Mass Balances Lead to Linear Systems

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

Transcript excerpt

0:00 Let's begin. I wanted to share this with you especially now that you're starting on your graduate journey. Okay? So you are now the you might you're here. Okay? But don't judge yourself too early in the process because you're going to get there and be a diamond when you're done. Okay? And diamonds are forever. Right? Okay. So I'll continue with the example we were working on last time and we're still kind of just dragging our feet, taking it easy as as we build our as we build rapport and give you a chance to get used to Python and do some work on your own to catch up with Python coding. And last we left off was looking at this example. We wanted to use

0:49 we were talking about errors and we wanted to evaluate the error in approximating the first derivative with this formula. It's called the forward Euler formula. Rise over run is the definition of the derivative. We just drop the limit. Um the definition of the derivative is that this approximation is exact when h approaches zero. Um but when you drop the limit and you pick a small number for h, it's a pretty darn good approximation to the derivative. Now how good it is? Well we don't know because we're assuming we don't know the true value of the derivative. Right? And so we want to evaluate the approximate error and I asked you to do this approximation for this function 2e to the 1/2x at this point x = 3. But we're going to be using these different values for h and

1:38 the approximate error we're measuring a good approximation versus a worse approximation. Right? So that difference gives us an idea of what the error is. And we want to report the percent

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.