GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 31

Complex-exponential integral

Engineering Mathematics & Other Topics · Calculus · Full GATE CSE 2011 paper

GATE 2011, Q31 2 marks · MCQ
Report issue

Calculus

Question 31, GATE 2011: For i=√(-1), evaluate the definite integral from 0 to π/2 of (cos x+i sin x)/(cos x-i sin x) dx.

(A) 0
(B) 2
(C) -i
(D) i
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Euler’s formula gives(cos x+i sin x)/(cos x−i sin x)=e2ix. Integrating from 0 toπ/2 gives[e2ix/(2i)]_0π/2=(−1−1)/(2i)=i, D.

The denominator e-ix is never zero for real x, so the quotient simplification is valid throughout the interval. An alternative real-imaginary check is to integrate cos(2x)+i sin(2x). The cosine integral is [sin(2x)/2] from 0 to π/2, hence zero; the sine integral is [-cos(2x)/2] over the same limits, hence one. The result therefore has real part zero and imaginary part one, confirming the sign of i.

Original paper, page 8 · Answer key