Why the tangent line is $y = f'(x_n) (x - x_n) + f(x_n)$ at $x = x_n$?

76 Views Asked by At

I was looking at the Newton's method at Wikipedia, and it is said that the equation of the tangent line to the curve $y = f(x)$ at $x = x_n$ is

$$y = f'(x_n) (x - x_n) + f(x_n)$$

The usual equation of a line is

$$y = m x + b$$

where $m$ is the slope, that is $\frac{\Delta y}{\Delta x}$, and $b$ is the "height" from where the line starts. I understand that $f'(x_n)$ is the slope of the tangent line (by definition), but why is it multiplied by $(x - x_n)$?

2

There are 2 best solutions below

0
On

Well as $m=f'(x_n)$ you get an equation $y = f'(x_n)x + b$.

Then you need to choose $b$ such that the line goes through $(x_n, f(x_n))$. If you choose $b = $f(x_n) - f'(x_n) x_n$ you achieve exactly that, and then we get:

$$y=mx+q = f'(x_n) x +f(x_n)-f'(x_n)x_n = f'(x_n)(x-x_n) + f(x_n)$$

0
On

The equation of a straight line is given by $$y=ax+b$$ for some real $a$ and $b$. Now, the equation of the tangent to the graph of $f$ at the point $(x_n,f(x_n))$ is the straight line with $a=f'(x_n)$, so we get $$y=f'(x_n)+b.$$ Now we look for $b$ : taking $(x,y)=(x_n,f(x_n))$ (because this point lies on the graph of $f$ and on the tangent), we get $$b=y-f'(x_n)x=f(x_n)-f'(x_n)x_n$$ so that the equation of the tangent becomes $$y=f'(x_n)x+f(x_n)-f'(x_n)x_n=f'(x_n)(x-x_n)+f(x_n).$$