The map h↦∫Rhgεdx defines a linear function on C0(R), i.e., the closure of compactly supported continuous functions on R. Thus, we may view {gε}ε⊆(C0(R))∗, the space of Radon measures. We wish to apply Banach-Alaoglu, so we need to show that ∥gε∥(C0(R))∗ is uniformly bounded.
Write z=x+iy. For ε>0, consider the contour γ, which is an upper semicircle centered at x+iε of radius R. Notice that if 0<ε<y<R, then z is in the interior of γ and z+2iε is outside. Then by the Cauchy integral formula,
Sending y→∞ and applying dominated convergence, we see ∫Rgε(t)dt≤1. Thus, {gε}ε is uniformly bounded, so by Banach-Alaoglu and taking ε=n1, we get a subsequence gnk which converges weakly to a Radon measure μ. In particular, x−z1∈C0(R), so by weak convergence,
∫Rx−zgnk(x)dxk→∞∫Rx−zdμ(x),
which gives the representation
f(z)=∫Rx−zdμ(x)+iC.
Notice that if z=iy, then ∣∣x−iyy∣∣=x2+y2y is bounded. Since μ is a finite measure, we see that x−z1∈L1(R,μ), is dominated by 1, so by dominated convergence,
n→∞lim∫Rx−iyydμ(x)=−i1μ(R)=iμ(R).
If C=0, then yf(iy) would be unbounded, which implies that C=0. Thus,