Math graphic
๐Ÿ“ Concept diagram

04-10 - Newton's Method

Phase: 4 | Subject: 04-10 Prerequisites: 04-08-optimization.md (derivatives, finding roots) Next subject: 05-01-antiderivatives.md


Learning Objectives

By the end of this subject, you will be able to:

  1. Understand Newton's method as an iterative root-finding algorithm
  2. Apply the iteration formula
  3. Choose appropriate initial guesses
  4. Analyse convergence and divergence

Core Content

What is Newton's Method?

Newton's method (also called Newton-Raphson) is an iterative algorithm for finding approximate roots of equations f(x) = 0.

Idea: Start with a guess xโ‚€. Draw the tangent at (xโ‚€, f(xโ‚€)). Where the tangent hits the x-axis is a better guess xโ‚. Repeat.

Formula:

$x_{n+1} = x_n - f(x_n) / f'(x_n)
$

โš ๏ธ THIS IS CRITICAL โ€” Newton's method is used constantly in numerical computing: training neural networks (it's the idea behind second-order optimisers), solving equations in physics engines, and finding maximum likelihood estimates in statistics. The concept of iterative improvement via local linear approximation also generalises to Newton's method in higher dimensions.

The Algorithm

  1. Choose initial guess xโ‚€
  2. Compute xโ‚ = xโ‚€ - f(xโ‚€)/f'(xโ‚€)
  3. Compute xโ‚‚ = xโ‚ - f(xโ‚)/f'(xโ‚)
  4. Repeat until |x_{n+1} - x_n| < tolerance

Choosing Initial Guess

Convergence

Newton's method converges QUADRATICALLY when it works โ€” the number of correct digits roughly doubles each iteration.

Divergence can occur if: - Initial guess is far from root - f'(x) is very small near root - The iteration enters a cycle



Key Terms

Worked Examples

Example 1: Find โˆš2

Solve xยฒ - 2 = 0. f(x) = xยฒ - 2, f'(x) = 2x.

Start with xโ‚€ = 1: xโ‚ = 1 - (1 - 2)/2 = 1 + 0.5 = 1.5 xโ‚‚ = 1.5 - (2.25 - 2)/3 = 1.5 - 0.25/3 = 1.5 - 0.0833 = 1.4167 xโ‚ƒ = 1.4167 - (2.0069 - 2)/2.8334 โ‰ˆ 1.4167 - 0.0024 = 1.4142

โˆš2 โ‰ˆ 1.4142. Converged in 3 iterations!

Example 2: Solve cos(x) = x

f(x) = cos(x) - x, f'(x) = -sin(x) - 1.

Start with xโ‚€ = 1: xโ‚ = 1 - (cos(1) - 1)/(-sin(1) - 1) = 1 - (0.5403 - 1)/(-0.8415 - 1) = 1 - (-0.4597)/(-1.8415) = 1 - 0.2496 = 0.7504

xโ‚‚ = 0.7504 - (cos(0.7504) - 0.7504)/(-sin(0.7504) - 1) โ‰ˆ 0.7504 - (0.7317 - 0.7504)/(-0.6816 - 1) โ‰ˆ 0.7504 - (-0.0187)/(-1.6816) โ‰ˆ 0.7504 - 0.0111 = 0.7393

The root is approximately 0.7391 (the Dottie number).

Example 3: Cube root

Solve xยณ - 7 = 0 with xโ‚€ = 2 (find โˆ›7).

f(x) = xยณ - 7, f'(x) = 3xยฒ. xโ‚ = 2 - (8 - 7)/12 = 2 - 1/12 โ‰ˆ 1.9167 xโ‚‚ = 1.9167 - (7.0417 - 7)/(3 ยท 3.6736) โ‰ˆ 1.9167 - 0.00379 โ‰ˆ 1.9129

โˆ›7 โ‰ˆ 1.9129. Actual: 1.9129... Correct to 4 decimal places in 2 iterations.



Quiz

Q1: What does the concept of Choosing Initial Guess primarily refer to in this subject?

A) A computational error related to Choosing Initial Guess B) A historical anecdote about Choosing Initial Guess C) A visual representation of Choosing Initial Guess D) The definition and application of Choosing Initial Guess

Correct: D)

Q2: What is the primary purpose of Convergence?

A) It replaces all other methods in this domain B) It is primarily a historical notation system C) It is used to convergence in mathematical analysis D) It is used only in advanced research contexts

Correct: C)

Q3: Which statement about The Algorithm is TRUE?

A) The Algorithm is not related to this subject B) The Algorithm is mentioned only as a historical footnote C) The Algorithm is a fundamental concept covered in this subject D) The Algorithm is an advanced topic beyond this subject's scope

Correct: C)

Q4: Based on the worked examples in this subject, what is the correct result?

A) A different result from a common mistake B) The inverse of the correct answer C) An unrelated numerical value D) 2.25 - (5.0625-5)/4.

Correct: D)

Q5: How are The Algorithm and What Is Newton'S Method? related?

A) The Algorithm is a special case of What Is Newton'S Method? B) The Algorithm and What Is Newton'S Method? are closely related concepts C) The Algorithm is the inverse of What Is Newton'S Method? D) The Algorithm and What Is Newton'S Method? are completely unrelated topics

Correct: B)

Q6: What is a common pitfall when working with Example 1: Find โˆš2?

A) Example 1: Find โˆš2 is always computed the same way in all contexts B) The main error with Example 1: Find โˆš2 is using it when it is not needed C) Example 1: Find โˆš2 has no common misconceptions D) A common mistake is confusing Example 1: Find โˆš2 with a similar concept

Correct: D)

Q7: When should you apply Example 2: Solve Cos(X) = X?

A) Avoid Example 2: Solve Cos(X) = X unless explicitly instructed B) Apply Example 2: Solve Cos(X) = X to solve problems in this subject's domain C) Example 2: Solve Cos(X) = X is not practically useful D) Use Example 2: Solve Cos(X) = X only in pure mathematics contexts

Correct: B)

Practice Problems

  1. Use Newton's method to find โˆš5 (start with xโ‚€ = 2) Answer: f(x) = xยฒ - 5, f'(x) = 2x. xโ‚ = 2 - (4-5)/4 = 2.25. xโ‚‚ = 2.25 - (5.0625-5)/4.5 โ‰ˆ 2.2361.

  2. Solve xยณ - 2 = 0 with xโ‚€ = 1 Answer: f(x) = xยณ - 2, f'(x) = 3xยฒ. xโ‚ = 1 - (1-2)/3 = 1.333. xโ‚‚ = 1.333 - (2.370-2)/5.333 โ‰ˆ 1.263.

  3. Why might Newton's method fail for f(x) = xยณ - x with xโ‚€ = 1/โˆš3? Answer: f'(x) = 3xยฒ - 1. At xโ‚€ = 1/โˆš3: f'(1/โˆš3) = 1 - 1 = 0. Newton's formula divides by f'(xโ‚€) = 0, causing failure. The tangent is horizontal at this point.

  4. Use Newton's method with xโ‚€ = 1 to find a root of f(x) = xยณ + x - 1. Answer: f'(x) = 3xยฒ + 1. xโ‚ = 1 - (1 + 1 - 1)/(3 + 1) = 1 - 1/4 = 0.75. xโ‚‚ = 0.75 - (0.4219 + 0.75 - 1)/(1.6875 + 1) = 0.75 - 0.1719/2.6875 โ‰ˆ 0.6860.

  5. Explain why Newton's method with xโ‚€ = 0 for f(x) = x^(1/3) fails to converge. Answer: At x = 0, f'(0) is undefined (vertical tangent). Even starting nearby, the derivative is very large, causing the iteration to overshoot wildly. Newton's method requires f'(xโ‚€) โ‰  0 and preferably moderate slope.


Summary

Key takeaways:


Pitfalls



Next Steps

Next up: 05-01-antiderivatives.md