Title: Cauchy Residue Theorem with Applications