I am stuck on this complex analysis homework problem :( here is my attack so far:
If I integrate around a keyhole contour, I can show that $$\int_0^{\infty}\frac{x^a}{x^2+1}dx=\frac{2\pi i}{1-e^{2a\pi i}}\sum_{w\in\{i,-i\}}RES(\frac{e^{a\log z}}{z^2+1},w).$$ Now, luckily the poles in this integrand are simple, so it's easy enough to find: $$RES(\frac{e^{a\log z}}{z^2+1},i)=\frac{e^{a\pi i/2}}{2i},$$ while $$RES(\frac{e^{a\log z}}{z^2+1},-i)=\frac{-e^{-a\pi i/2}}{2i},$$ and adding these fellas together we get $\sin(a\pi/2)$ by Euler's i.d. So it goes $$\int_0^{\infty}\frac{x^a}{x^2+1}dx=\frac{2\pi i\sin(a\pi/2)}{1-e^{2a\pi i}}.$$ But where to go now? The integral on the left is real, while I have my doubts about the term on the right.
Have I made a mistake, or there's some further trick I don't see? (I'm almost certain it's the former, since I'm an expert at mistakes but an amateur at finding them). Anyways, I would appreciate any help, or advice on this problem. Thanks!