Problem :
C is a smooth simple closed curve in $\mathbb C$
$g(x)$ is a continuous function on C
$f(z)=\int_C\frac {g(x)}{x-z}dx\quad (z\notin C)$
Show that $f(z)$ is holomorphic in $\mathbb C\setminus C$
My try :
$\lim_{h\to0}\frac{f(z+h)-f(z)}{h} =\lim_{h\to0}\int_C\frac{g(x)}{[x-(z+h)][x-z]}dx=\int_C\lim_{h\to0}\frac{g(x)}{[x-(z+h)][x-z]}dx=\int_C\frac{g(x)}{[x-z]^2}dx$
So $f(z)$ is holomorphic in $\mathbb C\setminus C$.
Is it right? I think I didn't use the fact that C is a smooth simple closed curve and $g(x)$ is continuous.
And I'm not confident about the way I prove $\lim_{h\to0}\int_C\frac{g(x)}{[x-(z+h)][x-z]}dx=\int_C\lim_{h\to0}\frac{g(x)}{[x-(z+h)][x-z]}dx$
I think the interchange of integral and limit is possible by uniformly convergence $\sup_{x\in C}|\frac{g(x)}{[x-(z+h)][x-z]}-\frac{g(x)}{[x-z]^2}|=\sup |g(x)\frac{h}{[x-z]^2[x-(z+h)]}|\le|\frac{\max g(x)}{\min [x-z]^3}||h|$ . So it is uniformly convergent. (I think I used the fact $g(x)$ is continuous here around $\max g(x)$ but, still I think I didn't use the fact that C is a smooth simple closed curve.)
Is my proof correct? Thanks for your reading.