I don't know Cauchy's integral formula and the book I'm learning complex analysis from asks to prove $\int_{\gamma} \frac{1}{(z-a)(z-b)} dz = 2\pi i$ where $\gamma$ is a circle centered at origin with radios $|a| < R < |b|$.
The complex integral of $f(z)$ over a path $\gamma$ parametrized by $\tau(t), t \in I \subset \mathbb{R}$ is defined as $\int_I f(\tau(t)) \tau'(t) dt$
Here's my progress: So we parametrize $\gamma$ as $\tau(\theta) = Re^{i \theta}, \theta \in [0, 2 \pi]$. Using the identity $\frac{1}{(z-a)(z-b)} = \frac{1}{b-a} [ \frac{1}{z-a} - \frac{1}{z-b}]$, we integrate each part separately. $\int_{\gamma} \frac{1}{z-a} dz = \int_{0}^{2 \pi} \frac{Rie^{i \theta} d\theta}{Re^{i \theta} - a}$. Now I don't know how to evaluate it.
If this was real, i.e to integrate $\int_{0}^{2\pi} \frac{Re^\theta d \theta}{Re^\theta - 1}$, I would just substitute $u = Re^{\theta} - 1$, then the integral is $\int_{R-1}^{Re^{2\pi} - 1} \frac{du}{u} = \ln(\frac{Re^{2\pi} - 1}{R-1})$, but then several problems arise when I try to mimmick that appraoch:
-- In this if you substitute $u = Re^{i \theta} - 1$ case both upper and lower limits are same ! Maybe this can be fixed by integrating $\int_{0}^{2\pi - \epsilon} \frac{Re^\theta d \theta}{Re^\theta - 1}$ and letting $\epsilon \rightarrow 0$, but I'm not sure whether thta would give the correct answer (because as long as $\epsilon \neq 0$ the path is a not a proper loop)
-- Even if you ignore the issue of the limits, why $\int_{a}^{b} \frac{1}{u(t)} u'(t) dt$ should be equal to $\ln(b) - \ln(a)$ when $a,b$ are complex ? Also which value of $\ln(a)$ hsould be taken and why not the other values ?
Hint:
$$\int_{\gamma} \frac{1}{z-a} dz = \int_{0}^{2 \pi} \frac{iRe^{i\theta}d\theta}{Re^{i \theta} - a}= i\int_{0}^{2 \pi} \frac{d\theta}{1 - \frac aR e^{-i \theta}}\\ =i\int_{0}^{2 \pi}\sum_{k=0}^\infty \left(\frac aR e^{-i \theta}\right)^k d\theta =i\sum_{k=0}^\infty \int_{0}^{2 \pi}\left(\frac aR e^{-i \theta}\right)^k d\theta =2\pi i;$$
$$\int_{\gamma} \frac{1}{z-b} dz = \int_{0}^{2 \pi} \frac{iRe^{i\theta}d\theta}{Re^{i \theta} - b}= -i\int_{0}^{2 \pi}\frac{e^{i \theta}}b \frac{d\theta}{1 - \frac Rb e^{i \theta}}\\ =-i\int_{0}^{2 \pi}\frac{e^{i \theta}}b\sum_{k=0}^\infty \left(\frac Rb e^{i \theta}\right)^k d\theta =-\frac iR\sum_{k=0}^\infty \int_{0}^{2 \pi}\left(\frac Rb e^{i \theta}\right)^{k+1}d\theta =0,$$
where we used: $$ \int_{0}^{2 \pi} e^{i k\theta}d\theta=2\pi\delta_{k0}. $$