Question

Given i=−1i = \sqrt{-1}, what will be the evaluation of the definite integral

∫0π/2cos⁡x+isin⁡xcos⁡x−isin⁡x dx ?\int_0^{\pi/2} \frac{\cos x + i \sin x}{\cos x - i \sin x} \, dx\text{ ?}
Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2011 answer key

Solution

Simplify the integrand using Euler's formula eix=cos⁡x+isin⁡xe^{ix} = \cos x + i \sin x and integrate.

  1. By Euler's formula, the numerator is cos⁡x+isin⁡x=eix\cos x + i \sin x = e^{ix} and the denominator is cos⁡x−isin⁡x=e−ix\cos x - i \sin x = e^{-ix}.
  1. The integrand simplifies to:
cos⁡x+isin⁡xcos⁡x−isin⁡x=eixe−ix=e2ix\frac{\cos x + i \sin x}{\cos x - i \sin x} = \frac{e^{ix}}{e^{-ix}} = e^{2ix}
  1. Evaluate the definite integral from 00 to π/2\pi/2:
∫0π/2e2ix dx=[e2ix2i]0π/2=e2i(π/2)−e02i=eiπ−12i\int_0^{\pi/2} e^{2ix} \, dx = \left[ \frac{e^{2ix}}{2i} \right]_0^{\pi/2} = \frac{e^{2i(\pi/2)} - e^0}{2i} = \frac{e^{i\pi} - 1}{2i}
  1. Since eiπ=−1e^{i\pi} = -1:
−1−12i=−22i=−1i=−(−i)=i\frac{-1 - 1}{2i} = \frac{-2}{2i} = -\frac{1}{i} = -(-i) = i
Final answer

D

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2011 Computer Science and Information Technology (CS)
Question
31 of 65, printed as CS Q.31
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.