Numerical Mathematics Part 1: Nonlinear Equations, Interpolation, and Integration
Overview of Numerical Mathematics
Numerical Mathematics (Numerics) focuses on the numerical calculation of solutions to mathematical problems.
It serves as a link between pure mathematics, computer science, and engineering sciences.
It develops algorithms and methods to solve problems that lack exact theoretical solutions, such as integrating complex functions or solving higher-order partial differential equations.
Quote by Immanuel Kant: "In every pure natural science, there is only as much actual science as there is mathematics applied in it."
Nonlinear Equations and Systems of Equations
The primary goal is determining roots (zeros) of equations where . This is often reframed as a "nullstelle" (zero) problem for functions of one or more variables.
Definition 1.1 (Zero/Nullstelle): Let and . An element is a zero of if .
The Newton-Method for Functions of One Variable
Developed by Sir Isaac Newton (1643–1727). It is an iterative method motivated by geometric intuition.
Geometric Motivation: In a point (the starting approximation), a tangent is placed on the function . The zero of this tangent, , is calculated as a better approximation of the actual zero .
Tangent Equation: .
Iteration Formula: , assuming .
Convergence:
Quadratic Convergence: If is a simple zero (), the error decreases such that . Effectively, the number of correct decimal places doubles at each step.
Linear Convergence: If is a multiple zero (), the error decreases linearly: with C < 1.
Specific Examples and Variations of Newton's Method
The Heron-Method (Babylonian Method): Used to calculate square roots (e.g., ). It is a special case of the Newton method applied to .
Formula: .
Stability and Divergence: The method does not always converge. Cycles can occur where the algorithm toggles between two values (e.g., and ).
Theorem 1.1: For a polynomial of degree at least 2 with only real roots, starting with any value larger than the largest zero guarantees a strictly monotonically decreasing sequence converging to that zero.
The Secant Method
Used when the derivative is difficult or impossible to determine.
Approximates the derivative using a secant between two points: .
Two-Term Recursion: Requires two starting values and .
Formula: .
Newton-Method for Functions of Multiple Variables
Solves systems of nonlinear equations where the number of variables equals the number of output variables.
Jacobi-Matrix (Functional Matrix): Versatile matrix containing all first-order partial derivatives.
Matrix Definition: .
Multidimensional Iteration: .
Practical Implementation: Explicitly inverting the matrix is computationally expensive. Instead, solve the linear system: and then update .
Interpolation and Approximation with Polynomials
Polynomial (Definition 2.1): A function . The set of all polynomials of degree at most is denoted by .
Interpolation Problem: Given support points (Sttzstellen) x_0 < x_1 < \dots < x_n and support values (Sttzwerte) , find a polynomial such that .
Existence and Uniqueness (Theorem 2.1): There is exactly one such polynomial for any given set of distinct points.
Lagrange Interpolation
Uses Lagrange-Polynomials of degree (Definition 2.2): .
Fundamental Property: if , and if .
Interpolation Formula: .
Disadvantage: If points are added, all Lagrange polynomials must be recalculated.
Bezier-Curves
Used in Computer-Aided Design (CAD). These focus on approximating control points rather than strict interpolation.
Bernstein-Polynomials (Definition 2.6): for .
Properties of Bernstein-Polynomials:
Sum to 1 (Partition of unity): .
Strictly positive for .
Exact maximum at .
Bezier-Curve (Definition 2.7): , where are control points.
Key Characteristics:
Endpoint Interpolation: The curve starts at and ends at .
Convex Hull Property: The entire curve lies within the convex hull of its control points.
Convexity Preservation: If the control polygon is convex, the curve is convex.
De Casteljau Algorithm
A recursive, numerically stable method to calculate points on a Bezier curve for a fixed .
Recursive step: .
The final point is the curve point .
Surfaces and Barycentric Coordinates
Barycentric Coordinates (Definition 2.12): A point in a triangle defined by non-collinear points can be uniquely represented as where .
Geometric Interpretation: is the "center of gravity" if masses are placed at the corners .
Bezier Surfaces: Defined over triangular parameter regions using Bernstein polynomials in barycentric coordinates: .
Numerical Integration: Romberg-Verfahren
The Trapezoidal Rule: Approximates the integral by dividing the interval into parts with step size .
Trapezoidal Sum Formula: .
Romberg Method: Improves the results of the trapezoidal rule through Richardson extrapolation.
Algorithm:
Calculate trapezoidal sums with .
Use the recursion: .
Advantages: This method significantly increases the order of convergence. For example, if the error of the trapezoidal rule is , the Romberg columns provide higher-order approximations like .
Asymptotic Development: The principle works because the error of the trapezoidal rule can be written as . This is the secret of the convergence acceleration in Romberg's method.
General Application: The Romberg principle (Verallgemeinertes Romberg-Verfahren) can be applied to any sequence of approximations that possesses an asymptotic development, such as numerical differentiation or approximating constants like .