ArticleslgStudy

computer science

Newton's method in optimization

Newton's method in optimization is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Newton's method in optimization rather than just read about it. In short: In calculus, Newton's method (also called Newton–Raphson) is an iterative method for finding the roots of a differentiable function f {\displaystyle f} , which are solutions to the equation f ( x ) = 0 {\displaystyle f(x)=0} . However, to optimize a twice-differentiable f {\displaystyle f} , our goal is to find the roots of f ′ {\displaystyle f'} .

Newton's method in optimization — main illustration
Newton's method in optimization — illustration

Key takeaways

  • Newton's method in optimization belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Newton's method in optimization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Newton's method in optimization from memory before moving on to harder problems.

Reference excerpt

In calculus, Newton's method (also called Newton–Raphson) is an iterative method for finding the roots of a differentiable function f {\displaystyle f} , which are solutions to the equation f ( x ) = 0 {\displaystyle f(x)=0} . However, to optimize a twice-differentiable f {\displaystyle f} , our goal is to find the roots of f ′ {\displaystyle f'} . We can therefore use Newton's method on its derivative f ′ {\displaystyle f'} to find solutions to f ′ ( x ) = 0 {\displaystyle f'(x)=0} , also known as the critical points of f {\displaystyle f} . These solutions may be minima, maxima, or saddle points; see section "Several variables" in Critical point (mathematics) and also section "Geometric interpretation" in this article. This is relevant in optimization, which aims to find (global) minima of the function f {\displaystyle f} .

Newton's method The central problem of optimization is minimization of functions. Let us first consider the case of univariate functions, i.e., functions of a single real variable. We will later consider the more general and more practically useful multivariate case. Given a twice differentiable function f : R → R {\displaystyle f:\mathbb {R} \to \mathbb {R} } , we seek to solve the optimization problem

min x ∈ R f ( x ) . {\displaystyle \min _{x\in \mathbb {R} }f(x).}

Newton's method attempts to solve this problem by constructing a sequence { x k } {\displaystyle \{x_{k}\}} from an initial guess (starting point) x 0 ∈ R {\displaystyle x_{0}\in \mathbb {R} } that converges towards a minimizer x ∗ {\displaystyle x_{*}} of f {\displaystyle f} by using a sequence of second-order Taylor approximations of f {\displaystyle f} around the iterates. The second-order Taylor expansion of f around x k {\displaystyle x_{k}} is

f ( x k + t ) ≈ f ( x k ) + f ′ ( x k ) t + 1 2 f ″ ( x k ) t 2 . {\displaystyle f(x_{k}+t)\approx f(x_{k})+f'(x_{k})t+{\frac {1}{2}}f''(x_{k})t^{2}.}

The next iterate x k + 1 {\displaystyle x_{k+1}} is defined so as to minimize this quadratic approximation in t {\displaystyle t} , and setting x k + 1 = x k + t {\displaystyle x_{k+1}=x_{k}+t} . If the second derivative is positive, the quadratic approximation is a convex function of t {\displaystyle t} , and its minimum can be found by setting the derivative to zero. Since

0 = d d t ( f ( x k ) + f ′ ( x k ) t + 1 2 f ″ ( x k ) t 2 ) = f ′ ( x k ) + f ″ ( x k ) t , {\displaystyle \displaystyle 0={\frac {\rm {d}}{{\rm {d}}t}}\left(f(x_{k})+f'(x_{k})t+{\frac {1}{2}}f''(x_{k})t^{2}\right)=f'(x_{k})+f''(x_{k})t,}

the minimum is achieved for

… excerpt ends here. Continue reading the full article.

Illustrations

Newton's method in optimization: A comparison of gradient descent (green) and Newton's method (red) for minimizing a function (with small step sizes). Newton's method uses curvature information (i.e. the second derivative) to take a more direct route.
A comparison of gradient descent (green) and Newton's method (red) for minimizing a function (with small step sizes). Newton's method uses curvature information (i.e. the second derivative) to take a more direct route.

Worked examples

Example 1 — a first encounter with Newton's method in optimization

Start with the simplest possible case. Write down what Newton's method in optimization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Newton's method in optimization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Newton's method in optimization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Newton's method in optimization

In research
Newton's method in optimization appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Newton's method in optimization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Newton's method in optimization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Newton's method in optimization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Newton's method in optimization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Newton's method in optimization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Newton's method in optimization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Newton's method in optimization in simple terms?

In calculus, Newton's method (also called Newton–Raphson) is an iterative method for finding the roots of a differentiable function f {\displaystyle f} , which are solutions to the equation f ( x ) = 0 {\displaystyle f(x)=0} . However, to optimize a twice-differentiable f {\displaystyle f} , our go…

Why does Newton's method in optimization matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Newton's method in optimization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Newton's method in optimization.

Tags

  • Optimization algorithms and methods

Keep exploring