← 2023 Paper 2
UPSC 2023 Maths Optional Paper 2 Q2c — 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
Evaluate ∫02π5+4cosθcos2θdθ using contour integration.
Technique
z=eiθ substitution + residue theorem; the integrand has a double pole at the origin requiring a derivative.
Solution
Strategy. Standard z=eiθ substitution converts the integral to a contour integral on the unit circle ∣z∣=1, then apply the residue theorem.
Step 1 — Substitute. With z=eiθ, dθ=izdz,
cosθ=21(z+z−1),cos2θ=21(z2+z−2).
Rewriting:
5+4cosθ=5+2(z+z−1)=z2z2+5z+2=z(2z+1)(z+2),
cos2θ=2z2z4+1.
Therefore
I=∮∣z∣=1(2z+1)(z+2)/z(z4+1)/(2z2)⋅izdz=∮∣z∣=12iz2(2z+1)(z+2)z4+1dz.
Step 2 — Locate poles.
The integrand Φ(z)=2iz2(2z+1)(z+2)z4+1 has singularities at z=0 (double), z=−21 (simple), z=−2 (simple). Inside ∣z∣=1: only z=0 and z=−21.
Step 3 — Residue at z=−21 (simple).
z=−1/2ResΦ=z→−1/2lim(z+21)Φ(z)=2iz2⋅2⋅(z+2)z4+1z=−1/2.
Numerator: (−21)4+1=161+1=1617.
Denominator: 2i⋅41⋅2⋅23=23i.
z=−1/2ResΦ=3i/217/16=24i17=−2417i.
(Note: the (2z+1) factor contributes a derivative of 2, hence the ⋅2 in the denominator.)
Step 4 — Residue at z=0 (double pole).
For a pole of order 2,
z=0ResΦ=z→0limdzd[z2Φ(z)]=dzd[h(z)]z=0,h(z)=2i(2z+1)(z+2)z4+1.
Let H(z)=(2z+1)(z+2)z4+1, so h=H/(2i). At z=0: H(0)=1⋅21=21. By the quotient rule
H′(z)=[(2z+1)(z+2)]24z3(2z+1)(z+2)−(z4+1)[2(z+2)+(2z+1)].
At z=0: numerator =0−1⋅[4+1]=−5, denominator =(1⋅2)2=4, so H′(0)=−45. Hence
z=0ResΦ=2iH′(0)=2i−5/4=8i−5=85i.
Step 5 — Apply residue theorem.
I=2πi(z=−1/2Res+z=0Res)=2πi(−2417i+85i)=2πi(24−17+15i)=2πi⋅24−2i=244π=6π.
Answer
∫02π5+4cosθcos2θdθ=6π.