Theorem (integral of holomorphic function along closed triangle vanishes)
Let $U$ be a domain.
If $f: U\to \C$ is either
-
holomorphic on $U$; or
-
continuous on $U$, and holomorphic on $U$ possibly except finitely many points,
then for any triangle $T\subseteq U$, $$ \begin{align*} \oint_{\partial T} f = 0. \end{align*} $$