I tried to formulate the arctan function in a complex logarithmic form by integrating its derivative by using partial fraction decomposition. And I was wondering if my attempt is valid or not:
Using $$ \frac{d}{dz}\arctan(z) = \frac{1}{1+z^2} $$ one knows that $$ \int \frac{1}{1+z^2} dz =\arctan(z) $$ Using partial fraction decomposition one gets $$ \frac{1}{1+z^2} = \frac{1}{(z-i)(z+i)} = \frac{1}{2i}\frac{1}{(z-i)} - \frac{1}{2i}\frac{1}{(z-i)} $$. Then one can integrate: $$ \int \frac{1}{1+z^2} dz = \frac{1}{2i} \int \frac{dz}{(z-i)} - \frac{1}{2i} \int \frac{dz}{(z+i)} = \frac{\log(z-i) -\log(z+i)}{2i} $$
So my result would be $$ \arctan(z) = \frac{\log(z-i) -\log(z+i)}{2i}. $$ Is this correct?