Numerical Analysis: Roots, Splines & Errors
Learning Goal: Numerical Analysis and Approximation Algorithms: Constructing interpolating polynomials, splines, root-finding methods, and error propagation analysis.
This curriculum provides a structured, video-based learning path designed to transition you from an understanding of binary representation errors to master-level formulation of interpolation, splines, root-finding, and integration approximations.
- Prerequisites: Multivariable Calculus, Taylor Series expansions, and basic linear algebra (matrix systems).
- Estimated Total Study Time: 18 Hours.
Module 1: Computer Arithmetic and Error Analysis
This module introduces how computers store real numbers, the mathematical limits of floating-point arithmetic, and how small initial round-off and truncation errors propagate through long sequences of computations.
- Why this video: This video offers an intuitive, bite-sized breakdown of how floating-point numbers represent approximations of real numbers. It defines absolute error vs. relative error and introduces machine epsilon () under standard double precision ().
- Why this video: Addressing the feedback for a rigorous explanation of machine epsilon, this academic tutorial explains how to measure relative round-off errors. It derives the exact mathematical relationship between machine epsilon and the representation gap on the real line.
- Why this video: This highly rigorous lecture covers how errors propagate through foundational mathematical operations. It demonstrates why addition and subtraction can preserve or worsen relative error bounds, while multiplication and division amplify relative uncertainties.
Knowledge Checkpoint
- Define machine epsilon () mathematically and explain how it limits computer representation of decimals.
- Calculate the absolute and relative error bounds of a floating-point calculation.
- Identify subtraction cancellation and explain why subtracting two nearly identical float values leads to severe loss of significance.
Module 2: Root-Finding Methods
This module shifts focus to solving for non-linear equations. It reviews the visual, geometric, and algorithmic construction of Bisection, Secant, and Newton-Raphson methods, comparing their computational cost and rate of convergence.
- Why this video: Directly filling the gap identified in the review feedback, this video outlines a step-by-step walkthrough of the Bisection Method. It shows how the algorithm uses continuous interval boundaries to narrow down the root range systematically.
- Why this video: This video bridges the gap regarding convergence rates. It compares linear convergence (Q=1, constant digits added per step) and quadratic convergence (Q=2, doubling the correct digits per iteration), explaining why the Newton-Raphson method achieves quadratic speed under optimal conditions.
- Why this video: The Secant Method is introduced as a derivative-free alternative to Newton's method. This presentation analyzes the practical comparison between these two methods, highlighting computational costs per iteration.
Knowledge Checkpoint
- Determine when a root-finding algorithm will converge and state the convergence criteria.
- Contrast the convergence rates of the Bisection (linear), Secant (superlinear, ), and Newton-Raphson (quadratic) methods.
- Perform a manual 3-step iteration of the Newton-Raphson method for a transcendental equation.
Module 3: Polynomial Interpolation & Runge's Phenomenon
This module covers polynomial interpolation, exploring how to build unique, lower-degree polynomials that pass through discrete data nodes. It introduces Lagrange and Newton formulations, then investigates Runge's phenomenon—the wild oscillations that happen at interval edges when using high-degree polynomials.
- Why this video: This practical guide walks through constructing Lagrange basis polynomials () from scratch. It demonstrates the mechanics of fitting a single polynomial curve through target coordinates.
- Why this video: Building on Lagrange's formulation, this lesson covers Newton's divided-difference method. It explains how to build divided-difference tables recursively, presenting a more computationally efficient format for adding new nodes.
- Why this video: To address the gap concerning Runge's phenomenon, this tutorial visualizes how increasing the degree of an interpolating polynomial over equidistant points causes wild oscillations near the interval boundaries. This highlights the limits of global polynomial models.
Knowledge Checkpoint
- Formulate a Lagrange polynomial given distinct points.
- Build a complete divided-difference table and write out the corresponding interpolating polynomial.
- Define Runge's phenomenon and explain why equidistant node distribution makes high-degree global polynomial interpolation unstable.
Module 4: Spline Interpolation & Piecewise Approximation
This module introduces spline interpolation, which avoids Runge's phenomenon by using low-degree piecewise polynomials instead of a single high-degree polynomial. You will learn to construct piecewise linear and cubic splines that maintain smoothness across boundaries.
- Why this video: This video provides a step-by-step mathematical derivation of natural cubic splines. It explains how to enforce continuous first () and second () derivatives at internal boundaries, and how setting second derivatives to zero at the endpoints leads to a solvable tri-diagonal matrix system.
- Why this video: This tutorial walks through a complete numerical example of building a cubic spline. It shows how to translate interpolation coordinates and continuity requirements into a system of linear equations, and how to solve for the spline's coefficients.
Knowledge Checkpoint
- Explain why cubic splines are preferred over linear and quadratic splines for modeling physical processes.
- Write down the boundary and continuity equations that define a natural cubic spline at an interior node .
- Set up the tri-diagonal linear system of equations needed to solve for the spline parameters of a four-point data set.
Module 5: Numerical Integration & Error Bounds
This module covers approximating definite integrals using Newton-Cotes rules. It introduces the composite Trapezoidal and Simpson's rules, while examining how discretization sizes affect approximation errors.
- Why this video: This video provides an easy-to-follow, visual introduction to the composite Trapezoidal Rule. It details how the formula approximates the area under a curve using trapezoids and walks through a manual calculation step-by-step.
- Why this video: This tutorial covers Simpson's 1/3 Rule, which fits parabolic arcs to three points at a time. It highlights the requirement for an even number of subintervals () and demonstrates the 1-4-2-4-...-1 weighting pattern.
- Why this video: This lecture analyzes the mathematical error bounds of these integration rules. It uses Taylor series expansions to derive the principal error terms and evaluate the truncation errors of both the Trapezoidal and Simpson's formulas.
Knowledge Checkpoint
- State the degree of precision for both the Trapezoidal Rule (degree 1) and Simpson's Rule (degree 3).
- Approximate a definite integral using composite Simpson's 1/3 Rule given a step-size .
- Determine the maximum step size required to approximate an integral within a specified error tolerance using the Trapezoidal Rule error bound formula.
Course Map
This map outlines the recommended progression and dependencies for this curriculum.
Key People Index
- Carl Runge (1856–1927): German mathematician who discovered that high-degree polynomial interpolation on equidistant points leads to severe oscillation errors near the boundaries.
- Isaac Newton (1643–1727): Developed the Newton-Raphson root-finding algorithm, Newton divided-difference interpolation, and Newton-Cotes integration formulas.
- Joseph-Louis Lagrange (1736–1813): Formulated the Lagrange interpolation technique using Lagrange basis polynomials.
- Thomas Simpson (1710–1761): English mathematician who popularized Simpson's rule, approximating definite integrals using parabolic arcs.
Final Self-Assessment
Test your understanding of the curriculum with these final objectives:
- Calculate the absolute and relative representation error of a real number in single or double precision binary float representation.
- Find the root of using the Bisection method to within a specified tolerance .
- Compute the derivative of to perform the Newton-Raphson method and state what conditions would cause the method to fail (e.g., or cycling).
- Construct the Newton divided-difference table for five data points and evaluate the resulting interpolating polynomial at an arbitrary point.
- Graphically sketch Runge's phenomenon and explain how Chebyshev node spacing can mitigate it.
- Write down the complete system of boundary and continuity equations that define a cubic spline.
- Prove why a "natural" spline is called "natural" by showing its boundary constraints at the endpoints.
- Approximate a definite integral using composite Simpson’s 1/3 rule and compute its error bound using the fourth derivative of the function.













