This series was inspired by a question that my wife asked me: calculate

Originally, I multiplied the top and bottom of the integrand by

and performed a substitution. However, as I’ve discussed in this series, there are four different ways that this integral can be evaluated.
Starting with today’s post, I’ll begin a fifth method. I really like this integral, as it illustrates so many different techniques of integration as well as the trigonometric tricks necessary for computing some integrals.




,
where
is the contour in the complex plane shown below (graphic courtesy of Mathworld).
Amazingly, contour integrals can be simply computed by evaluating the residues at every pole located inside of the contour. (See Wikipedia and Mathworld for more details.) I handled the case of
in yesterday’s post. Today, I’ll begin the case of
.
To find the poles of the integrand, I use the quadratic formula to set the denominator equal to zero:






As shown earlier in this series, the right-hand side is negative if
. So, for the sake of simplicity, I’ll define
,
,
so that the four poles of the integrand are
,
,
, and
. Of these, only two (
and
) lie within the contour for sufficiently large
, and so I’ll need to compute the residues for these two poles.
Before starting that task, I notice that
,
or
,
or
.
Matching coefficients, I see that
,
.
These will become very handy later in the calculation.
The integrand has the form
, and each pole has order one. As shown earlier in this series, the residue at such pole is equal to
.
In this case,
and
so that
, and so the residue at
and
are given by
![\displaystyle \frac{2(1+[ir_1]^2)}{4 [ir_1]^3 + 2(4b^2-2) [ir_1]} = \displaystyle \frac{-i(1-r_1^2)}{-2r_1^3 + (4b^2-2) r_1}](https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B2%281%2B%5Bir_1%5D%5E2%29%7D%7B4+%5Bir_1%5D%5E3+%2B+2%284b%5E2-2%29+%5Bir_1%5D%7D+%3D+%5Cdisplaystyle+%5Cfrac%7B-i%281-r_1%5E2%29%7D%7B-2r_1%5E3+%2B+%284b%5E2-2%29+r_1%7D&bg=ffffff&fg=000000&s=0&c=20201002)
and
![\displaystyle \frac{2(1+[ir_2]^2)}{4 [ir_2]^3 + 2(4b^2-2) [ir_2]} = \displaystyle \frac{-i(1-r_2^2)}{-2r_2^3 + (4b^2-2) r_2}](https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B2%281%2B%5Bir_2%5D%5E2%29%7D%7B4+%5Bir_2%5D%5E3+%2B+2%284b%5E2-2%29+%5Bir_2%5D%7D+%3D+%5Cdisplaystyle+%5Cfrac%7B-i%281-r_2%5E2%29%7D%7B-2r_2%5E3+%2B+%284b%5E2-2%29+r_2%7D&bg=ffffff&fg=000000&s=0&c=20201002)
Finally, to evaluate the contour integral, I simply the sum of the residues within the contour and then multiply the sum by
:
![Q = \displaystyle \lim_{R \to \infty} \oint_{C_R} \frac{ 2(1+z^2) dz}{z^4 + (4 b^2 - 2) z^2 + 1} = 2\pi i \left[\frac{-i(1-r_1^2)}{-2r_1^3 + (4b^2-2) r_1} +\frac{-i(1-r_2^2)}{-2r_2^3 + (4b^2-2) r_2} \right]](https://s0.wp.com/latex.php?latex=Q+%3D+%5Cdisplaystyle+%5Clim_%7BR+%5Cto+%5Cinfty%7D+%5Coint_%7BC_R%7D+%5Cfrac%7B+2%281%2Bz%5E2%29+dz%7D%7Bz%5E4+%2B+%284+b%5E2+-+2%29+z%5E2+%2B+1%7D+%3D+2%5Cpi+i+%5Cleft%5B%5Cfrac%7B-i%281-r_1%5E2%29%7D%7B-2r_1%5E3+%2B+%284b%5E2-2%29+r_1%7D+%2B%5Cfrac%7B-i%281-r_2%5E2%29%7D%7B-2r_2%5E3+%2B+%284b%5E2-2%29+r_2%7D+%5Cright%5D&bg=ffffff&fg=000000&s=0&c=20201002)
![= 2\pi \displaystyle \left[ \frac{1-r_1^2}{-2r_1^3 + (4b^2-2) r_1} +\frac{1-r_2^2}{-2r_2^3 + (4b^2-2) r_2} \right]](https://s0.wp.com/latex.php?latex=%3D+2%5Cpi+%5Cdisplaystyle+%5Cleft%5B+%5Cfrac%7B1-r_1%5E2%7D%7B-2r_1%5E3+%2B+%284b%5E2-2%29+r_1%7D+%2B%5Cfrac%7B1-r_2%5E2%7D%7B-2r_2%5E3+%2B+%284b%5E2-2%29+r_2%7D+%5Cright%5D&bg=ffffff&fg=000000&s=0&c=20201002)
So, to complete the evaluation of
, I’m left with the small matter of simplifying the right-hand side. I’ll tackle this in tomorrow’s post.