Why does the Newton-Raphson method not converge for some functions?
$f(x)=2x^2-x^3-2$. This is a cubic type graph as shown. The real root of this graph is $(-0.839,0)$.
So, the question is to use Newton's approximation method twice to approximate a solution to this $f(x)$.
I use an initial starting value of $x_0=1$. My first approximation is $x_1=2$, and my second one is $x_2=1.5$. I seem to not move any closer to the real solution as I keep iterating through the method.
Am I misunderstanding how to use this approximation? Is the issue that my first guess was too far from the actual solution?
Solution 1:
Newton's method does not always converge. Its convergence theory is for "local" convergence which means you should start close to the root, where "close" is relative to the function you're dealing with. Far away from the root you can have highly nontrivial dynamics.
One qualitative property is that, in the 1D case, you should not have an extremum between the root you want and your initial guess. If you have an odd number of extrema in the way, then you will start going away from the root you want, as you see here. If you have an even number of extrema in the way, then you will start going the right way, but you may later find yourself in a spot with an odd number of extrema in the way, leading to problems later.
Of course you may eventually find an occasion where there are an even number of extrema in the way, and then you manage to skip over all of them and get to the right side. At that point things will usually work out (not always, though). In this problem with your initial guess, that eventually happens, because the system eventually finds its way just slightly to the right of the extremum on the right, which sends it far off to the left.
Solution 2:
In fact, you gave up too early ; The method eventually converges :
1 2.000000000000000000000000000
2 1.500000000000000000000000000
3 0.3333333333333333333333333333
4 2.148148148148148148148148148
5 1.637079608343976160068114091
6 0.9483928480399477528436835979
7 1.910874140183680201544963299
8 1.405089904362402921055022221
9 -1.324018083676046424512855515
10 -0.9614381794507316717924414480
11 -0.8500221808505758631523579893
12 -0.8393807176849843501240483025
13 -0.8392867625049899194321196645
14 -0.8392867552141611764525252322
15 -0.8392867552141611325518525647
16 -0.8392867552141611325518525647
17 -0.8392867552141611325518525647
18 -0.8392867552141611325518525647
19 -0.8392867552141611325518525647
20 -0.8392867552141611325518525647
?