I'm currently trying to gain an intuitive understanding of the Newton Raphson method but have reached a hurdle I seem unable to jump at the moment:
Here's where I am so far:
- We have a function $f(x)$ that we want to approximate the root of.
- We make a guess, $g$.
- By drawing a tangent line at $f(g)$, we have the coordinate $(g, f(g))$
- The equation of this line in the form $y = mx + c$ is $y = f'(g) \textbf{(x -g)} + \textbf{f(g)}$
The bold text is where I'm struggling! Why is the $x$ value $(x-g)$ and why is the constant $f(g)$? The tangent line doesn't go through the y-axis there. See picture here, courtesy of Brilliant: Tangent Line
Thanks
The tangent line will go through the $y$-axis if you extend it.
Let's study $\hat{f}(x) = f'(g) (x-g)+f(g)$ and check that it passes through $(g,f(g))$.
We evaluate $f'(g)(x-g)+f(g)$ at $g$ and have $$f'(g)(g-g)+f(g)=f(g)$$
also $y= f'(g)(x-g)+f(g)=f'(g)x +(f(g)-gf'(g))$ is a straight line with slope $f'(g)$ and intercept $f(g)-gf'(g)$.