With a double root $a$ in the denominator, combine all the other terms into a function $f(z)$. Then your expression has the form $$ \frac{f(z)}{(z-a)^2}=\frac{f(a)+f'(a)(z-a)+(z-a)^2r(z)}{(z-a)^2} $$ where the remainder $r(z)$ is holomorphic close to $a$. Thus the residuum results from the linear term in the numerator and is $f'(a)$.