0 = $f(x_{r}) = f(x_{n}) + f'(x_{n})(x_{r}-x_{n}) + \frac{f''(\xi)}{2}(x_{r}-x_{n})^{2}$
I came across a Taylor series expansion as shown in above equation while studying proof for convergence of Newton-Raphson method. I am not able to understand why the series has been terminated after writing 3 terms only and what exactly has $\xi$ to do in the third term. $\xi$ is a number between $x_{r}$ and $x_{n}$.