Currently i am reading this page which discusses the newton-raphson method of approximating the roots of an equation. It says given a function $f$ over the reals $x$, and its derivative $f$,we begin with a first guess $x_{0}$ for a root of the function $f$. Provided the function is reasonably well behaved a better approximation $x_{1}$ is
$$x_{1} = x_{0} – \frac{f(x_{0})}{f \prime(x_{0})}.$$
First question: What does it mean to say that the function is reasonably well behaved?What's according to them is "Reasonably well behaved?"
The process is repeated as $$x_{n+1} = x_{n} – \frac{f(x_{n})}{f \prime(x_{n})}$$ until a sufficiently accurate value is reached.
For example i tried solving the equation $x^3 – 3x – 4 = 0$ where $f(1) < 0$ and $f(3) > 0$ so there's a solution to the equation between 1 and 3.We shall take this to be 2,by bisection and hence $x_{0} = 2$.A better approximation $x_{1}$ is given by the above formula.
Second question:"until a sufficiently accurate value is reached." When do i get to the "sufficiently accurate" value?How do i know that i've reached a point where i stop using this formula?
Best Answer
Suppose you want to compute $\sqrt{2}$, so you use $f(x) = x^2-2$ and start with $x_1=1$. Say you want 50 places. Here we go:
So presumably we can stop at $x_8$.