I am working with the Cauchy Integral Formula for a matrix $A$ over a closed contour $C$. I have the following calculation, I believe this is correct, but I don't understand why I am allowed to interchange the sum and integral?
$f(A)=\frac{1}{2\pi i}\int\limits_Cf(z)(zI-A)^{-1}dz \\ = \frac{1}{2\pi i}\int\limits_Cf(z) \frac{1}{z} \sum_{n=0}^\infty \frac{A^n}{z^n} dz \\ = \frac{1}{2\pi i} \sum_{n=0}^\infty \left(\int\limits_Cf(z) \frac{1}{z^{n+1}} dz \right) A^n \\ = \sum_{n=0}^\infty \left( \frac{1}{2\pi i}\int\limits_Cf(z) \frac{1}{z^{n+1}} dz \right) A^n \\ = \sum_{n=0}^\infty \frac{f^{(n)}(0)}{n!} A^n.$
I believe it is something to do with having $||A||<|z|$ and also uniform convergence, but don't really know why it is uniformly convergent, and why that means we can interchange the sum and integral.
Any explanation would be appreciated.
Thanks.