Numerical Analysis Introduction

Fundamentals of Numerical Computation (High School Level)

Overview

In this introduction, we develop an intuitive understanding of what numerical computation is. We learn what it means to solve mathematical problems with a computer and what kinds of errors arise in the process.

Learning Objectives

  • Understand the basic ideas behind numerical computation
  • Learn the concept of errors (rounding error, truncation error)
  • Be able to find the root of an equation using the bisection method
  • Understand the basic ideas of numerical differentiation and numerical integration
  • Understand that there are cases where computers cannot compute "exactly"

Table of Contents

  1. Chapter 1 What is Numerical Computation?

    The purpose of numerical computation, the difference between analytical and numerical solutions, and the idea of approximation

  2. Chapter 2 Fundamentals of Error

    Absolute error, relative error, rounding error, truncation error

  3. Chapter 3 Bisection Method

    The most basic method for finding a root of $f(x) = 0$

  4. Chapter 4 Introduction to Numerical Differentiation

    The idea of finite difference approximation $f'(x) \approx \frac{f(x+h) - f(x)}{h}$

  5. Chapter 5 Introduction to Numerical Integration

    Riemann sums and an intuitive understanding of the trapezoidal rule

  6. Chapter 6 Pitfalls in Computation

    Catastrophic cancellation, absorption error, overflow and underflow

Visualizing the Bisection Method

The bisection method finds a root of $f(x) = 0$ by repeatedly halving the interval. For a continuous function $f$, if $f(a)$ and $f(b)$ have opposite signs, the Intermediate Value Theorem guarantees that a root exists in the interval $(a, b)$. The bisection method exploits this property by checking the sign at the midpoint $c = (a+b)/2$ and narrowing down to the sub-interval containing the root.

Diagram showing the bisection method on f(x)=x²−2. The interval [a, b] is halved at midpoint c, and the sub-interval containing the root is selected based on the sign of f(c). x y 0 y = x² − 2 f(a)<0 f(b)>0 f(c)>0 root a c b next: search [a, c]
When f(a) and f(b) have opposite signs, a root exists in the interval. The midpoint c = (a+b)/2 halves the interval.

Prerequisites

  • Basic middle school mathematics (equations, graphs of functions)
  • High school mathematics (basic concepts of differentiation and integration) is desirable