Complex integration

Definition 1 (Integral of a Complex‐valued Function of a Real Variable).
Let h:[a,b]C be a continuous function, and write

h(t)=u(t)+iv(t),

where u,v:[a,b]R are its real and imaginary parts, respectively. The integral of h over [a,b] is defined by

abh(t)dt=abu(t)dt+iabv(t)dt,

where each integral on the right–hand side is the usual real Riemann integral.

Definition 2 (Contour Integral of a Complex Function).
Let γ:[a,b]C be a contour. Let f:AC be continuous on an open set AC containing the image γ([a,b]). The contour integral of f along γ is then defined by

γf(z)dz=k=0n1tktk+1f(γ(t))γ(t)dt,

each term being a standard integral of a continuous function on [tk,tk+1].

Remark
In particular, if γ(t)=t for t[a,b], then γf(z)dz=abf(t)dt.

Visualization

According to @Needham1997Visual, one may equivalently view γf(z)dz as the limit of Riemann–Stieltjes sums

γf(z)dzjf(γ(τj))[γ(tj+1)γ(tj)],

where {a=t0<t1<<tm=b} is a partition of [a,b] and τj[tj,tj+1].
Then, we can visualize the integral as the result of adding the segments [γ(tj+1)γ(tj)] previously amplitwisted by f(γ(τj)). It can be visualized at this webpage.