What could be going wrong with my Newton's method?

  • Thread starter Thread starter robierob
  • Start date Start date
  • Tags Tags
    Method Newtons
Click For Summary
SUMMARY

The discussion focuses on the application of Newton's method to approximate the intersection points of the functions f(x) = x² and g(x) = cos(x). The key issue identified was that initial guesses for the root were too far from the actual root, leading to divergence. To ensure convergence, the distance between the initial guess and the root must be less than 2δ/M, where |f'(x)| ≥ δ > 0 and |f''(x)| ≤ M. Additionally, it is crucial to identify intervals where the function changes sign to refine initial guesses effectively.

PREREQUISITES
  • Understanding of Newton's method for root-finding
  • Familiarity with derivatives and their significance in optimization
  • Knowledge of continuous functions and the Intermediate Value Theorem
  • Basic algebraic manipulation of functions
NEXT STEPS
  • Study the application of the Intermediate Value Theorem in root-finding
  • Learn about the convergence criteria for Newton's method
  • Explore numerical methods for refining initial guesses in root-finding
  • Investigate the behavior of functions and their derivatives to predict root locations
USEFUL FOR

Mathematicians, computer scientists, and engineers involved in numerical analysis, particularly those interested in root-finding algorithms and optimization techniques.

robierob
Messages
11
Reaction score
0
so I was helping my friend today and ran into a problem.

the problem was to use Newtons method to approx. the intersection points of two graphs.

f=x^2
g=cosx

so I subtracted f-g, found the derivative and pluged in some guesses.

Except all of my guesses just blew upwards in values instead of zooming in on a point. what's the deal?

Rob
 
Physics news on Phys.org
Your guesses were too far from the root. To ensure convergence, the distance between your initial guess and the root has to be less than 2 \delta \over M where

|f'(x)| \geq \delta > 0

|f''(x)| \leq M

for all x \epsilon [a,b] in the interval [a,b] you're considering
 
Last edited:
Your totally right. Thats one tight interval to make a guess for though. I was only about .2 away from a working guess. Thanks
 
Hi Robierob,

When u compute f(x)-g(x), u should get x² - cos x on which u can apply Newton's method. Actually u can ensure that your guess is not far from the actual root by finding when your function changes from positive to negative or vice versa. There will be a root when the function changes sign provided that it is continuous for the interval where the root lies. For example, there is a root between x=a and x=b when a and b are consecutive and f(a) f(b) < 0. U can deduce the values of a and b by substitution and use a starting value between a and b for your approximation. That should help u arrive at your root quickly.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
Replies
12
Views
5K
  • · Replies 15 ·
Replies
15
Views
6K