Defining a residue at a singular point and using the residue value to compute complex integrals.