OK, you asked for it.
Let's integrate the function

around the rectangular contour

with vertices at

,

,

and

in the complex plane , indented at

and at

with quarter circles of radius

.

is analytic inside and on

and so

. This leads to

where

represents the integral around the indentation at

. Simplify, simplify...
(*)

where

.
It's easy to show that

as

irrespective of the value of

, and by the indentation theorem,

and

.
Obviously we have a problem letting

tend to zero in the first two terms of (*). The key observation here is the identity

. So we change

to

in (*) to get

.
Now changing

to

in the second integral yields

, and dividing by

gives
(**)


.
Are you still watching this? Good. Now add (*) and (**) to see what happens. Don't forget the identity!

Before rigour mortis sets in we should let

and

to arrive at these equations:

The second term on the left is

, so finally we have full view of the answer:

.
Isn't Cauchy wonderful?
You can see how much easier the series method is. I'm off for a nice cup of tea.