(a) Let C be a rectangular contour with vertices at ±R+πi and ±R−πi for some R>0 taken in the anticlockwise direction. By considering
R→∞lim∮Cez/2−e−z/2eiz2/4πdz
show that
R→∞lim∫−RReix2/4πdx=2πeπi/4
(b) By using a semi-circular contour in the upper half plane, calculate
∫0∞x2+a2xsin(πx)dx
for a>0.
[You may use Jordan's Lemma without proof.]