Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2025/paper-2/4/a/solution

The function is entire, so Cauchy's integral theorem makes its contour integral around the rectangle vanish. The lower horizontal integral tends to by the Gaussian integral. On a vertical side , with between and , its modulus is ; hence both vertical integrals tend to zero. The upper side has the opposite orientation and contributes
Consequently the integral in this expression is . Its imaginary part vanishes because is odd, and its real part is twice the positive-half-line integral because the integrand there is even. Therefore
For negative the rectangle lies below the real axis and the same cancellation holds; alternatively use the even dependence on .

New to topics? Read the docs here!