Complex Integration by Substitution

Theorem
Let $\left[{a \,.\,.\, b}\right]$ be a closed real interval.

Let $\phi: \left[{a \,.\,.\, b}\right] \to \R$ be a real function which has a derivative on $\left[{a \,.\,.\, b}\right]$.

Let $f: A \to \C$ be a continuous complex function, where $A$ is a subset of the image of $\phi$.

If $\phi \left({a}\right) \le \phi \left({b}\right)$, then:


 * $\displaystyle \int_{\phi \left({a}\right)}^{\phi \left({b}\right)} f \left({t}\right) \, \mathrm d t = \int_a^b f \left({\phi \left({u}\right)}\right) \phi' \left({u}\right) \, \mathrm d u$

If $\phi \left({a}\right) > \phi \left({b}\right)$, then:


 * $\displaystyle \int_{\phi \left({b}\right)}^{\phi \left({a}\right)} f \left({t}\right) \, \mathrm dt = -\int_a^b f \left({\phi \left({u}\right)}\right) \phi' \left({u}\right) ,\ \mathrm d u$

Proof
Let $\operatorname{Re}$ and $\operatorname{Im}$ denote real parts and imaginary parts respectively.

Let $\phi \left({a}\right) \le \phi \left({b}\right)$.

Then:

Let $\phi \left({a}\right) > \phi \left({b}\right)$.

Then: