The residue theorem is a powerful tool in complex analysis. It helps in evaluating complex integrals by focusing on the residues of singularities within an integral's path. A residue at a simple pole \(z = a\) of a function \(f(z)\) is calculated as:
- Find the Laurent series expansion of \(f(z)\) around \(a\).
- Identify the coefficient of \(\frac{1}{z-a}\).
Alternatively, for a function expressed as \(f(z) = \frac{g(z)}{(z - a)h(z)}\) near the pole \(z = a\), we can calculate the residue as:
An immediate application of this is:
\[ \text{Res}(f, a) = \frac{g(a)}{h(a)} \]
For example, in the given problem for the function \( \frac{z - 2}{z(1 - z)} \), we found the residues at \( z = 0 \) and \( z = 1 \).
The residue at \(z = 0\) was:
\[\text{Res}\bigg(\frac{z - 2}{z(1 - z)}, 0\bigg) = -2 \]
and at \(z = 1\) was:
\[\text{Res}\bigg(\frac{z - 2}{z(1 - z)}, 1\bigg) = 1 \].