Analytic functions defined by integrals

Suppose I define a function using an integral:

$$f(z)=\int_{\mathbb R} g(z,x)\ dx,$$

where $g$ is some function, $z$ is a complex variable, and $x$ is a real variable. Suppose the integral exists for $z\in U$, where $U$ is some open region. What are sufficient conditions on $g$ so that $f$ is analytic here, and why do they suffice?

I looked in Ahlfors but couldn't find anything relevant.


Solution 1:

It suffices that $g$ is analytic in $z \in U$ for each $x\in {\mathbb R}$ and $\int_{\mathbb R} |g(z,x)|\ dx$ is locally uniformly bounded on compact subsets of $U$. For then if $\Gamma$ is any closed triangle in $U$, Fubini's theorem says $\oint_\Gamma f(z) \ dz = \int_{\mathbb R} \oint_\Gamma g(z,x)\ dz\; dx = 0$, and Morera's theorem says $f$ is analytic in $U$.

EDIT: I guess we'd better also assume that $g(z,x)$ is measurable.