← 2021 Paper 2
UPSC 2021 Maths Optional Paper 2 Q4b — Step-by-Step Solution
20 marks · Section A
Contour integration of real integrals using residues · Complex Analysis · asked 9× in 13 yrs · Read the full method →
Question
Using contour integration, evaluate ∫−∞∞x(x2+a2)sinxdx, a>0.
Technique
Indented contour to handle 1/x at origin; residue at ia in upper half-plane; small-semicircle contribution = −πi⋅Res at simple pole.
Solution
Strategy. sinx=ℑeix. Consider ∫Cz(z2+a2)eizdz on contour avoiding pole at z=0 (semicircular indent).
Step 1 — Contour setup
C= real axis from −R to −ϵ, small semicircle (above) from −ϵ to ϵ, real axis from ϵ to R, large semicircle (above) from R back to −R.
Poles of integrand f(z)=z(z2+a2)eiz=z(z−ia)(z+ia)eiz:
- z=0: simple (avoided by small indent).
- z=ia: simple (inside contour).
- z=−ia: simple (outside contour).
Step 2 — Residues
Resz=iaf=ia⋅(2ia)ei⋅ia=−2a2e−a.
Resz=0f=(0−ia)(0+ia)e0=a21.
Step 3 — Apply residue theorem with indentation
∫Cfdz=∫−R−ϵ+∫small+∫ϵR+∫large=2πi⋅Resz=iaf.
Large semicircle: by Jordan’s lemma, →0 as R→∞.
Small semicircle around z=0: classical result: the integral along a small semicircle of radius ϵ around a simple pole, in the upper half-plane (going CCW from −ϵ to ϵ, passing through ϵeiπ/2⋅ wait the standard indented contour goes above the singularity, traversing θ=π→0):
The small semicircle traversed from −ϵ to +ϵ in upper half-plane means θ goes from π to 0 (clockwise as viewed). So the integral contributes −πi⋅Resz=0f=−πi⋅1/a2.
Step 4 — Combine
∫−∞∞f(x)dx−πi/a2+0=2πi⋅e−a/(−2a2)=−πie−a/a2.
So ∫−∞∞f(x)dx=πi/a2−πie−a/a2=a2πi(1−e−a).
Step 5 — Take imaginary part
∫−∞∞x(x2+a2)sinxdx=ℑ[a2πi(1−e−a)]=a2π(1−e−a).
Answer
∫−∞∞x(x2+a2)sinxdx=a2π(1−e−a).