Introductory university-level calculus, linear algebra, abstract algebra, probability, statistics, and stochastic processes.
Newton's method
Get link
Facebook
X
Pinterest
Email
Other Apps
-
Newton's method (the Newton-Raphson method) is a very powerful numerical method for solving nonlinear equations.
Suppose we'd like to solve a non-linear equation \(f(x) = 0\), where \(f(x)\) is a (twice) differentiable non-linear function. Newton's method generates a sequence of numbers \(c_1, c_2, c_3, \cdots\) that converges to a solution of the equation. That is, if \(\alpha\) is a solution (i.e., \(f(\alpha) = 0\)) then,
\[\lim_{n\to\infty}c_n = \alpha,\]
and this sequence \(\{c_n\}\) is generated by a series of linear approximations of the function \(f(x)\).
Theorem (Newton's method)
Let \(f(x)\) be a function that is twice differentiable on an open interval \(I\) that contains the closed interval \([a, b]\) (i.e., \([a,b]\subset I\)) and satisfy the following conditions:
\(f(a) < 0\) and \(f(b) > 0\);
For all \(x\in [a, b]\), \(f'(x) > 0\) and \(f''(x) > 0\).
where \(\alpha\) is the unique solution of \(f(\alpha) = 0\).
Proof. Since \(f(x)\) is (twice) differentiable, it is continuous on \([a,b]\). Since \(f(a) < 0\) and \(f(b) > 0\), clearly \(f(a) \neq f(b)\). Therefore, by the Intermediate Value Theorem, there exists an \(\alpha \in [a,b]\) such that \(f(\alpha) = 0\). Moreover, since \(f'(x) > 0\), \(f(x)\) is strictly monotone increasing on \([a,b]\), this \(\alpha\) is unique (i.e., there is only one such \(\alpha\) that satisfies \(f(\alpha) = 0\)).
Let us pick any \(c\in [a, b]\) and find the tangent line at \(x = c\), which is given by
\[y = f'(c)(x - c) + f(c).\]
The \(x\)-intercept \(x=c'\) of this line is obtained by
\[0 = f'(c)(c' - c) + f(c),\]
and hence
\[c' = c - \frac{f(c)}{f'(c)}.\]
Therefore if \(c = c_n\), we have \(c' = c_{n+1}\).
Moreover, since \(y=f(x)\) is convex (because \(f''(x) > 0\)), the tangent line is always resides below \(y=f(x)\) on \([a,b]\) so we have \(c' > \alpha\). Since \(f'(x) > 0\) and \(f(x) > 0\) (when \(x > \alpha\)), we have
\[c_{n+1} = c_n -\frac{f(c_n)}{f'(c_n)} < c_n.\]
Thus, \(\{c_n\}\) is a strictly monotone decreasing sequence bounded below. By the Monotone Convergence Theorem, \(\{c_n\}\) converges to a certain value. [See also: Monotone sequences and Cauchy sequences for the Monotone Convergence Theorem.]
Let \(\beta = \lim_{n\to\infty}c_n\), then \(\alpha \leq \beta < b\). If we take the limit \(n \to \infty\) on both sides of Eq. (eq:newton), we have
\[\beta = \beta - \frac{f(\beta)}{f'(\beta)},\]
from which we conclude
\[f(\beta) = 0.\]
However, \(\alpha\) is the only solution to \(f(x) = 0\). Hence \(\beta = \alpha\). ■
Example. Let \(d\) be any positive real number. Using Newton's method, let us find an approximation of \(\sqrt{d}\). First, let us define \(f(x) = x^2 - d\). Then the solution to \(f(x) = 0\) is \(x=\sqrt{d}\) (provided \(x \geq 0\)). \(f(0) = -d < 0\), and \(f'(x) = 2x > 0\) for \(x > 0\), and \(f''(0) = 2 > 0\). By choosing sufficiently small \(a\) and sufficiently large \(b\), \(f(x)\) can satisfy the conditions required for Newton's method. If we define the sequence \(\{c_n\}\) by
Let \(\mathbf{X} = (X_1, X_2, \cdots, X_n)^\top\) be a vector of random variables. We say it follows the multivariate normal (Gaussian) distribution if its density is given by \[f(\mathbf{x}) = \frac{1}{\sqrt{(2\pi)^n|\Sigma|}}\exp\left(-\frac{1}{2}(\mathbf{x} - \boldsymbol{\mu})^\top\Sigma^{-1}(\mathbf{x} - \boldsymbol{\mu})\right)\tag{Eq:density}\] where \(\boldsymbol{\mu} = (\mu_1, \mu_2, \cdots, \mu_n)^\top \in \mathbb{R}^n\) is a vector, \(\Sigma\) is a symmetric positive definite \(n\times n\) matrix, and \(\Sigma^{-1}\) and \(|\Sigma|\) are the inverse and determinant of \(\Sigma\), respectively. It turns out that \(\boldsymbol{\mu}\) and \(\Sigma\) are the mean vector and covariance matrix of \(\mathbf{X}\), respectively. But we will not prove that here. In this post, we will show this density (Eq:density) is normalized (of course). That is, we prove that \[\int_{\mathbb{R}^n}f(\mathbf{x})d\mathbf{x} = 1.\] We assume that you already know how to prove the univariate nor...
We show some basic properties of differentiation, such as linearity, the product rule, the quotient rule, the chain rule, etc. We also introduce higher-order derivatives and differentiability classes. Theorem (Properties of differentiation) Let \(f(x)\) and \(g(x)\) be differentiable functions on an open interval \(I\). (Linearity) \[\frac{d}{dx}[kf(x) + lg(x)] = kf'(x) + lg'(x)\] where \(k, l\) are constants. (Product rule) \[\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x).\] (Quotient rule) \(\frac{f(x)}{g(x)}\) is differentiable on \(\{x \mid g(x) \neq 0, x\in I\}\) and \[\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}.\] Proof . Exercise. Since \(f(x)\) is differentiable at \(x=a\), it is continuous at \(x=a\) so \(f(x) \to f(a)\) as \(x \to a\). For any \(a\in I\), \[\begin{eqnarray*} \frac{f(x)g(x) - f(a)g(a)}{x - a} &=& \frac{f(x)g(x) - f(x)g(a) + f(x)g(a) - f(a)g(a)}{x - a}\\ &=& f(x)\cdot\frac{g(x) ...
Let \(\mathbf{X} = (X_1, X_2, \cdots, X_n)^\top \in \mathbb{R}^n\) be a vector of random variables. The covariance matrix \(\Sigma\) of \(\mathbf{X}\) is a square (\(n\times n\)) matrix whose elements are covariances between the components of \(\mathbf{X}\). That is, \[\Sigma_{ij} = \mathrm{Cov}(X_i,X_j)\] where \(\mathrm{Cov}(X_i,X_j)\) is the covariance between \(X_i\) and \(X_j\) , \(i,j = 1, 2, \cdots, n\): \[\mathrm{Cov}(X_i, X_j) = \mathbb{E}[(X_i - \mathbb{E}[X_i])(X_j - \mathbb{E}[X_j])].\] Here, \(\mathbb{E}[\cdot]\) indicates the expectation value of a random variable . Any covariance matrix has the following properties: Symmetric. That is, \[\Sigma = \Sigma^\top.\] Positive semi-definite. That is,\[\forall \mathbf{v} \in \mathbb{R}^n, \mathbf{v}^\top\Sigma\mathbf{v} \geq 0.\] See also : Positive definite matrix (Wolfram MathWorld) The symmetry is obvious from the definition of the covariance matrix. Now, let us prove that the covariance matrix is positive semi-...
Comments
Post a Comment