Solving x3-x-2 for the X-Axis: Newton's Method

Click For Summary

Homework Help Overview

The discussion revolves around applying Newton's method to find the x-intercept of the function f(x) = x³ - x - 2, starting with an initial estimate of x₀ = 2. Participants are exploring how to determine the number of iterations needed to achieve a specified accuracy in the solution.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the convergence of Newton's method and the implications of accuracy, questioning how many iterations are necessary to reach a solution accurate to three decimal places. Some express uncertainty about the relationship between iterations and the desired precision.

Discussion Status

There is ongoing exploration of the number of iterations required for the desired accuracy, with some participants suggesting that a few iterations may suffice. Others emphasize the importance of checking the results after each iteration to confirm the required precision.

Contextual Notes

Participants are considering the constraints of the problem, particularly the requirement to provide an answer accurate to three decimal places, which raises questions about the adequacy of a single iteration versus multiple iterations.

alpha01
Messages
77
Reaction score
0

Homework Statement



using Newtons method with an initial estimate of x0=2, find the point where the graph f(x)=x3-x-2 crosses the x-axis

Homework Equations



xi+1 = xi - f(xi)/f'(xi)

The Attempt at a Solution



Using a function plotter, I know the answer should be around 1.52138... But how am i supposed to know how many repetitions of Newton's method is required to get x where y=0 (i.e the x-axis).
 
Physics news on Phys.org
Using a function plotter, I know the answer should be around 1.52138... But how am i supposed to know how many repetitions of Newton's method is required to get x where y=0 (i.e the x-axis).
Generally it will never reach the x value when y=0, so the number of repetition is often infinite. However it's different if you want say 5 correct digits or so. I don't remember very well how to find the number of repetitions but I remember that the method converges quadratically to the solution. Reading : http://en.wikipedia.org/wiki/Newton's_method will certainly help you.
 
I had a look but still couldn't figure it out ...it wants the solution to 3 decimal places..
 
alpha01 said:

Homework Statement



using Newtons method with an initial estimate of x0=2, find the point where the graph f(x)=x3-x-2 crosses the x-axis

Homework Equations



xi+1 = xi - f(xi)/f'(xi)

The Attempt at a Solution



Using a function plotter, I know the answer should be around 1.52138... But how am i supposed to know how many repetitions of Newton's method is required to get x where y=0 (i.e the x-axis).

You aren't- no number of repetitions will give the exact value. However that is not relevant to your problem. Because you can't get an exact value, you need to think about how accurate you want the answer to be. Generally speaking, a solution is as close to the correct value as it is to the previous iteration.
 
it says give your answer "accurate to three decimal places" that is what I am unsure about... that sounds like i can just do one repetition and write the answer to 3 decimal places.. but that sounds too easy (its for my finals, it should be harder i think)
 
Then I think that 3 iterations are more than enough.
To be sure, do one iteration and keep the number you get. Do another one iteration and if the first 3 decimal places are the same, then it's done. If only the 2 first are equal, then do another iteration and you're done.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
16
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
7
Views
2K