Write f(z)=u(x,y)+iv(x,y). Complex differentiability imposes u_x=v_y and u_y=−v_x; with continuous first partials locally, the Cauchy–Riemann equations establish analyticity there. They differ from real differentiability of a two-coordinate map. The conjugate function x−iy fails these equations on every open neighbourhood, although real partial derivatives exist. State the region being checked, not only a convenient point.
An analytic function is complex differentiable throughout a neighbourhood and has a local convergent power series. A removable singularity can be filled analytically when the function is bounded near the missing point. A pole has a finite principal part in its Laurent series; an essential singularity has infinitely many negative-power terms. The residue is the coefficient of (z−a)⁻¹, not necessarily the leading or largest negative-power term.
For an isolated pole of order m, write f(z)=g(z)/(z−a)^m with g analytic at a. The residue is g^(m−1)(a)/(m−1)!. A simple pole uses g(a); a double pole uses g′(a). This follows by expanding g into its Taylor series. Thus e^z/(z−a)² has residue e^a, while a constant numerator over a pure double pole has zero residue. The pole order alone does not determine the contour integral.
For a positively oriented contour enclosing isolated singularities, the residue theorem gives ∮f(z)dz=2πi times the sum of enclosed residues, provided the function is analytic on the contour and elsewhere in the required interior. Reversing orientation changes the sign. Cauchy’s derivative formula is ∮g(z)/(z−a)^(m+1)dz=2πi g^(m)(a)/m! under its analytic-domain hypotheses. A singularity on the contour prevents direct application; a singularity outside contributes nothing to this contour.