Theorem (converse of fundamental theorem of calculus)
Let $U\subseteq \C$ be a domain and $f$ be continuous on $U$.
If either
-
$\oint_γ f=0$ for every closed curve $γ$ in $U$; or
-
$U$ is starlike and $\oint_{\partial T} f = 0$ for every triangle $T$ in $U$,
then $f$ has an antiderivative, i.e. there exists a holomorphic function $F$ on $U$ such that $F'=f$.