How to calculate the following integral: $$\int_0^{2\pi}d\phi \, e^{i(n_2-n_1)\phi}$$ Making the substitution $z=e^{i\phi}$, I obtained $$-i\oint_{|z|=1} \frac{dz}{z} \, z^{(n_2-n_1)}$$ I can imagine that you have to use the residues but I don't know how to do.
2026-03-26 14:22:45.1774534965
$I=-i\oint \frac{dz}{z} \, z^{(n_1-n_2)}$
54 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
Hint. The integrand function has a pole at $0$. The residue at $0$ is $2\pi i$ if $n_1=n_2$, otherwise it is zero.
P.S. What is integrating path?