Answer: D
We can simplify the integrand using Euler's formula, which states that:
cosx+isinx=eix
cosx−isinx=e−ix
Substituting these into the given integral, we get:
I=∫0π/2e−ixeixdx=∫0π/2e2ixdx
Now, we integrate with respect to x:
I=[2ie2ix]0π/2
Substituting the upper and lower limits:
I=2ie2i(π/2)−e0=2ieiπ−1
Using Euler's identity, eiπ=cosπ+isinπ=−1. Substituting this value:
I=2i−1−1=2i−2=−i1
Since i1=−i, we have:
I=−(−i)=i
Therefore, the correct option is D.