Theorem (integral of holomorphic function along closed triangle vanishes)

Let $U$ be a domain.

If $f: U\to \C$ is either

then for any triangle $T\subseteq U$, $$ \begin{align*} \oint_{\partial T} f = 0. \end{align*} $$

Proof