Antiderivative (complex analysis)
In complex analysis, a branch of mathematics, the antiderivative, or primitive, of a complexvalued function g is a function whose complex derivative is g. More precisely, given an open set in the complex plane and a function the antiderivative of is a function that satisfies .
Mathematical analysis → Complex analysis 
Complex analysis 

Complex numbers 
Complex functions 
Basic Theory 
Geometric function theory 
People 

As such, this concept is the complexvariable version of the antiderivative of a realvalued function.
Uniqueness
The derivative of a constant function is the zero function. Therefore, any constant function is an antiderivative of the zero function. If is a connected set, then the constant functions are the only antiderivatives of the zero function. Otherwise, a function is an antiderivative of the zero function if and only if it is constant on each connected component of (those constants need not be equal).
This observation implies that if a function has an antiderivative, then that antiderivative is unique up to addition of a function which is constant on each connected component of .
Existence
One can characterize the existence of antiderivatives via path integrals in the complex plane, much like the case of functions of a real variable. Perhaps not surprisingly, g has an antiderivative f if and only if, for every γ path from a to b, the path integral
Equivalently,
for any closed path γ.
However, this formal similarity notwithstanding, possessing a complexantiderivative is a much more restrictive condition than its real counterpart. While it is possible for a discontinuous real function to have an antiderivative, antiderivatives can fail to exist even for holomorphic functions of a complex variable. For example, consider the reciprocal function, g(z) = 1/z which is holomorphic on the punctured plane C\{0}. A direct calculation shows that the integral of g along any circle enclosing the origin is nonzero. So g fails the condition cited above. This is similar to the existence of potential functions for conservative vector fields, in that Green's theorem is only able to guarantee path independence when the function in question is defined on a simply connected region, as in the case of the Cauchy integral theorem.
In fact, holomorphy is characterized by having an antiderivative locally, that is, g is holomorphic if for every z in its domain, there is some neighborhood U of z such that g has an antiderivative on U. Furthermore, holomorphy is a necessary condition for a function to have an antiderivative, since the derivative of any holomorphic function is holomorphic.
Various versions of Cauchy integral theorem, an underpinning result of Cauchy function theory, which makes heavy use of path integrals, gives sufficient conditions under which, for a holomorphic g,
vanishes for any closed path γ (which may be, for instance, that the domain of g be simply connected or starconvex).
Necessity
First we show that if f is an antiderivative of g on U, then g has the path integral property given above. Given any piecewise C^{1} path γ : [a, b] → U, one can express the path integral of g over γ as
By the chain rule and the fundamental theorem of calculus one then has
Therefore, the integral of g over γ does not depend on the actual path γ, but only on its endpoints, which is what we wanted to show.
Sufficiency
Next we show that if g is holomorphic, and the integral of g over any path depends only on the endpoints, then g has an antiderivative. We will do so by finding an antiderivative explicitly.
Without loss of generality, we can assume that the domain U of g is connected, as otherwise one can prove the existence of an antiderivative on each connected component. With this assumption, fix a point z_{0} in U and for any z in U define the function
where γ is any path joining z_{0} to z. Such a path exists since U is assumed to be an open connected set. The function f is welldefined because the integral depends only on the endpoints of γ.
That this f is an antiderivative of g can be argued in the same way as the real case. We have, for a given z in U, that there must exist a disk centred on z and contained entirely within U. Then for every w other than z within this disk
where [z, w] denotes the line segment between z and w. By continuity of g, the final expression goes to zero as w approaches z. In other words, f′ = g.
References
 Ian Stewart, David O. Tall (Mar 10, 1983). Complex Analysis. Cambridge University Press. ISBN 0521287634.
 Alan D Solomon (Jan 1, 1994). The Essentials of Complex Variables I. Research & Education Assoc. ISBN 087891661X.