While using the Frobenius method to solve a second order ODE of the form
$$y^{\prime \prime} + p(x)y^\prime + q(x)y = 0$$
if the roots of the indicial equation $(r(r-1)+p_0r+q_0=0)$ $r_1, r_2 (r_1>r_2)$ differ by an integer then we first obtain $y_1=\displaystyle \sum_{n=0}^{\infty} a_nx^{n+r_1}$as a solution and then use reduction of order to find $y_2$. The formula for reduction for order is
$$y_2 = Cy_1\int\dfrac{e^{-\int p(x)dx}}{y_1^2(x)} dx$$
as derived here. Now, apparently you can derive the form of $y_2$ rigorously by substituting $y_1=\displaystyle \sum_{n=0}^{\infty} a_nx^{n+r_1}$ in the above eqaution. However, I cant find this derivation anywhere. If anyone knows how to derive
$$y_2 = Cy_1\ln x + x^{r_2}\sum_{n=0}^{\infty}b_nx^n$$
using this method or if there is ANY source/textbook that does this, please let me know.