Calculus

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.