Edit: sorry, figured it out: I should have been expecting the coefficients to have an imaginary part

Hi, I am doing some revision and am trying to find the fourier series for the exponential function between and . I am fairly sure all the coefficients should be real but I keep getting stuck with an imaginary part.

Please tell me where I am wrong:

where

Thanks a lot