Save this video free

2025 Week 7-2 - Numerical differentiation and integration

Numerical Methods for Engineering · 2:07:14 · Watch on YouTube

Part of McMaster University ENGPHYS 2NM4. See all 14 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 develops finite-difference differentiation and numerical integration by deriving formulas from Taylor expansions, comparing their error orders, and discussing how data spacing, boundaries, and noise affect accuracy. It progresses from Newton-Cotes rules, including trapezoid and Simpson's 1/3 rule, to Richardson extrapolation and Romberg integration, then derives two-point Gaussian quadrature and connects its sampling points to finite element methods.

Key takeaways

Chapters

0:00 Finite Differences Begin with Taylor Expansions and Step Size
4:00 Central Difference Cancels Leading Taylor-Expansion Errors
8:00 Boundary Derivatives Need Second-Order One-Sided Formulas
11:00 Higher-Order Derivative Formulas Trade Evaluations for Accuracy
16:00 Finite Differences Extend to Grids and Multiple Dimensions
20:00 NumPy Gradient Exposes Endpoint Accuracy Problems
26:00 Uneven Data Supports One-Step Differences, Not Standard Central Formulas
34:00 Differentiation Amplifies Measurement Noise
41:30 Integration Measures Area and Can Smooth Experimental Noise
45:20 Assignment Review Connects Root Finding and Optimization to Geometry
1:01:50 Newton-Cotes Rules Integrate Local Polynomial Approximations
1:07:00 Riemann Sums Establish the First Newton-Cotes Rules
1:11:00 Midpoint and Trapezoid Rules Improve Global Integration Accuracy
1:18:00 Simpson's Rules Use Symmetry to Reach Fourth-Order Accuracy
1:25:00 Integration Recap Introduces Richardson Extrapolation and Romberg
1:28:30 Richardson Extrapolation Cancels the Trapezoid Rule's Leading Error
1:34:30 Romberg Builds a Table of Successively Corrected Integrals
1:37:00 Romberg Accuracy Depends on Smoothness and Reliable Precision
1:42:00 Gaussian Quadrature Chooses Sample Locations to Maximize Accuracy
1:44:00 Two-Point Gauss-Legendre Quadrature Is Exact Through Cubics
1:47:30 Map Arbitrary Integration Intervals to the Gauss Reference Domain
1:53:00 Multidimensional Gaussian Quadrature Maps Elements to Reference Shapes
1:56:00 Finite Element Quadrature Connects Gauss Points to Element Order
2:00:00 Choose Integration Methods by Data Spacing and Evaluation Cost
2:04:00 Global Trapezoid Error Comes from Summing Local Errors

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

Transcript excerpt

0:02 I'm joking. I'm joking. Just joking. Okay. Uh numerical differentiation. So this is this section will not be on the midterm, right? The midterm is only up to an including optimization. This is kind of the the second part of everything uh where things actually start to get really interesting. So differentiation, what you guys are going to be getting sick of by the end of the next two weeks is Taylor series and basic algebra. To be entirely honest, the name of the game is going to be doing tailaylor expansion, right? Taylor is all about differentiation. What we're going to be doing is rearranging that to isolate the terms that we're interested in. And then we're going to apply some tricks to cancel out the ones that we're not. And we're going to try and cancel out some of those higher derivatives. Okay. So, we've already kind of started on the idea of differentiation of forward differentiation through the

0:49 secant method, right? This is one of the methods for uh for optimiz excuse me for root finding. We started with two points P and Q. We said the line that connects it is called your secant, right? Your secant connects is the chord that connects two points on a curve. As Q approaches P, you achieve the tangent, right? Basic uh basic calculus. I guess that would be first year at this point. Yeah. Um blah blah blah blah blah. So most of these methods, if not all of them, are going to be characterized by your step size. Okay. And your step size is going to be the difference between these two points P and Q. Um, not surprisingly, what we're going to be doing is looking at the order of convergence, excuse me, how does your

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.