In mathematics, Newton's method is a well-known algorithm for finding roots of equations in one or more dimensions.

PropertyValue
dbpedia-owl:thumbnail
dbpprop:abstract
  • In mathematics, Newton's method is a well-known algorithm for finding roots of equations in one or more dimensions. It can also be used to find local maxima and local minima of functions by noticing that if a real number <math>x*</math> is a stationary point of a function <math>f(x)</math>, then <math>x*</math> is a root of the derivative <math>f'(x)</math>, and therefore one can solve for <math>x*</math> by applying Newton's method to <math>f'(x)</math>. The Taylor expansion of <math>f(x)</math>, <math>\displaystyle f(x+\Delta x)=f(x)+f'(x)\Delta x+\frac 1 2 f (x) \Delta x^2</math>, attains its extremum when <math>\Delta x</math> solves the linear equation: <math>\displaystyle f'(x)+f (x) \Delta x=0. </math> Thus, provided that <math>\displaystyle f(x)</math> is a twice-differentiable function and the initial guess <math>\displaystyle x_0</math> is chosen close enough to <math>x*</math>, the sequence <math>(x_n)</math> defined by <math>x_{n+1} = x_n - \frac{f'(x_n)}{f(x_n)}, \ n \ge 0</math> will converge towards <math>x*</math>. This iterative scheme can be generalized to several dimensions by replacing the derivative with the gradient, <math>\nabla f(\mathbf{x})</math>, and the reciprocal of the second derivative with the inverse of the Hessian matrix, <math>H f(\mathbf{x})</math>. One obtains the iterative scheme <math>\mathbf{x}_{n+1} = \mathbf{x}_n - [H f(\mathbf{x}_n)]^{-1} \nabla f(\mathbf{x}_n), \ n \ge 0. </math> Usually Newton's method is modified to include a small step size <math>\gamma>0</math> instead of <math>\gamma=1</math> <math>\mathbf{x}_{n+1} = \mathbf{x}_n - \gamma[H f(\mathbf{x}_n)]^{-1} \nabla f(\mathbf{x}_n). </math> This is often done to ensure that the Wolfe conditions are satisfied at each step <math>\mathbf{x}_n \to \mathbf{x}_{n+1}</math> of the iteration. The geometric interpretation of Newton's method is that at each iteration one approximates <math>f(\mathbf{x})</math> by a quadratic function around <math>\mathbf{x}_n</math>, and then takes a step towards the maximum/minimum of that quadratic function. (If <math>f</math> happens to be a quadratic function, then the exact extremum is found in one step. ) Newton's method converges much faster towards a local maximum or minimum than gradient descent. In fact, every local minimum has a neighborhood <math>N</math> such that, if we start with <math>\mathbf{x}_0 \in N,</math> Newton's method with step size <math>\gamma=1</math> converges quadratically (if the Hessian is invertible in that neighborhood). Finding the inverse of the Hessian is an expensive operation, so the linear equation <math>\mathbf{p}_{n} = \mathbf{x}_{n+1}-\mathbf{x}_{n} = -[H f(\mathbf{x}_n)]^{-1} \nabla f(\mathbf{x}_n), \ n \ge 0. </math>. is often solved approximately (but to great accuracy) using a method such as conjugate gradient. There also exist various quasi-Newton methods, where an approximation for the Hessian is used instead. If the Hessian is close to a non-invertible matrix, the inverted Hessian can be numerically unstable and the solution may diverge. In this case, certain workarounds have been tried in the past, which have varied success with certain problems. One can, for example, modify the Hessian by adding a correction matrix <math>B_n</math> so as to make <math>H_f(\mathbf{x}_n) + B_n</math> positive definite. One approach is to diagonalize <math>H_f</math> and choose <math>B_n</math> so that <math>H_f(\mathbf{x}_n) + B_n</math> has the same eigenvectors as <math>H_f</math>, but with each negative eigenvalue replaced by <math>\epsilon>0. </math>
dbpprop:hasPhotoCollection
dbpprop:reference
rdfs:comment
  • In mathematics, Newton's method is a well-known algorithm for finding roots of equations in one or more dimensions.
rdfs:label
  • Newton's method in optimization
owl:sameAs
skos:subject
foaf:depiction
foaf:page
is dbpprop:redirect of