Given the following Newton iteration: $x_{n+1}=2x_n-x^{2}_{n}y$
Identify the function being iterated.
The solution was:
$$x_{n+1}=2x_n-x^{2}_{n}y= x_n-(x^{2}_{n}y-x_n)=x_n-\frac{y -\frac{1}{x_n}}{\frac{1}{x^{2}_{n}}}$$
which gives $f(x)=y - \frac{1}{x}$
I understand that we need to put $$(x^{2}_{n}y-x_n)$$ into the form $$\frac{f(x)}{f'(x)}$$
But I don't understand how you "derive" $f(x)$ and $f'(x)$ from $(x^{2}_{n}y-x_n)$
I'd like to know what the derivation method was.