Estimate the number of iterations of Newton's method needed to find a root of $f(x)=\cos(x)-x$ to within $10^{-100}$.
The answer is $7$ iterations, but I have no idea how it was solved by my instructor.
Estimate the number of iterations of Newton's method needed to find a root of $f(x)=\cos(x)-x$ to within $10^{-100}$.
The answer is $7$ iterations, but I have no idea how it was solved by my instructor.
The idea behind the reasoning is the quadratic convergence of Newton's algorithm (if the zero is simple).
When you are near the zero $\alpha$, an iteration takes you from $\alpha + \delta$ to
$$(\alpha + \delta) - \frac{f(\alpha+\delta)}{f'(\alpha+\delta)} \approx \alpha + \delta - \frac{f'(\alpha)\delta + f''(\alpha)\frac{\delta^2}{2}}{f'(\alpha) + f''(\alpha)\delta} \approx \alpha + \frac{f''(\alpha)}{2f'(\alpha)}\delta^2,$$
so each step roughly doubles the number of correct digits.
If you start with approximately one correct digit, after seven steps, you have roughly $2^7 = 128$ correct digits.