Choose a star centre of the open star-shaped set and define the candidate antiderivative by a straight-segment contour integral:
For each fixed and all sufficiently small , the filled triangle with vertices lies in . Indeed, the compact segment has a neighbourhood of some positive radius contained in the open set , and every point of this triangle lies within of that segment. The zero triangle integral consequently gives
By continuity, the last integral tends to as . Hence
In particular, this proves the existence of the antiderivative without incorrectly assuming the star-shaped set is convex.
On a general domain, the conclusion can fail. Take and . Every filled triangle contained in has zero boundary integral by Cauchy integral theorem, but the unit circle has integral . An antiderivative would make every closed contour integral zero. This is the period obstruction to a holomorphic antiderivative: the local conclusion of Morera's theorem does not remove the global obstruction.
The hypothesis makes star-shaped with centre . For small with the triangle having vertices contained in , the vanishing triangular integral gives
Parametrizing the final segment,
by continuity. Thus is holomorphic and
This is the triangle-integral construction behind Morera's theorem.
Uniform convergence on compact subsets makes continuous. For every triangle whose closure lies in , uniform convergence on its boundary permits passage through the contour integral:
Morera's theorem implies that is holomorphic. If a compact set is surrounded by a finite union of contours at positive distance from , the Cauchy integral formula for derivatives gives
The uniform bound on the surrounding compact set proves that uniformly on .
If had distinct zeros and , choose disjoint small closed discs around them whose boundary contains no zero of . Uniform convergence and Rouché's theorem imply that, for large , has a zero in each disc, contradicting uniqueness of . Thus has at most one zero.
For an example on the unit disc, take
Then , which has no zero in the open disc. In general, Hurwitz's theorem shows that is zero-free exactly when the unique zeros escape every compact subset of :
Indeed, an interior accumulation point of is a zero of , while a zero of forces the unique into each of its sufficiently small neighbourhoods.
A function is holomorphic when it is complex differentiable at every point of the open connected set . Morera's theorem states that a continuous function on a domain is holomorphic if its integral around every triangle whose interior lies in the domain is zero.
The integrand is continuous jointly in on , so the displayed integral defines a continuous function. For any triangle , Fubini's theorem and the Cauchy integral theorem give
Morera's theorem therefore proves that is entire.
The function is holomorphic on but has no antiderivative there, because an antiderivative would integrate to zero around every closed curve whereas
This is the standard period obstruction to a holomorphic antiderivative.