Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2022/paper-2/4/b/ii/solution

For this real integral choose , so the upper bank of the positive real axis has . Use a counterclockwise keyhole contour with inner radius and outer radius , enclosing . The upper-bank contribution tends to . On the lower bank, , and the reversed orientation makes its contribution .
The large arc is because , while the small arc is . Both vanish, giving
The residues on this branch are
The residue theorem yields
Therefore
The branch cut in (a) was arbitrary; here placing it on the integration axis makes the bank contributions directly proportional to the desired positive-real integral.

New to topics? Read the docs here!