you can consider that as a corollary of Liouville theorem that says if \[fe^g\] has an elementary antiderivative, where f and g are rational functions provided that "g" is not constant, then it has an antiderivative of the form \[he^g\] , h is a rational function. For this to be an antiderivative of \[fe^g\], we need this condition to be satisfied h′+hg′=f.
Now lets say , \[f= \frac{ 1 }{ 1+z^2 }\]and g=iz, the condition is h′+ih=\[\frac{ 1 }{ 1+z^2 }\]. The right side has a pole of order 1 at z=i. In order for the left side to have a pole there, h must have a pole there, but wherever h has a pole of order k, h′ has a pole of order k+1, so the left side can never have a pole of order 1.
@KingGeorge hope this complex answer helps you lol i cant go further , i have forgotten most of it :( :(