MGU Mathematics Series — Numerical Methods
Part I: Foundations of Numerical Thinking and Error
Approximation · Algorithms · Error · Convergence · Stability · Modeling
Chapter 1 of 14
1
MGU Mathematics Series  ·  Numerical Methods  ·  Library Textbook Edition

Chapter 1:
What Numerical
Methods Study

The mathematics of reliable approximation — computing answers to mathematical problems when exact symbolic solutions are unavailable, impractical, or too costly to obtain

■ Part I of V  ·  Foundations of Numerical Thinking and Error ■

■ 14 Sections  •  Chapter 1 of 14 ■

Gateway chapter — assumes calculus and introductory linear algebra

Chapter Introduction and Learning Objectives

Mathematics has two broad modes of answering questions. In the first mode, we seek an exact symbolic answer — a formula, an expression, a closed form that represents the solution precisely. In the second mode, we accept that an exact symbolic answer is unavailable, impractical, or unnecessary, and we seek a reliable numerical approximation: a number as close to the true answer as the problem requires, accompanied by an honest assessment of how close that approximation actually is.

Numerical methods is the study of this second mode. It asks how to systematically compute reliable approximations to mathematical quantities, how to measure and control the error those approximations introduce, and how to design algorithms that are efficient, stable, and trustworthy.

This chapter opens the subject by placing it in context. Before studying specific algorithms, students should understand what kind of mathematics numerical methods is. Without this foundation, the methods that follow can feel like disconnected tricks. With it, each method takes on meaning: it is a structured strategy for turning an intractable exact problem into a tractable sequence of approximations, with controlled error.

Opening Question

Suppose you need the value of the integral \(\displaystyle\int_0^1 e^{-x^2}\,dx\). The function \(e^{-x^2}\) is smooth, positive, and bounded. The integral clearly has a value between 0 and 1. But if you attempt to find an antiderivative in closed form, you will discover that none exists in elementary functions. The Fundamental Theorem of Calculus gives you a framework — but not a formula.

How do you find the number? How close can you get? How do you know when you are close enough? How do you communicate how reliable your answer is? These are the central questions of numerical methods.

14Sections
8Objectives
14Key Terms
14Total Chapters

Learning Objectives

By the end of this chapter, students should be able to:

  1. 1Describe what numerical methods studies and why the subject exists as a mathematical discipline.
  2. 2Distinguish between exact symbolic answers and numerical approximations, and explain when each is appropriate.
  3. 3Identify at least four reasons why approximation is necessary in realistic mathematical problems.
  4. 4Define algorithm, iteration, convergence, and discrete approximation in the context of numerical methods.
  5. 5Explain how numerical methods connects to calculus, linear algebra, and differential equations.
  6. 6Identify at least three situations where a numerical computation can produce a misleading answer.
  7. 7Name real-world fields where numerical methods are essential and describe the type of problem they solve in each.
  8. 8Recognize and correct common early misunderstandings about numerical methods and approximation.

Sections at a Glance

Sections 1.1 – 1.3
What Numerical Methods Is and Why It Exists
Two Modes of Mathematics · Exact vs. Approximate · Why Approximation Is Necessary

What Numerical Methods Study

Mathematics has two broad modes of answering questions. In the first mode, we seek an exact symbolic answer — a formula, an expression, a closed form that represents the solution precisely and can be verified by algebraic manipulation. The quadratic formula gives the exact roots of any quadratic equation. The Fundamental Theorem of Calculus gives exact antiderivatives for many functions. Gaussian elimination solves linear systems exactly.

In the second mode, we accept that an exact symbolic answer is unavailable, impractical, or unnecessary, and we seek instead a reliable numerical approximation: a number, or a sequence of numbers, that is as close to the true answer as the problem requires, accompanied by an honest assessment of how close that approximation actually is.

Numerical methods is the study of this second mode. It asks: how do we systematically compute reliable approximations to mathematical quantities? How do we measure, control, and communicate the error in those approximations? How do we design algorithms that are efficient, stable, and trustworthy?

The subject draws from calculus, algebra, linear algebra, differential equations, and computer science. It is motivated by the enormous range of problems in science, engineering, economics, finance, and data analysis that resist exact symbolic solution.

Numerical methods does not abandon mathematical precision. It applies that precision to the problem of approximation itself. The goal is never to guess carelessly; it is to approximate rigorously.

Foundational Perspective

Numerical methods is not a fallback for students who cannot do "real" mathematics. It is a rigorous mathematical discipline that addresses some of the most important computational problems in modern science, engineering, and data analysis. Approximation, done carefully, is itself a sophisticated mathematical achievement.

Exact Answers and Approximate Answers

An exact answer to a mathematical problem is a symbolic expression that satisfies the problem's conditions precisely and carries no error. The exact roots of \(x^2 - 5x + 6 = 0\) are \(x = 2\) and \(x = 3\). The exact value of \(\int_0^1 x^2\,dx\) is \(\tfrac{1}{3}\). These are definitive and verifiable.

A numerical answer is a number produced by a computational process. It approximates the true answer to within some tolerance. The numerical approximation of \(\int_0^1 e^{-x^2}\,dx\) might be reported as \(0.74682\), with the understanding that the true value lies within some small distance of that figure.

The critical distinction to carry through this course is the difference between precision and accuracy. Precision describes how many digits a number has. Accuracy describes how close a number is to the true value. A number can be precise without being accurate — and this is one of the central dangers of careless numerical computation.

Example 1.2.1
Precision and accuracy are not the same
  • True value \(\sqrt{2} = 1.41421356\ldots\) (infinite, non-repeating decimal)
  • Precise & accurate \(1.41421356\) — eight digits, error less than \(10^{-8}\)
  • Precise but inaccurate \(1.41567832\) — eight digits displayed, but error exceeds \(0.001\)
  • Lesson A calculation that displays sixteen decimal places is not automatically accurate. Precision of display does not imply accuracy of content. In numerical methods, we always ask: how close is this number to the true value?
Example 1.2.2
When an exact formula cannot be evaluated
  • Problem Find the eigenvalues of a \(100 \times 100\) matrix arising in a structural engineering model.
  • Exact approach Eigenvalues are roots of the characteristic polynomial, a degree-100 polynomial. By the Abel–Ruffini theorem, no general closed formula exists for degree \(\geq 5\). Even if a formula existed, evaluating it would be numerically catastrophic.
  • Numerical approach Iterative methods (the power method, QR iteration) approximate the eigenvalues reliably and efficiently. Chapter 10 covers these.
  • Conclusion Numerical answers are not inferior. In this problem, they are the only answers available.

Why Approximation Is Necessary

Students who have studied calculus and algebra might wonder why approximation is ever necessary. Calculus provides derivatives, integrals, series, and inverses — a powerful exact toolkit. Why settle for less?

The answer is that exact symbolic tools do not always produce usable answers. There are several distinct reasons for this.

Reason 1
Nonexistent Closed Forms
Many natural functions have no antiderivative expressible in elementary functions. The Gaussian integral \(\int e^{-x^2}\,dx\), Bessel functions, elliptic integrals — calculus guarantees existence, not expressibility.
Reason 2
Nonlinear Equations
Solving \(\cos(x) = x\) exactly is impossible with standard algebra. The equation has a solution — near \(x \approx 0.739\) — but finding it requires numerical iteration.
Reason 3
Large Systems
Solving a system of ten thousand linear equations by hand is humanly impossible. Exact symbolic computation on such systems is also computationally prohibitive. Numerical methods solve them efficiently.
Reason 4
Differential Equations
Most differential equations arising in practice lack exact closed-form solutions. The existence of a solution (guaranteed by standard theorems) does not imply it can be written in elementary terms.
Reason 5
Numerical Instability
Some exact formulas are mathematically correct but computationally disastrous — small errors in inputs cause catastrophically large errors in outputs. A numerical workaround may be more reliable than the exact formula.
Reason 6
Data-Driven Problems
When inputs come from physical measurements — sensors, satellite readings, market prices — there is no symbolic expression to evaluate. The data are floating-point numbers. Numerical methods are the only option.

Approximation is not a failure of mathematical ambition. It is the appropriate response to the realistic limits of what symbolic computation can achieve — and an invitation to develop a new, equally rigorous set of mathematical tools.

Sections 1.4 – 1.6
Algorithms, Iteration, and Discrete Approximation
Algorithms · Convergence · Truncation Error · Continuous vs. Discrete

Algorithms as Mathematical Procedures

An algorithm is a finite, well-defined sequence of steps that accepts specified inputs, performs calculations or logical operations, and produces an output. The steps must be unambiguous — at each stage, there must be a clear rule for what to do next — and the algorithm must terminate in a finite number of steps or reach a stopping condition.

This is not primarily a programming concept. Mathematical algorithms predate computers by millennia. Euclid's algorithm for the greatest common divisor is an algorithm. Long division is an algorithm. Gaussian elimination is an algorithm. The ancient Babylonian method for computing square roots, described below, is an algorithm.

In numerical methods, algorithms have a characteristic structure: they accept a mathematical problem as input, perform arithmetic operations, generate successive approximations that improve with each step, and stop when an accuracy criterion is satisfied.

Algorithm 1.4.1 — Babylonian Square Root

Purpose: Approximate \(\sqrt{a}\) for a positive number \(a\).

Inputs: \(a > 0\), initial guess \(x_0 > 0\), tolerance \(\text{tol} > 0\)

Stopping criterion: \(|x_{n+1} - x_n| < \text{tol}\)

Reliability: Converges for any positive initial guess. Each step roughly doubles the number of correct digits.

Algorithm: Babylonian Square Root
Input:  a > 0,  x_0 > 0  (initial guess),  tol > 0  (tolerance)

  Set n = 0
  Repeat:
    x_{n+1} = (x_n + a / x_n) / 2
    If |x_{n+1} - x_n| < tol:
        Stop. Return x_{n+1}
    Set n = n + 1

Output: Approximation of sqrt(a) satisfying the stopping criterion

Notice what this algorithm requires the student to understand: why does the averaging step move the guess closer to \(\sqrt{a}\)? The update rule \(x_{n+1} = \frac{1}{2}\!\left(x_n + \frac{a}{x_n}\right)\) can be derived from Newton's method applied to the equation \(f(x) = x^2 - a = 0\) — a connection explored fully in Chapter 3. Algorithms in numerical methods are not magic recipes; they are mathematical procedures with reasons that can be understood and verified.

Iteration and Convergence

Most numerical algorithms are iterative: they generate a sequence of approximations \(x_0, x_1, x_2, x_3, \ldots\) with the goal that the sequence approaches the true answer as the index increases.

An iterative method begins from an initial value \(x_0\), then applies a rule to produce \(x_1\) from \(x_0\), \(x_2\) from \(x_1\), and so on. The rule is applied repeatedly until a stopping condition is satisfied.

Convergence means the sequence of approximations approaches the true value. Formally, the sequence \(\{x_n\}\) converges to a limit \(L\) if

\[\lim_{n \to \infty} x_n = L\]

In numerical practice, we never run an iteration to infinity. We stop when the approximation is good enough — when successive values differ by less than a specified tolerance, or when the residual (the error remaining in the equation) is sufficiently small.

Divergence means the sequence does not approach a fixed value. The approximations might grow without bound, oscillate indefinitely, or wander without settling. A divergent iteration has failed to produce a reliable answer.

The rate of convergence matters as well. Some methods add one correct digit per step; others double or quadruple the number of correct digits at each step. Understanding convergence rate helps in choosing methods wisely and estimating how many steps are needed.

Example 1.5.1
Rapid convergence of the Babylonian algorithm applied to \(\sqrt{2}\)
  • Setup Apply the Babylonian algorithm to \(\sqrt{2}\) starting from \(x_0 = 1\). True value: \(\sqrt{2} = 1.41421356\ldots\)
Step \(n\) \(x_n\) Absolute Error \(|x_n - \sqrt{2}|\)
01.0000000.414214
11.5000000.085786
21.4166670.002453
31.4142160.0000014
41.414214\(< 10^{-12}\)

After four steps, the approximation is correct to twelve decimal places. This extraordinary speed — each step roughly doubling the number of correct digits — is characteristic of Newton-type methods and is called quadratic convergence. Chapter 3 develops this idea rigorously.

Student Note

Convergence is a mathematical property of the sequence an algorithm produces, not simply a property of how long you run it. Before trusting any iterative computation, ask: Does this method converge for this type of problem? How fast? How do I know when I am close enough? Convergence to the wrong value is also possible if the algorithm or starting point is poorly chosen.

Discrete Approximations to Continuous Problems

Calculus is the mathematics of the continuous. Derivatives measure instantaneous rates of change at a point. Integrals accumulate over an unbroken interval. Solutions to differential equations are continuous functions evolving through time.

Computers, by contrast, work with finite collections of numbers. They cannot store infinitely many digits or perform infinitely many operations. Bridging the gap between continuous mathematics and finite computation is one of the central intellectual challenges of numerical methods.

A discrete approximation replaces a continuous mathematical object with a finite collection of values. Instead of computing a function at all points in an interval, we compute it at finitely many sample points. Instead of integrating over a continuous interval exactly, we sum over finitely many subintervals. Instead of following an exact continuous trajectory, we track approximate values at finitely many time steps.

This replacement introduces truncation error — the error that arises from approximating a continuous limit with a finite process. Managing truncation error is one of the core skills of numerical methods, and it will appear in every subsequent chapter.

The definite integral illustrates this passage clearly. The integral is defined as a limit of Riemann sums:

\[\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{k=1}^n f(x_k^*)\,\Delta x\]

A numerical integration method never takes this limit. It evaluates the sum at a large but finite \(n\). The result is an approximation, and the error is the difference between the finite sum and the true limit. Chapter 7 develops systematic methods for choosing the sample points and subintervals to minimize this error efficiently.

Diagram Description

Draw the graph of a smooth positive function \(f(x)\) over the interval \([a, b]\). Divide the interval into four equal subintervals. Draw four rectangles whose heights equal the function value at the left endpoint of each subinterval. The total area of the rectangles approximates the continuous area under the curve. The shaded regions between the curve and the tops of the rectangles represent the truncation error — the price of replacing the continuous limit with a finite sum.

Sections 1.7 – 1.9
Connections to Calculus, Linear Algebra, and Differential Equations
Derivatives · Integrals · Taylor Series · Linear Systems · Eigenvalues · ODE Solvers

Numerical Methods and Calculus

Calculus is the direct prerequisite for this course, and numerical methods is in many ways its computational counterpart. The connections are deep and specific.

Derivatives and Difference Quotients

The derivative \(f'(x)\) is defined as the limit of the difference quotient:

\[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\]

Numerical differentiation approximates this limit for a small but nonzero \(h\):

\[f'(x) \approx \frac{f(x+h) - f(x)}{h}\]

The error introduced is exactly the cost of not taking the limit, and it can be estimated using Taylor series. Chapter 6 develops this idea fully.

Integrals and Numerical Sums

As described in Section 1.6, the definite integral is a limit of finite sums. Numerical integration methods — the midpoint rule, the trapezoidal rule, Simpson's rule — are structured ways of forming these sums efficiently. The error in each method is controlled by the smoothness of the integrand, itself a calculus concept. Chapter 7 develops numerical integration systematically.

Taylor Series and Local Approximation

Taylor series — the expansion of a function as an infinite polynomial near a point — are the primary analytical tool for deriving and analyzing numerical methods. The idea that any sufficiently smooth function can be approximated locally by a polynomial underlies finite difference formulas, error estimates for integration rules, and the convergence analysis of Newton's method. Chapter 8 develops Taylor approximation as a practical computational tool.

Newton's Method

Students who completed calculus may have encountered Newton's method for solving equations: start with an initial guess, draw the tangent line to the graph at that point, and use its \(x\)-intercept as the next guess. This is a direct application of calculus to numerical root-finding. Chapter 3 develops it carefully, including its convergence behavior and failure modes.

Numerical Methods and Linear Algebra

Students who have studied linear algebra will find it appearing throughout this textbook. Numerical methods and linear algebra are deeply intertwined.

Linear Algebra Topic Numerical Connection Textbook Chapter
Linear systems \(\mathbf{A}\mathbf{x} = \mathbf{b}\) Gaussian elimination with pivoting; LU decomposition; iterative methods for large systems Chapter 9
Overdetermined systems Least squares: the best approximate solution when no exact solution exists; normal equations; curve fitting Chapter 5
Eigenvalues and eigenvectors Power method; QR iteration; applications to vibration, stability, networks, and data Chapter 10
Matrix conditioning Sensitivity of solutions to input perturbations; when numerical linear algebra can and cannot be trusted Chapters 2, 9

Linear algebra provides the language and structure for a large part of numerical methods. Students who remember their matrix operations, dot products, and linear independence will find this course reinforces and extends that knowledge in a computational direction.

Numerical Methods and Differential Equations

Differential equations describe change. The equations governing heat flow, fluid dynamics, population growth, electrical circuits, chemical reactions, orbital mechanics, and economic models are almost all differential equations. Many of them have no exact closed-form solutions.

Numerical methods for differential equations simulate change step by step. Given an initial state and a rule describing how the state evolves — the differential equation — a numerical ODE solver computes the approximate state at each subsequent time step. The simulation is an approximation: the true continuous trajectory is replaced by a discrete sequence of computed states, but it can be made arbitrarily accurate by choosing a sufficiently small step size.

Example 1.9.1
The logistic equation — when a formula exists, and when it does not
  • The equation The logistic ODE \(\dfrac{dy}{dt} = ry\!\left(1 - \dfrac{y}{K}\right)\) models population growth with a carrying capacity \(K\).
  • Exact solution For this specific equation, an exact formula exists: \(y(t) = \dfrac{K}{1 + \left(\dfrac{K - y_0}{y_0}\right)e^{-rt}}\). We can verify it by substitution.
  • More realistic model Adding a second species, seasonal forcing, or stochastic effects produces a system with no known closed-form solution. The equations are well-defined; the solutions exist by standard theorems; but they cannot be written in elementary form.
  • Numerical approach ODE solvers — Euler's method, Runge-Kutta — approximate the population trajectory step by step with controlled error. Chapters 12 and 13 cover this in full.
Sections 1.10 – 1.12
Computation, Failure Modes, and Real-World Applications
Scientific Computing · When Numerics Mislead · Applications Across Disciplines

Computation, Technology, and Scientific Modeling

Numerical methods became practically indispensable with the development of electronic computers in the mid-twentieth century. Methods known for centuries — Newton's method, the trapezoidal rule, Gaussian elimination — could suddenly be applied to problems of enormous scale. Today, scientific computing is a major discipline bridging mathematics, computer science, and applications.

This textbook is a mathematics textbook, not a programming manual. The algorithms here are described in mathematical terms and language-neutral pseudocode. Students should be aware, however, that the numerical ideas they study correspond directly to routines in scientific computing environments such as Python's NumPy and SciPy, MATLAB, Julia, and R.

Scientific modeling is the use of mathematics to represent and simulate real phenomena. A model translates a physical, biological, or economic situation into equations. Numerical methods allow those equations to be solved or simulated even when exact solutions do not exist. The quality of a simulation depends on both the model (does it capture the important features of reality?) and the numerical method (does it approximate the mathematical solution reliably?). Both questions require careful mathematical thinking.

Example 1.10.1
Weather forecasting as large-scale numerical computation
  • The equations Atmospheric dynamics are governed by the Navier-Stokes equations for fluid flow, coupled with thermodynamics and moisture physics. These are partial differential equations with no general closed-form solution.
  • The computation Forecasting centers discretize the atmosphere onto a three-dimensional grid — horizontally every few kilometers, vertically in dozens of layers — and advance the atmospheric state forward in time steps of minutes. Each forecast requires billions of floating-point operations.
  • The limits Forecast accuracy degrades with time due to inherent chaos in the atmospheric system, errors in initial measurements, and approximations in the numerical model. Understanding these limits is part of using numerical methods responsibly.
  • Lesson Numerical methods can produce remarkably accurate simulations — but a simulation is never identical to the phenomenon it models. Honest communication of uncertainty is as important as the computation itself.

When Numerical Answers Can Mislead

Numerical methods, carelessly applied, can produce confidently wrong answers. Students entering this subject should develop healthy skepticism — not toward numerical methods in general, but toward any specific computation that has not been properly checked. There are several common ways numerical computations go wrong.

Failure Mode 1
Catastrophic cancellation
When two nearly equal numbers are subtracted, the result may have far fewer significant digits than either operand. For example, \(1.000043 - 1.000037 = 0.000006\): if each operand has six accurate digits, the result may have only one. This loss of significance can propagate and amplify through subsequent calculations. Section 2.10 covers this in detail.
Failure Mode 2
Ill-conditioning
Some problems are inherently sensitive: small changes in inputs produce large changes in outputs. This is a property of the mathematical problem itself, not the algorithm. No numerical method can overcome severe ill-conditioning; recognizing it is the first step to avoiding unreliable results.
Failure Mode 3
Method divergence
Not all iterative methods converge for all inputs. Newton's method can diverge if the initial guess is poor or if the function has unusual behavior. Choosing an inappropriate method — or a poor starting point — can produce a sequence that never approaches the correct answer, even while appearing to converge to something.
Failure Mode 4
Insufficient resolution
Using too large a step size in integration or differential equations means the discrete approximation misses important features of the continuous function or trajectory. The computed answer may display many decimal places while being far from accurate.
Failure Mode 5
Accumulated roundoff
Each arithmetic operation on a computer introduces a tiny rounding error. In a short computation, this is negligible. In a computation involving millions of operations — as in large linear system solvers or long-time ODE integrations — the accumulated roundoff can become significant.
Core Discipline

Learning to recognize these failure modes is as important as learning the methods themselves. Every chapter in this textbook includes error analysis — not as an afterthought, but as an essential part of understanding when and why a numerical method can be trusted.

Numerical Methods in Science, Engineering, Finance, and Data

To appreciate the scope of numerical methods, consider the range of problems they address across disciplines. In each of the following fields, numerical methods are not accessories to the mathematics — they are how the mathematics is actually applied to real problems.

Physics & Astronomy
Orbital Mechanics and Simulation
Spacecraft trajectory calculation and planetary simulation require solving systems of differential equations (Newton's laws) over long time intervals. No closed-form solution exists for three or more interacting bodies. Every planetary mission has depended on numerical ODE solvers.
Engineering
Structural and Fluid Analysis
Structural engineers analyze bridges and buildings by solving large linear systems arising from finite element models. Fluid dynamics simulations used in aircraft and automotive design solve PDEs on computational grids. Eigenvalue analysis determines whether control systems are stable.
Finance
Option Pricing and Risk
Option pricing models involve partial differential equations and stochastic processes. Numerical methods — finite difference methods, Monte Carlo simulation — price options and measure risk when exact formulas are unavailable or too simplistic.
Biology & Medicine
Imaging and Epidemic Modeling
MRI and CT scanning reconstruct images from measurement data using numerical linear algebra and Fourier methods. Epidemic models based on differential equations predict disease spread. Protein structure prediction requires optimization in high-dimensional spaces.
Data Science & ML
Optimization and Matrix Methods
Training a neural network is a high-dimensional numerical optimization problem. Gradient descent — one of the simplest numerical optimization methods — is the engine behind deep learning. Linear regression, matrix factorization, and recommender systems all rely on numerical linear algebra.
Climate Science
Coupled System Simulation
Climate models simulate the atmosphere-ocean system using PDEs on global grids. Running a century-scale simulation at meaningful resolution requires massive computation and numerical methods that remain stable over thousands of time steps.
Sections 1.13 – 1.14
Misunderstandings and Preparation for Error Analysis
Six Misconceptions Corrected · Absolute and Relative Error · Preview of Chapter 2

Common Early Numerical Methods Misunderstandings

Students often bring misconceptions to numerical methods that, if left uncorrected, interfere with learning. The following are among the most common.

Misunderstanding 1
"Numerical methods are just for people who can't do real mathematics."
This confuses the goal of exact symbolic computation with the goal of reliable computation. Numerical methods are applied precisely because exact symbolic computation is insufficient for the problems we care about most. The discipline is rigorous, well-developed, and mathematically deep.
Misunderstanding 2
"More decimal places in an answer means it is more accurate."
A computation can produce sixteen decimal places and be entirely wrong. Precision (how many digits are displayed) is not the same as accuracy (how close the answer is to the true value). A numerical answer is only useful when accompanied by an honest error estimate.
Misunderstanding 3
"A smaller step size always gives a better answer."
In numerical differentiation and some integration contexts, making the step size very small introduces floating-point roundoff errors that compete with — and eventually dominate — the truncation error. There is an optimal step size that balances both sources of error. Chapter 6 explores this tradeoff carefully.
Misunderstanding 4
"If a computation converges, it must be converging to the right answer."
An iterative method can converge to a local minimum rather than a global one, to a nearby root rather than the desired root, or to a spurious value introduced by the algorithm. Convergence means the sequence settles; it does not guarantee the sequence settles at the correct value. Checking the result is always required.
Misunderstanding 5
"Numerical methods are just approximations — not real mathematics."
Every approximation in numerical methods is surrounded by precise mathematical statements about error bounds, convergence rates, and stability conditions. Numerical analysis is a rigorous mathematical field with deep connections to real analysis, linear algebra, and computation. The subject is as mathematically serious as any other branch of applied mathematics.
Misunderstanding 6
"You only need numerical methods when you don't know the formula."
Even when an exact formula is known, evaluating it numerically can introduce serious problems if the formula amplifies small errors. Numerical methods also include the study of how to evaluate exact expressions reliably in finite-precision arithmetic — a question that arises even when the formula is perfectly well understood.

Preparing for Error Analysis

Chapter 2 is devoted to error — how it arises, how it is measured, how it propagates, and how it is controlled. This section prepares students for that discussion by establishing the essential vocabulary.

Every numerical computation produces an approximate answer. Let \(p\) denote the true answer and \(p^*\) denote the computed approximation. The absolute error is

\[|p - p^*|\]

This measures the distance between the true and computed values in absolute terms. The relative error is

\[\frac{|p - p^*|}{|p|}\]

This expresses the error as a fraction of the true value, making it meaningful for comparison across problems of different scales. An absolute error of \(0.001\) is negligible when the true value is one million, but serious when the true value is \(0.01\).

These definitions raise deeper questions that Chapter 2 will answer systematically: Where does error come from? Does it grow as the computation proceeds? How can it be estimated when the true value is unknown? What features of the problem or algorithm make error harder to control?

Motivating Example 1.14.1
Step size tradeoffs in numerical differentiation — a preview
  • Setup Estimate \(f'(1)\) for \(f(x) = e^x\) using \(f'(x) \approx \dfrac{f(x+h) - f(x)}{h}\). True value: \(f'(1) = e \approx 2.71828\).
  • \(h = 0.1\) Approximation \(\approx 2.8588\). Absolute error \(\approx 0.140\).
  • \(h = 0.01\) Approximation \(\approx 2.7319\). Absolute error \(\approx 0.014\).
  • \(h = 0.001\) Approximation \(\approx 2.7196\). Absolute error \(\approx 0.0014\).
  • Observation As \(h\) decreases by a factor of 10, the error decreases by a factor of 10 — but only down to a point. For very small \(h\), floating-point roundoff begins to dominate and the error increases again. Chapter 2 explains exactly why, and Chapter 6 analyzes this tradeoff in full.
Key Question to Carry into Chapter 2

Every step of a numerical computation either introduces new error or transforms existing error. Understanding where error comes from, where it goes, and how large it can become is the core analytical discipline of numerical methods. Chapter 2 begins this analysis.

Chapter Summary

Key Terms

approximation
A value close to, but not exactly equal to, the true value of a mathematical quantity, produced by a controlled numerical process.
algorithm
A finite, well-defined sequence of steps that accepts inputs, performs computations, and produces an output.
iteration
The process of repeatedly applying a rule to generate successive approximations that improve toward a target value.
convergence
The property of a sequence of approximations approaching a limiting value as the number of iterations increases.
divergence
The failure of a sequence to approach a fixed limiting value.
discretization
The replacement of a continuous mathematical object with a finite collection of values, enabling computation at the cost of truncation error.
truncation error
The error introduced by approximating a continuous process or infinite limit with a finite computation.
rounding error
The error introduced by representing real numbers with finite precision in computer arithmetic.
absolute error
The distance \(|p - p^*|\) between the true value \(p\) and the computed approximation \(p^*\).
relative error
The absolute error expressed as a fraction of the true value: \(|p - p^*| / |p|\).
stability
The property of an algorithm that prevents small input errors or rounding errors from growing uncontrollably through subsequent computations.
conditioning
The sensitivity of a mathematical problem's solution to small changes in its inputs; a property of the problem itself, independent of the algorithm used to solve it.
precision
The number of digits displayed in a numerical result; not the same as accuracy.
scientific computing
The application of computers and numerical methods to simulate and solve mathematical models of real-world phenomena.
ReviewConcept Review Questions
  1. What is the difference between an exact answer and a numerical approximation? Give an example of a mathematical problem where a closed-form exact answer exists, and one where it does not.
  2. Name four reasons why approximation may be necessary even when a mathematical problem has a well-defined exact answer.
  3. What is an algorithm? What features must a procedure have in order to qualify as an algorithm?
  4. Explain what it means for a sequence of approximations to converge. Why does convergence not automatically guarantee that the limit is the correct answer?
  5. What is the difference between truncation error and rounding error? Give an intuitive description of each.
  6. Explain why making the step size very small does not always improve the accuracy of a numerical derivative estimate.
  7. Describe one way in which numerical methods connects to calculus, and one way it connects to linear algebra.
  8. What is the difference between precision and accuracy in a numerical computation? Why does this distinction matter?
  9. What is meant by the conditioning of a problem? Can a well-designed numerical method overcome severe ill-conditioning?
  10. Name three fields where numerical methods are essential, and briefly describe the type of problem they solve in each.
Skill PracticeAlgorithms and Approximation
  1. The Babylonian algorithm for \(\sqrt{a}\) uses the update rule \(x_{n+1} = \tfrac{1}{2}\!\left(x_n + \dfrac{a}{x_n}\right)\).
    1. Starting with \(x_0 = 2\), apply three iterations to approximate \(\sqrt{5}\).
    2. Compute the absolute error after each step. (Use \(\sqrt{5} \approx 2.2360679\ldots\))
    3. Describe the rate at which the error decreases. What pattern do you observe?
  2. For each integral, decide whether you expect an elementary closed-form antiderivative to exist. If yes, find it. If no, explain why not.
    1. \(\displaystyle\int x^3 e^x\,dx\)
    2. \(\displaystyle\int e^{x^2}\,dx\)
    3. \(\displaystyle\int \frac{1}{1+x^2}\,dx\)
    4. \(\displaystyle\int \cos(x^2)\,dx\)
  3. Use the forward difference formula \(f'(x) \approx \dfrac{f(x+h) - f(x)}{h}\) to estimate \(f'(2)\) for \(f(x) = x^3\) using \(h = 0.1\), \(h = 0.01\), and \(h = 0.001\). The exact value is \(f'(2) = 12\). Compute the absolute error in each case and describe what you observe.
  4. Consider the equation \(x = \cos(x)\).
    1. Show by evaluating \(f(x) = x - \cos(x)\) at a few points that this equation has exactly one solution in \([0, 1]\).
    2. Estimate the solution numerically to two decimal places.
    3. Why is an exact symbolic solution not possible using standard algebraic techniques?
  5. Describe in plain language — not code — an algorithm for finding the smallest integer \(n\) such that \(2^n > 1000\). Identify the input, each step, the stopping criterion, and the output.
InterpretationComputational Interpretation Problems
  1. A numerical computation returns the value \(3.14159\). The true value is \(\pi = 3.14159265\ldots\)
    1. Compute the absolute error.
    2. Compute the relative error (express as a percentage).
    3. How many significant digits does the approximation share with the true value?
  2. Two nearly equal numbers are \(a = 1.000043\) and \(b = 1.000037\).
    1. Compute \(a - b\).
    2. How many significant digits does the result have?
    3. Why might this subtraction be problematic in a longer computation?
  3. The sequence \(1.5,\ 1.4167,\ 1.4142,\ 1.4142\ldots\) is produced by an iterative algorithm.
    1. What value does this sequence appear to be approximating?
    2. Is the sequence converging? Justify your answer.
    3. After the third term, what is the absolute error?
ApplicationsReal-World Problems
  1. Orbital mechanics. The time for a satellite to travel between two points in an elliptical orbit cannot in general be expressed in elementary closed form. Describe in general terms how numerical methods could be used to determine the transit time. What inputs would the algorithm need? What type of numerical method seems appropriate?
  2. Medical imaging. In a CT scan, the device measures X-ray absorption along many different lines through the body. The goal is to reconstruct a two-dimensional cross-section of tissue from these line measurements. This is an inverse problem involving a large linear system. Why might numerical methods be necessary here? What challenges would arise from an exact symbolic approach?
  3. Climate modeling. A researcher simulates the atmosphere over a \(1000 \times 1000\) km region using a grid with one point every 10 km in each direction.
    1. How many grid points are in the horizontal plane?
    2. If five atmospheric variables are tracked at each grid point, how many numbers must be updated at each time step?
    3. Describe qualitatively why exact symbolic computation is not feasible for this problem.
  4. Finance. A numerical method estimates the value of a financial option at \(\$47.32\), with a known maximum error of \(\pm\$0.50\). The current market price is \(\$47.00\). Should the analyst conclude the option is underpriced? What additional information matters?
Error AnalysisError and Convergence
  1. The forward difference formula gives \(f'(1) \approx 2.741\) when \(f(x) = e^x\) and \(h = 0.1\). The true value is \(e \approx 2.71828\).
    1. Compute the absolute error.
    2. Compute the relative error as a percentage.
    3. If you halved \(h\) to \(0.05\), what absolute error would you predict, assuming error is proportional to \(h\)?
  2. Two algorithms \(A\) and \(B\) approximate the same quantity. After 10 iterations, \(A\) has error \(10^{-3}\) and \(B\) has error \(10^{-4}\). After 20 iterations, \(A\) has error \(10^{-6}\) and \(B\) has error \(10^{-8}\).
    1. Which algorithm is more accurate after 10 iterations? After 20?
    2. What can you say about the relative convergence speeds?
    3. If each iteration of \(B\) takes twice as long as one of \(A\), which algorithm gives error \(10^{-6}\) with less total computation?
Chapter 1 Checkpoint
Confirm your understanding before proceeding to Chapter 2
Core Concepts
  • I can explain what numerical methods studies and why it exists as a distinct mathematical discipline.
  • I can distinguish between an exact symbolic answer and a numerical approximation, and explain when each is appropriate.
  • I can describe at least four reasons why approximation is necessary in realistic mathematical problems.
  • I can explain the difference between precision and accuracy in a numerical result.
Algorithms and Iteration
  • I can identify the four components of an algorithm: input, steps, stopping criterion, and output.
  • I can apply the Babylonian algorithm for two or three iterations and compute the absolute error at each step.
  • I can explain what it means for an iterative sequence to converge, and why convergence does not guarantee the limit is correct.
  • I can explain truncation error and why discretization introduces it.
Connections and Applications
  • I can describe at least one connection between numerical methods and calculus, and one connection to linear algebra.
  • I can identify three failure modes in numerical computation (cancellation, divergence, ill-conditioning).
  • I can name two fields where numerical methods are essential and describe the type of problem they solve.
Error Vocabulary
  • I can compute the absolute error \(|p - p^*|\) and relative error \(|p - p^*|/|p|\) given a true value and an approximation.
  • I can explain why the relative error is often more meaningful than the absolute error.
Preview — Chapter 2
Error, Floating-Point Arithmetic, and Stability

Chapter 1 has established what numerical methods studies and why it exists. Chapter 2 builds the analytical vocabulary that will accompany every method in this textbook. It covers absolute and relative error, significant digits, rounding and truncation error, floating-point representation, machine precision, catastrophic cancellation (loss of significance), error propagation, problem conditioning, and algorithmic stability.

After Chapter 2, students will carry two foundations simultaneously: a conceptual foundation (what numerical methods is and why approximation is necessary) and an analytical foundation (how to measure, predict, and discuss error). Together, Parts I and II of this book establish the perspective that should accompany every numerical computation: What am I approximating? How close am I? Can I trust this answer?

MGU Library Connection
  • Calculus — Chapter 1 (functions and limits), Chapter 4 (derivatives), Chapter 5 (definite integrals), Chapter 10 (sequences, series, and Taylor polynomials)
  • Linear Algebra — Chapter 1 (matrices and linear systems), Chapter 5 (eigenvalues and eigenvectors)
  • Differential Equations — Chapter 1 (introduction to ODEs), Chapter 2 (first-order equations)
  • Numerical Methods — Appendix A: Calculus Readiness Review
  • Numerical Methods — Appendix D: Programming and Pseudocode Reference
  • Numerical Methods — Appendix E: Error Analysis Reference