Originally, my wife had asked me to compute this integral by hand because Mathematica 4 and Mathematica 8 gave different answers. At the time, I eventually obtained the solution by multiplying the top and bottom of the integrand by

and then employing the substitution

(after using trig identities to adjust the limits of integration).
But this wasn’t the only method I tried. Indeed, I tried two or three different methods before deciding they were too messy and trying something different. So, for the rest of this series, I’d like to explore different ways that the above integral can be computed.

Previously in this series, I have used two different techniques to show that

Originally, my wife had asked me to compute this integral by hand because Mathematica 4 and Mathematica 8 gave different answers. At the time, I eventually obtained the solution by multiplying the top and bottom of the integrand by

and then employing the substitution

(after using trig identities to adjust the limits of integration).
But this wasn’t the only method I tried. Indeed, I tried two or three different methods before deciding they were too messy and trying something different. So, for the rest of this series, I’d like to explore different ways that the above integral can be computed.

Here’s my progress so far:





,
where this last integral is taken over the complex plane on the unit circle, a closed contour oriented counterclockwise. In these formulas,
and
. (Also,
is a certain angle that is now irrelevant at this point in the calculation).
This contour integral looks complicated; however, it’s an amazing fact that integrals over closed contours can be easily evaluated by only looking at the poles of the integrand. In recent posts, I established that there was only one pole inside the contour, and the residue at this pole was equal to
.
This residue can be used to evaluate the contour integral. Ordinarily, integrals are computed by subtracting the values of the antiderivative at the endpoints. However, there is an alternate way of computing a contour integral using residues. It turns out that the value of the contour integral is
times the sum of the residues within the contour; see Wikipedia and Mathworld for more information.
Therefore,



Next, I use some algebra to simplify the denominator:

![S^2 - R^2 = [(1 + a^2 + b^2) + (1-a^2-b^2)][(1 + a^2 + b^2) - (1 - a^2 -b^2)] - 4a^2](https://s0.wp.com/latex.php?latex=S%5E2+-+R%5E2+%3D+%5B%281+%2B+a%5E2+%2B+b%5E2%29+%2B+%281-a%5E2-b%5E2%29%5D%5B%281+%2B+a%5E2+%2B+b%5E2%29+-+%281+-+a%5E2+-b%5E2%29%5D+-+4a%5E2&bg=ffffff&fg=000000&s=0&c=20201002)
![S^2 - R^2 = 2[2 a^2 + 2b^2] - 4a^2](https://s0.wp.com/latex.php?latex=S%5E2+-+R%5E2+%3D+2%5B2+a%5E2+%2B+2b%5E2%5D+-+4a%5E2&bg=ffffff&fg=000000&s=0&c=20201002)

Therefore,

Once again, this matches the solution found with the previous methods… and I was careful to avoid a common algebraic mistake.
In tomorrow’s post, I’ll discuss an alternative way of computing the residue.
One thought on “How I Impressed My Wife: Part 4f”