.

Instead we will do,

Because the function is even.

Now define the complex-valued function,

.

The singularities of this function occur when . Since there are infinitely many such values we cannot use the semi-circular contour. Let us use a rectangular contour: .

Can you finish?