Chapter 1
Mathematical Preliminaries and Error Analysis
Per-Olof Persson
persson@berkeley.edu
Department of Mathematics
University of California, Berkeley
Math 128A Numerical Analysis
A function \(f\) defined on a set \(X\) of real numbers has the limit \(L\) at \(x_0\), written \(\lim_{x\rightarrow x_0} f(x) = L\), if, given any real number \(\varepsilon>0\), there exists a real number \(\delta>0\) such that \[ |f(x)-L|<\varepsilon,\quad\text{ whenever }\quad x\in X\text{ and } 0<|x-x_0|<\delta. \]
Let \(f\) be a function defined on a set \(X\) of real numbers and \(x_0\in X\). Then \(f\) is continuous at \(x_0\) if \[ \lim_{x\rightarrow x_0} f(x) = f(x_0). \] The function \(f\) is continuous on the set \(X\) if it is continuous at each number in \(X\).
Let \(\{x_n\}_{n=1}^\infty\) be an infinite sequence of real of complex numbers. The sequence \(\{x_n\}_{n=1}^\infty\) has the limit \(x\) if, for any \(\varepsilon>0\), there exists a positive integer \(N(\varepsilon)\) such that \(|x_n-x|<\varepsilon\), whenever \(n>N(\varepsilon)\). The notation \[ \lim_{n\rightarrow\infty} x_n = x,\text{ or } x_n\rightarrow x\text{ as } n\rightarrow\infty, \] means that the sequence \(\{x_n\}_{n=1}^\infty\) converges to \(x\).
If \(f\) is a function defined on a set \(X\) of real numbers and \(x_0\in X\), then the following statements are equivalent:
\(f\) is continuous at \(x_0\);
If the sequence \(\{x_n\}_{n=1}^\infty\) in \(X\) converges to \(x_0\), then \(\lim_{n\rightarrow\infty} f(x_n) = f(x_0)\).
Let \(f\) be a function defined in an open interval containing \(x_0\). The function \(f\) is differentiable at \(x_0\) if \[ f'(x_0) = \lim_{x\rightarrow x_0} \frac{f(x)-f(x_0)}{x-x_0} \] exists. The number \(f'(x_0)\) is called the derivative of \(f\) at \(x_0\). A function that has a derivative at each number in a set \(X\) is differentiable on \(X\).
If the function \(f\) is differentiable at \(x_0\), then \(f\) is continuous at \(x_0\).
Suppose \(f\in C[a,b]\) and \(f\) is differentiable on \((a,b)\). If \(f(a)=f(b)\), then a number \(c\) in \((a,b)\) exists with \(f'(c) = 0\).
If \(f\in C[a,b]\) and \(f\) is differentiable on \((a,b)\), then a number \(c\) in \((a,b)\) exists with \[ f'(c) = \frac{f(b)-f(a)}{b-a}. \]
If \(f\in C[a,b]\), then \(c_1,c_2\in [a,b]\) exist with \(f(c_1)\le f(x) \le f(c_2)\), for all \(x\in [a,b]\). In addition, if \(f\) is differentiable on \((a,b)\), then the numbers \(c_1\) and \(c_2\) occur either at the endpoints of \([a,b]\) or where \(f'\) is zero.
The Riemann integral of the function \(f\) on the interval \([a,b]\) is the following limit, provided it exists: \[ \int_a^b f(x)\, dx = \lim_{\max \Delta x_i\rightarrow 0} \sum_{i=1}^n f(z_i) \Delta x_i, \] where the numbers \(x_0,x_1,\ldots,x_n\) satisfy \(a=x_0\le x_1 \le\cdots \le x_n = b\), and where \(\Delta x_i = x_i-x_{i-1}\), for each \(i=1,2,\ldots,n\), and \(z_i\) is arbitrarily chosen in the interval \([x_{i-1},x_i]\).
Suppose \(f\in C[a,b]\), the Riemann integral of \(g\) exists on \([a,b]\), and \(g(x)\) does not change sign on \([a,b]\). Then there exists a number \(c\) in \((a,b)\) with \[ \int_a^b f(x)g(x)\, dx = f(c)\int_a^b g(x)\,dx. \]
Suppose \(f\in C[a,b]\) is \(n\) times differentiable on \((a,b)\). If \(f(x)\) is zero at the \(n+1\) distinct numbers \(x_0,\ldots,x_n\) in \([a,b]\), then a number \(c\) in \((a,b)\) exists with \(f^{(n)}(c) = 0\).
If \(f\in C[a,b]\) and \(K\) is any number between \(f(a)\) and \(f(b)\), then there exists a number \(c\) in \((a,b)\) for which \(f(c) = K\).
Suppose \(f\in C^n[a,b]\), that \(f^{(n+1)}\) exists on \([a,b]\), and \(x_0\in [a,b]\). For every \(x\in [a,b]\), there exists a number \(\xi(x)\) between \(x_0\) and \(x\) with \(f(x)=P_n(x)+R_n(x)\), where \[ \begin{aligned} P_n(x) &= f(x_0) + f'(x_0)(x-x_0) + \frac{f''(x_0)}{2!}(x-x_0)^2 + \\ &+ \cdots + \frac{f^{(n)}(x_0)}{n!}(x-x_0)^n = \sum_{k=0}^n \frac{f^{(k)}(x_0)}{k!}(x-x_0)^k \end{aligned} \] and \[ R_n(x) = \frac{f^{(n+1)}(\xi(x))}{(n+1)!}(x-x_0)^{n+1}. \]
double
” in CIf \(p^*\) is an approximation to \(p\), the absolute error is \(|p-p^*|\), and the relative error is \(|p-p^*|/|p|\), provided that \(p\ne 0\).
The number \(p^*\) is said to approximate \(p\) to \(t\) significant digits (or figures) if \(t\) is the largest nonnegative integer for which \[ \frac{|p-p^*|}{|p|} \le 5\times 10^{-t}. \]
Suppose \(E_0>0\) is an initial error, and \(E_n\) is the error after \(n\) operations.
Suppose \(\{\beta_n\}_{n=1}^\infty\) is a sequence converging to zero, and \(\{\alpha_n\}_{n=1}^\infty\) converges to a number \(\alpha\). If a positive constant \(K\) exists with \[ |\alpha_n-\alpha|\le K|\beta_n|,\quad\text{for large }n, \] then we say that \(\{\alpha_n\}_{n=1}^\infty\) converges to \(\alpha\) with rate of convergence \(O(\beta_n)\), indicated by \(\alpha_n = \alpha + O(\beta_n)\).
Suppose that \(\lim_{h\rightarrow 0} G(h) = 0\) and \(\lim_{h\rightarrow 0} F(h) = L\). If a positive constant \(K\) exists with \[ |F(h)-L| \le K | G(h) |,\quad\text{for sufficiently small }h, \] then we write \(F(h) = L+O(G(h))\).