If we let $x_n\to1$ and $y_n\to1$ can we understand the convergence of $$\dfrac{1-2x_n + x_n^2y_n}{(1-x_n)^2}?$$
This is a problem I've been thinking about for a while but can't actually pin down a solution. It feels like this should converge to $1$ as well but I fear the rate of convergence of $y_n$ makes a difference.
Could we say that the numerator is equal to $(1-x_n)^2(1+o(1))$ and so the limit is just $1$? I fear this may be hiding some issues inside the little o and hence not actually rigorous.
It doesn't converge to $1$ in general.
We have
$$\dfrac{1-2x_n + x_n^2y_n}{(1-x_n)^2} = 1 + \frac{x_n^2(y_n-1)}{(1-x_n)^2}$$
Consider $x_n = 1-\frac1{n^2}$ and $y_n = 1+\frac1n$. We have
$$\frac{x_n^2(y_n-1)}{(1-x_n)^2} = \frac{\left(1-\frac1{n^2}\right)^2\frac1n}{\frac1{n^4}} = n^3 \left(1-\frac1{n^2}\right)^2 \xrightarrow{n\to\infty} +\infty$$