Chapter 2
Solutions of Equations in One Variable
Per-Olof Persson
persson@berkeley.edu
Department of Mathematics
University of California, Berkeley
Math 128A Numerical Analysis
Suppose that \(f\in C[a,b]\) and \(f(a)\cdot f(b)<0\). The Bisection method generates a sequence \(\{p_n\}_{n=1}^\infty\) approximating a zero \(p\) of \(f\) with \[ |p_n-p| \le \frac{b-a}{2^n},\qquad\text{when }n\ge 1. \]
Let \(g\in C[a,b]\) be such that \(g(x)\in[a,b]\), for all \(x\) in \([a,b]\). Suppose, in addition, that \(g'\) exists on \((a,b)\) and that a constant \(0<k<1\) exists with \[ |g'(x)|\le k,\qquad \text{for all }x\in(a,b). \] Then, for any number \(p_0\) in \([a,b]\), the sequence defined by \(p_n = g(p_{n-1})\) converges to the unique fixed point \(p\) in \([a,b]\).
If \(g\) satisfies the hypotheses above, then bounds for the error are given by \[ \begin{aligned} |p_n-p| &\le k^n \max \{p_0 - a, b - p_0 \} \\ |p_n-p| &\le \frac{k^n}{1-k} |p_1-p_0| \end{aligned} \]
Suppose \(f\in C^2[a,b]\) and \(p_0\in[a,b]\) approximates solution \(p\) of \(f(x)=0\) with \(f'(p_0)\ne 0\). Expand \(f(x)\) about \(p_0\): \[ f(p) = f(p_0) + (p-p_0)f'(p_0) + \frac{(p-p_0)^2}{2} f''(\xi(p)) \] Set \(f(p)=0\), assume \((p-p_0)^2\) negligible: \[ p \approx p_1 = p_0 - \frac{f(p_0)}{f'(p_0)} \] This gives the sequence \(\{p_n\}_{n=0}^\infty\): \[ p_n = p_{n-1} - \frac{f(p_{n-1})}{f'(p_{n-1})} \]
Newton’s method is fixed point iteration \(p_n=g(p_{n-1})\) with \[ g(x) = x - \frac{f(x)}{f'(x)} \]
Let \(f\in C^2[a,b]\). If \(p\in [a,b]\) is such that \(f(p)=0\) and \(f'(p)\ne 0\), then there exists a \(\delta >0\) such that Newton’s method generates a sequence \(\{p_n\}_{n=1}^\infty\) converging to \(p\) for any initial approximation \(p_0\in[p-\delta,p+\delta]\).
Replace the derivative in Newton’s method by \[ f'(p_{n-1}) \approx \frac{f(p_{n-2})-f(p_{n-1})}{p_{n-2}-p_{n-1}} \] to get \[ p_n = p_{n-1}-\frac{f(p_{n-1})(p_{n-1}-p_{n-2})}{f(p_{n-1})-f(p_{n-2})} \]
Like the Secant method, but with a test to ensure the root is bracketed between iterations.
Suppose \(\{p_n\}_{n=0}^\infty\) is a sequence that converges to \(p\), with \(p_n\ne p\) for all \(n\). If positive constants \(\lambda\) and \(\alpha\) exist with \[ \lim_{n\rightarrow\infty} \frac{|p_{n+1}-p|}{|p_n-p|^\alpha} = \lambda, \] then \(\{p_n\}_{n=0}^\infty\) converges to \(p\) of order \(\alpha\), with asymptotic error constant \(\lambda\).
An iterative technique \(p_n=g(p_{n-1})\) is said to be of order \(\alpha\) if the sequence \(\{p_n\}_{n=0}^\infty\) converges to the solution \(p=g(p)\) of order \(\alpha\).
Let \(g\in C[a,b]\) be such that \(g(x)\in[a,b]\), for all \(x\in[a,b]\). Suppose \(g'\) is continuous on \((a,b)\) and that \(0<k<1\) exists with \(|g'(x)|\le k\) for all \(x\in(a,b)\). If \(g'(p)\ne 0\), then for any number \(p_0\) in \([a,b]\), the sequence \(p_n=g(p_{n-1})\) converges only linearly to the unique fixed point \(p\) in \([a,b]\).
Let \(p\) be solution of \(x=g(x)\). Suppose \(g'(p)=0\) and \(g''\) continuous with \(|g''(x)|<M\) on open interval \(I\) containing \(p\). Then there exists \(\delta>0\) s.t. for \(p_0\in[p-\delta,p+\delta]\), the sequence defined by \(p_n=g(p_{n-1})\) converges at least quadratically to \(p\), and \[ |p_{n+1}-p| < \frac{M}{2}|p_n-p|^2. \]
Seek \(g\) of the form \[ g(x) = x-\phi(x)f(x). \] Find differentiable \(\phi\) giving \(g'(p)=0\) when \(f(p)=0\): \[ \begin{aligned} g'(x) &= 1 - \phi'(x)f(x) - f'(x)\phi(x) \\ g'(p) &= 1 - \phi'(p)\cdot 0 - f'(p) \phi(p) \end{aligned} \] and \(g'(p)=0\) if and only if \(\phi(p) = 1/f'(p)\). This gives Newton’s method \[ p_n = g(p_{n-1}) = p_{n-1} - \frac{f(p_{n-1})}{f'(p_{n-1})} \]
A solution \(p\) of \(f(x)=0\) is a zero of multiplicity \(m\) of \(f\) if for \(x\ne p\), we can write \(f(x)=(x-p)^m q(x)\), where \(\lim_{x\rightarrow p} q(x)\ne 0\).
\(f\in C^1[a,b]\) has a simple zero at \(p\) in \((a,b)\) if and only if \(f(p)=0\), but \(f'(p)\ne 0\).
The function \(f\in C^m[a,b]\) has a zero of multiplicity \(m\) at point \(p\) in \((a,b)\) if and only if \[ 0=f(p)=f'(p)=f''(p)=\cdots = f^{(m-1)}(p),\text{ but } f^{(m)}(p)\ne 0. \]
Define \(\mu(x) = f(x) / f'(x)\). If \(p\) is a zero of \(f\) of multiplicity \(m\) and \(f(x)=(x-p)^m q(x)\), then \[ \mu(x) = (x-p)\frac{q(x)}{mq(x) + (x-p)q'(x)} \] also has a zero at \(p\). But \(q(p)\ne 0\), so \[ \frac{q(p)}{mq(p)+(p-p)q'(p)} = \frac{1}{m} \ne 0, \] and \(p\) is a simple zero of \(\mu\). Newton’s method can then be applied to \(\mu\) to give \[ g(x) = x-\frac{f(x)f'(x)}{[f'(x)]^2-f(x)f''(x)} \]
For a given sequence \(\{p_n\}_{n=0}^\infty\), the forward difference \(\Delta p_n\) is defined by \[ \Delta p_n = p_{n+1}-p_n,\qquad \text{for }n\ge 0 \] Higher powers of the operator \(\Delta\) are defined recursively by \[ \Delta^k p_n = \Delta (\Delta^{k-1}p_n),\qquad \text{for }k\ge 2 \]
Since \(\Delta^2 p_n = p_{n+2}-2p_{n+1}+p_n\), we can write \[ \hat{p}_n = p_n - \frac{(\Delta p_n)^2}{\Delta^2 p_n},\qquad \text{for }n\ge 0 \]
Suppose that \(\{p_n\}_{n=0}^\infty\) converges linearly to \(p\) and that \[ \lim_{n\rightarrow\infty} \frac{p_{n+1}-p}{p_n-p}<1 \] Then \(\{\hat{p}_n\}_{n=0}^\infty\) converges to \(p\) faster than \(\{p_n\}_{n=0}^\infty\) in the sense that \[ \lim_{n\rightarrow\infty} \frac{\hat{p}_n-p}{p_n-p}=0 \]
Aitken’s \(\Delta^2\) method for fixed-point iteration gives \[ \begin{aligned} &p_0,\ p_1=g(p_0),\ p_2=g(p_1),\ \hat{p}_0=\{\Delta^2\}(p_0),\\ &p_3=g(p_2),\ \hat{p}_1 = \{\Delta^2\}(p_1),\ \ldots \end{aligned} \] Steffensen’s method assumes \(\hat{p}_0\) is better than \(p_2\): \[ \begin{aligned} &p_0^{(0)},\ p_1^{(0)}=g(p_0^{(0)}),\ p_2^{(0)}=g(p_1^{(0)}),\ % p_0^{(1)}=\{\Delta^2\}(p_0^{(0)}),\\ &p_1^{(1)}=g(p_0^{(1)}),\ \ldots \end{aligned} \]
Suppose \(x=g(x)\) has solution \(p\) with \(g'(p)\ne 1\). If exists \(\delta>0\) s.t. \(g\in C^3[p-\delta,p+\delta]\), then Steffensen’s method gives quadratic convergence for \(p_0\in[p-\delta,p+\delta]\).
A polynomial of degree \(n\) has the form \(P(x) = a_nx^n + a_{n-1}x^{n-1}+\) \(\cdots+a_1x+a_0\) with coefficients \(a_i\) and \(a_n\ne 0\).
If \(P(x)\) polynomial of degree \(n\ge 1\), with real or complex coefficients, \(P(x)=0\) has at least one root.
Exists unique \(x_1,\ldots,x_k\) and \(m_1,\ldots,m_k\), with \(\sum_{i=1}^k m_i=n\) and \[ P(x)=a_n(x-x_1)^{m_1}(x-x_2)^{m_2}\cdots(x-x_k)^{m_k}. \]
\(P(x),Q(x)\) polynomials of degree at most \(n\). If \(P(x_i)=Q(x_i)\) for \(i=1,2,\ldots,k\), with \(k>n\), then \(P(x)=Q(x)\).
Let \(P(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0\). If \(b_n=a_n\) and \[ b_k=a_k+b_{k+1}x_0, \qquad \text{for }k=n-1,n-2,\ldots,1,0, \] then \(b_0=P(x_0)\). Moreover, if \[ Q(x)=b_nx^{n-1}+b_{n-1}x^{n-2}+\cdots+b_2x+b_1, \] then \(P(x)=(x-x_0)Q(x)+b_0\).
Differentiation gives \[ P'(x)=Q(x)+(x-x_0)Q'(x)\qquad\text{and}\qquad P'(x_0)=Q(x_0). \]