To compute an integral of the form
|
(1)
|
complete the square in the denominator to obtain
|
(2)
|
Let . Then define
|
(3)
|
where
|
(4)
|
is the negative of the polynomial discriminant. If , then
|
(5)
|
Now use partial fraction decomposition,
|
(6)
|
|
(7)
|
so
and
. Plugging these in,
|
(8)
|
for . Note that this integral is also tabulated in
Gradshteyn and Ryzhik (2000, equation 2.172), where it is given with a sign flipped.