Docsity

Numerical Methods: Root Finding, Interpolation and ODE Solvers, Study Guides, Projects, Research of Applied Mathematics

Toggle sidebar
bg1
Numerical Methods: Root Finding, Interpolation and ODE Solvers Page 1 of 5
Numerical Methods: Root Finding, Interpolation and ODE
Solvers
Algorithms with their convergence, error and stability written down
Mathematics | Undergraduate (Level 5) | December 2026
WHAT IS INSIDE
1. Core Concepts and Theoretical Frameworks
2. Root finding and convergence
3. Interpolation and approximation
4. Numerical integration and differentiation
5. Ordinary differential equations, stability and conditioning
6. Step-by-Step Worked Examples
7. Comparative Summary Table
8. Common Exam Pitfalls and Answer Technique
9. Practice Exam Questions with Model Answers
10. Glossary of Exam-Ready Definitions
1. Core Concepts and Theoretical Frameworks
Numerical methods are examined through the three questions that decide whether a computation can be trusted:
does it converge, how fast, and what happens to the error. The table gives the eight methods and the properties
required in an answer.
Method Iteration or rule Convergence Cost per step
Bisection Halve a bracketing
interval Linear, one bit per step One function evaluation
Fixed point x = g(x) Linear if the derivative is below one
near the root One evaluation
Newton-Raphson x minus f over f
prime Quadratic near a simple root Function and derivative
Secant Newton with a finite
difference Superlinear, order about 1.618 One evaluation after start
Lagrange interpolation Basis polynomials Exact at nodes; error from the next
derivative Evaluations grow with degree
Simpson's rule Parabolic fit on
pairs of intervals Error of order h to the fourth Odd number of nodes
Euler's method One-step explicit
update First order, unstable for stiff problems One derivative evaluation
Runge-Kutta 4 Weighted average
of four slopes Fourth order for smooth problems Four evaluations
Two habits separate good answers. First, always state the assumptions: Newton requires a derivative and a
good starting point, bisection requires a sign change, and Simpson requires a smooth integrand. Second,
distinguish truncation error, from the method's approximation, from rounding error, which grows when
subtracting nearly equal numbers.
2. Root finding and convergence
pf3
pf4
pf5

Partial preview of the text

Download Numerical Methods: Root Finding, Interpolation and ODE Solvers and more Study Guides, Projects, Research Applied Mathematics in PDF only on Docsity!

Numerical Methods: Root Finding, Interpolation and ODE

Solvers

Algorithms with their convergence, error and stability written down Mathematics | Undergraduate (Level 5) | December 2026

WHAT IS INSIDE

  1. Core Concepts and Theoretical Frameworks
  2. Root finding and convergence
  3. Interpolation and approximation
  4. Numerical integration and differentiation
  5. Ordinary differential equations, stability and conditioning
  6. Step-by-Step Worked Examples
  7. Comparative Summary Table
  8. Common Exam Pitfalls and Answer Technique
  9. Practice Exam Questions with Model Answers
  10. Glossary of Exam-Ready Definitions

1. Core Concepts and Theoretical Frameworks

Numerical methods are examined through the three questions that decide whether a computation can be trusted: does it converge, how fast, and what happens to the error. The table gives the eight methods and the properties required in an answer.

Method Iteration or rule Convergence Cost per step Bisection Halve a bracketing interval

Linear, one bit per step One function evaluation

Fixed point x = g(x) Linear if the derivative is below one near the root

One evaluation

Newton-Raphson x minus f over f prime

Quadratic near a simple root Function and derivative

Secant Newton with a finite difference

Superlinear, order about 1.618 One evaluation after start

Lagrange interpolation Basis polynomials Exact at nodes; error from the next derivative

Evaluations grow with degree

Simpson's rule Parabolic fit on pairs of intervals

Error of order h to the fourth Odd number of nodes

Euler's method One-step explicit update

First order, unstable for stiff problems One derivative evaluation

Runge-Kutta 4 Weighted average of four slopes

Fourth order for smooth problems Four evaluations

Two habits separate good answers. First, always state the assumptions : Newton requires a derivative and a good starting point, bisection requires a sign change, and Simpson requires a smooth integrand. Second, distinguish truncation error , from the method's approximation, from rounding error , which grows when subtracting nearly equal numbers.

2. Root finding and convergence

Bisection requires a continuous function with a sign change on an interval. It halves the interval each step, so the error is bounded by the interval width, and the number of steps needed for a given tolerance follows from the logarithm of the ratio of the initial width to the tolerance. Its great advantage is guaranteed convergence; its disadvantage is slowness and indifference to the shape of the function.

Newton-Raphson uses the tangent line to extrapolate to the axis, requiring the derivative. Near a simple root the error is roughly squared each step, which is quadratic convergence, but the method can diverge or cycle where the derivative is small or the starting point is poor. The secant method replaces the derivative with a finite difference, achieving superlinear convergence without the derivative, at the cost of two initial points.

Fixed-point iteration rewrites the equation as x equals g of x and iterates. Convergence depends on the magnitude of the derivative of g near the fixed point: below one, the iteration contracts and converges; above one, it diverges. The contraction mapping theorem states this precisely, and the practical lesson is that a rearrangement which converges is not guaranteed by the algebra but by the derivative.

Method Requires Order Failure mode Bisection Sign change, continuity 1 (linear) Slow; fails without bracket Newton Derivative, good start 2 (quadratic) Divergence, division by small derivative Secant Two starts 1.618 Instability near flat regions Fixed point Contraction 1 Divergence if derivative exceeds one False position Sign change Superlinear One-sided convergence

3. Interpolation and approximation

Interpolation constructs a function that passes exactly through given points. Lagrange's form gives an explicit polynomial through n points, with the error term proportional to the product of the distances to the nodes and to the n-th derivative. The product form of the error is the standard justification for choosing nodes that minimise it.

High-degree polynomial interpolation is dangerous because of Runge's phenomenon: equally spaced nodes produce oscillations near the ends of the interval. Two responses exist. One is to use nodes clustered at the ends, as with Chebyshev nodes, which reduce the maximum error. The other is to abandon a single high-degree polynomial in favour of piecewise interpolation, using cubic splines that are smooth and local, so a change in one data point affects only nearby intervals.

Approximation differs from interpolation in that the curve need not pass through the points. Least squares minimises the sum of squared residuals and is the correct method when the data contain noise; the normal equations give the closed-form solution for a linear model, though solving them directly is numerically inferior to orthogonal methods such as QR decomposition.

  • Lagrange interpolation is exact at nodes and its error depends on the next derivative.
  • Runge's phenomenon is a property of equally spaced nodes at high degree.
  • Cubic splines give local control and continuous second derivatives.
  • Least squares is appropriate for noisy data; interpolation for exact data.
  • Choose the model from the physics, not from the fit quality alone.

4. Numerical integration and differentiation

Numerical integration approximates the area under a curve. The trapezium rule fits straight lines between points and has error of order h squared. Simpson's rule fits parabolas over pairs of intervals and has error of order h to the fourth, which makes it substantially more accurate for the same number of evaluations when the integrand is

The calculation shows why bisection is described as linear with one bit of accuracy per step. It also shows the guarantee: the error bound is known before any evaluation.

Example 2: Newton-Raphson and a bad starting point For the function x cubed minus 2x plus 2, the derivative is 3x squared minus 2. Starting at zero, the first iteration moves to one, and the derivative at one is positive one, so the next step moves to zero again. The iteration cycles and never converges.

The lesson is that quadratic convergence is local, not global. A sketch of the function before iterating would have revealed the cycle, and a bracketing method would have found the root without difficulty.

Example 3: Simpson's rule versus the trapezium rule Integrating a cubic polynomial over a single pair of intervals, Simpson's rule is exact because the error term involves the fourth derivative, which vanishes for a cubic. The trapezium rule is not exact, with an error proportional to the second derivative.

The example is the standard demonstration of why the error order matters: an additional derivative evaluation buys a much higher order of accuracy for smooth functions.

7. Comparative Summary Table

The table collects the error orders and the practical condition for each method.

Problem Method Order Condition or caveat Root, bracketed Bisection 1 Sign change required Root, smooth Newton 2 Derivative and good start Interpolation, few nodes Lagrange Exact at nodes High degree oscillates Interpolation, many nodes Cubic spline Fourth order Requires boundary conditions Integration, smooth Simpson 4 Odd number of nodes ODE, non-stiff Runge-Kutta 4 4 Four evaluations per step ODE, stiff Backward Euler 1 Implicit solve each step

The order column is not a ranking of quality. A first-order method that is guaranteed to converge can be the right choice when reliability matters more than speed.

8. Common Exam Pitfalls and Answer Technique

These errors recur in numerical methods examinations.

Answer technique

  • State the convergence condition, not only the iteration formula.
  • Distinguish local from global error when quoting an order.
  • Compute the error bound for bisection explicitly rather than describing it.
  • Explain why a method fails, not only that it does.
  • Distinguish interpolation from approximation by the presence of noise.
  • Show the arithmetic; a described method without numbers earns few marks.

A complete answer names the method, states its assumptions, derives or states its error order, and interprets the result. That four-part structure applies to every question in this paper.

9. Practice Exam Questions with Model Answers

Answer in eight minutes each before reading the model answer.

Question 1. Compare bisection and Newton-Raphson for finding a root. Model answer. Bisection needs only a sign change and converges linearly with a known error bound, so it is reliable but slow. Newton needs a

derivative and a good starting point but converges quadratically near a simple root, so it is fast but can diverge or cycle. Practice often combines them: bisection to bracket, then Newton for speed.

Question 2. Why does polynomial interpolation oscillate at the ends of an interval? Model answer. Runge's phenomenon: for equally spaced nodes and high degree, the interpolation error, which involves the product of distances to the nodes and the high derivative, becomes large near the ends. Clustered nodes such as Chebyshev points, or piecewise splines, control the oscillation.

Question 3. What makes a differential equation stiff and how does it affect explicit methods? Model answer. Stiffness arises when the solution contains components with very different rates of change, so the stability region of an explicit method forces a step size set by the fastest component even though the solution varies slowly. Explicit methods then become impractically slow, and implicit methods are used instead.

Question 4. Derive the error order of the trapezium rule in one line. Model answer. The trapezium rule integrates the linear interpolant, which is exact for linear functions; the error term is proportional to the second derivative of the integrand and to the cube of the interval width per panel, giving a composite error of order h squared.

Question 5. When would you use Monte Carlo integration? Model answer. For high-dimensional integrals where grid-based quadrature is infeasible, and for integrands that are irregular or defined only by simulation. Its error decreases as the inverse square root of the number of samples, independent of dimension, which is why it wins in high dimensions despite slow convergence in low ones.

Question bank with marking checkpoints Checkpoint questions for revision.

  • State the convergence condition for fixed-point iteration.
  • Give the Newton-Raphson update formula.
  • Define truncation and rounding error.
  • State the error order of Simpson's rule.
  • Explain what an embedded Runge-Kutta pair provides.
  • Define a stiff differential equation.

10. Glossary of Exam-Ready Definitions

  • Conditioning: the sensitivity of a problem's solution to small changes in its input.
  • Convergence order: the rate at which the error decreases as the step size or iteration count changes.
  • Global error: the accumulated difference between the numerical and exact solution at a point.
  • Ill-conditioned: a problem whose solution changes greatly for a small change in data.
  • Interpolation: construction of a function passing exactly through given data points.
  • Local truncation error: the error introduced in a single step of a numerical method.
  • Runge's phenomenon: oscillation at interval ends in high-degree polynomial interpolation on equally spaced nodes.
  • Stability: the property that errors do not grow without bound as the computation proceeds.
  • Stiff equation: an equation whose solution has components with widely differing rates of change.
  • Zero-stability: the requirement that a method's error remains bounded as the step size tends to zero. How to revise this document in 40 minutes 10 minutes: write the eight methods with their order and requirement. 10 minutes: perform three bisection and Newton steps by hand. 10 minutes: derive the trapezium and Simpson error orders. 10 minutes: answer one question comparing an explicit and an implicit ODE method.