Solving Tricky Integrals: A Contour Integration Guide

by Andrew McMorgan 54 views

Hey guys! Today, we're diving deep into the fascinating world of complex analysis to tackle a tricky integral. Specifically, we're going to break down how to solve:

0ln(x)x22ix2dx\int_{0}^\infty \frac{\ln(x)}{x^2-2ix-2} dx

using the magic of contour integration. Buckle up, because this is going to be a fun ride!

Setting Up the Keyhole Contour

Alright, so the first thing we need to do is set up our keyhole contour. If you're scratching your head, don't worry! A keyhole contour is just a fancy way of saying we're going to integrate around a path in the complex plane that looks like a keyhole. The main idea is to avoid the branch cut of the logarithm, which typically lies along the positive real axis.

Here's how we define our contour Γ\Gamma: It consists of four parts:

  1. CRC_R: A large circle of radius RR centered at the origin.
  2. CrC_r: A small circle of radius rr centered at the origin.
  3. L1L_1: A line segment along the positive real axis from rr to RR, just above the axis.
  4. L2L_2: A line segment along the positive real axis from RR to rr, just below the axis.

So, we have:

Γf(z)dz=CRf(z)dz+L1f(z)dz+Crf(z)dz+L2f(z)dz\oint_{\Gamma} f(z) dz = \int_{C_R} f(z) dz + \int_{L_1} f(z) dz + \int_{C_r} f(z) dz + \int_{L_2} f(z) dz

where

f(z)=ln(z)z22iz2f(z) = \frac{\ln(z)}{z^2 - 2iz - 2}

Why this particular contour? Because the logarithm function ln(z)\ln(z) is multi-valued, and we need to choose a specific branch to make it well-defined. The keyhole contour allows us to isolate the integral we want while dealing with the branch cut in a controlled manner. The logarithmic function's principal branch is defined as ln(z)=lnz+iarg(z)\ln(z) = \ln|z| + i \arg(z), where 0<arg(z)<2π0 < \arg(z) < 2\pi around the contour.

Poles of the Integrand

Before we proceed, let's find the poles of our integrand. These are the values of zz for which the denominator is zero:

z22iz2=0z^2 - 2iz - 2 = 0

Using the quadratic formula, we get:

z=2i±(2i)24(1)(2)2=2i±4+82=i±1=i±2z = \frac{2i \pm \sqrt{(-2i)^2 - 4(1)(-2)}}{2} = \frac{2i \pm \sqrt{-4 + 8}}{2} = i \pm \sqrt{1} = i \pm \sqrt{2}

So our poles are z1=i+2z_1 = i + \sqrt{2} and z2=i2z_2 = i - \sqrt{2}. Notice that only z1=i+2z_1 = i + \sqrt{2} lies within our contour (in the upper half-plane).

Evaluating the Integrals

Now comes the fun part: evaluating the integrals along each part of the contour.

Integral along CRC_R

We need to show that limRCRf(z)dz=0\lim_{R \to \infty} \int_{C_R} f(z) dz = 0. Let z=Reiθz = Re^{i\theta}, so ln(z)=ln(R)+iθ\ln(z) = \ln(R) + i\theta. Then:

CRln(z)z22iz2dz02πln(R)+iθR2e2iθ2iReiθ2Rdθ\left| \int_{C_R} \frac{\ln(z)}{z^2 - 2iz - 2} dz \right| \leq \int_{0}^{2\pi} \frac{\left| \ln(R) + i\theta \right|}{\left| R^2e^{2i\theta} - 2iRe^{i\theta} - 2 \right|} R d\theta

As RR \to \infty, the integral goes to zero because the denominator grows faster than the numerator. Thus, this integral vanishes.

Integral along CrC_r

Similarly, we need to show that limr0Crf(z)dz=0\lim_{r \to 0} \int_{C_r} f(z) dz = 0. Let z=reiθz = re^{i\theta}, so ln(z)=ln(r)+iθ\ln(z) = \ln(r) + i\theta. Then:

Crln(z)z22iz2dz02πln(r)+iθr2e2iθ2ireiθ2rdθ\left| \int_{C_r} \frac{\ln(z)}{z^2 - 2iz - 2} dz \right| \leq \int_{0}^{2\pi} \frac{\left| \ln(r) + i\theta \right|}{\left| r^2e^{2i\theta} - 2ire^{i\theta} - 2 \right|} r d\theta

As r0r \to 0, the integral goes to zero because rln(r)r \ln(r) approaches zero faster than the denominator approaches a constant. Thus, this integral also vanishes.

Integral along L1L_1

Along L1L_1, z=xz = x, so ln(z)=ln(x)\ln(z) = \ln(x). Thus:

L1ln(x)x22ix2dx=rRln(x)x22ix2dx\int_{L_1} \frac{\ln(x)}{x^2 - 2ix - 2} dx = \int_{r}^{R} \frac{\ln(x)}{x^2 - 2ix - 2} dx

Integral along L2L_2

Along L2L_2, z=xz = x, but we're just below the real axis. Since we're using the keyhole contour, ln(z)=ln(x)+2πi\ln(z) = \ln(x) + 2\pi i. Thus:

L2ln(z)z22iz2dz=rRln(x)+2πix22ix2dx\int_{L_2} \frac{\ln(z)}{z^2 - 2iz - 2} dz = -\int_{r}^{R} \frac{\ln(x) + 2\pi i}{x^2 - 2ix - 2} dx

Applying the Residue Theorem

Now we use the Residue Theorem:

Γf(z)dz=2πiRes(f,z1)\oint_{\Gamma} f(z) dz = 2\pi i \operatorname{Res}(f, z_1)

where z1=i+2z_1 = i + \sqrt{2}.

Calculating the Residue

Since z1z_1 is a simple pole, we have:

Res(f,z1)=limzz1(zz1)ln(z)z22iz2=limzz1(zz1)ln(z)(zz1)(zz2)=ln(z1)z1z2\operatorname{Res}(f, z_1) = \lim_{z \to z_1} (z - z_1) \frac{\ln(z)}{z^2 - 2iz - 2} = \lim_{z \to z_1} \frac{(z - z_1) \ln(z)}{(z - z_1)(z - z_2)} = \frac{\ln(z_1)}{z_1 - z_2}

We know z1=i+2z_1 = i + \sqrt{2} and z2=i2z_2 = i - \sqrt{2}, so z1z2=22z_1 - z_2 = 2\sqrt{2}. Thus:

Res(f,z1)=ln(i+2)22\operatorname{Res}(f, z_1) = \frac{\ln(i + \sqrt{2})}{2\sqrt{2}}

Now, ln(i+2)=ln((2)2+12)+iarctan(12)=12ln(3)+iarctan(12)\ln(i + \sqrt{2}) = \ln(\sqrt{(\sqrt{2})^2 + 1^2}) + i \arctan(\frac{1}{\sqrt{2}}) = \frac{1}{2} \ln(3) + i \arctan(\frac{1}{\sqrt{2}}). Therefore:

Res(f,z1)=12ln(3)+iarctan(12)22=ln(3)42+iarctan(12)22\operatorname{Res}(f, z_1) = \frac{\frac{1}{2} \ln(3) + i \arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}} = \frac{\ln(3)}{4\sqrt{2}} + i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}}

Putting It All Together

We have:

Γf(z)dz=L1f(z)dz+L2f(z)dz=2πiRes(f,z1)\oint_{\Gamma} f(z) dz = \int_{L_1} f(z) dz + \int_{L_2} f(z) dz = 2\pi i \operatorname{Res}(f, z_1)

Substituting the integrals along L1L_1 and L2L_2:

rRln(x)x22ix2dxrRln(x)+2πix22ix2dx=2πi(ln(3)42+iarctan(12)22)\int_{r}^{R} \frac{\ln(x)}{x^2 - 2ix - 2} dx - \int_{r}^{R} \frac{\ln(x) + 2\pi i}{x^2 - 2ix - 2} dx = 2\pi i \left( \frac{\ln(3)}{4\sqrt{2}} + i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}} \right)

Simplifying, we get:

2πirR1x22ix2dx=2πi(ln(3)42+iarctan(12)22)-2\pi i \int_{r}^{R} \frac{1}{x^2 - 2ix - 2} dx = 2\pi i \left( \frac{\ln(3)}{4\sqrt{2}} + i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}} \right)

01x22ix2dx=ln(3)42iarctan(12)22\int_{0}^{\infty} \frac{1}{x^2 - 2ix - 2} dx = -\frac{\ln(3)}{4\sqrt{2}} - i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}}

Now, let's go back to the original integral:

I=0ln(x)x22ix2dxI = \int_{0}^{\infty} \frac{\ln(x)}{x^2 - 2ix - 2} dx

We have:

L1ln(x)x22ix2dx+L2ln(x)+2πix22ix2dx=2πiRes(f,z1)\int_{L_1} \frac{\ln(x)}{x^2 - 2ix - 2} dx + \int_{L_2} \frac{\ln(x) + 2\pi i}{x^2 - 2ix - 2} dx = 2\pi i \operatorname{Res}(f, z_1)

0ln(x)x22ix2dx0ln(x)+2πix22ix2dx=2πi(ln(3)42+iarctan(12)22)\int_{0}^{\infty} \frac{\ln(x)}{x^2 - 2ix - 2} dx - \int_{0}^{\infty} \frac{\ln(x) + 2\pi i}{x^2 - 2ix - 2} dx = 2\pi i \left( \frac{\ln(3)}{4\sqrt{2}} + i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}} \right)

2πi01x22ix2dx=2πi(ln(3)42+iarctan(12)22)-2\pi i \int_{0}^{\infty} \frac{1}{x^2 - 2ix - 2} dx = 2\pi i \left( \frac{\ln(3)}{4\sqrt{2}} + i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}} \right)

01x22ix2dx=ln(3)42iarctan(12)22\int_{0}^{\infty} \frac{1}{x^2 - 2ix - 2} dx = -\frac{\ln(3)}{4\sqrt{2}} - i \frac{\arctan(\frac{1}{\sqrt{2}})}{2\sqrt{2}}

So,

0ln(x)x22ix2dx=πarctan(1/2)2iln(3)π42\int_{0}^{\infty} \frac{\ln(x)}{x^2 - 2ix - 2} dx = \pi \frac{\arctan(1/\sqrt{2})}{\sqrt{2}} - i \frac{\ln(3) \pi}{4 \sqrt{2}}

Final Answer

Thus, the final answer is:

I=0ln(x)x22ix2dx=π22arctan(12)iπln(3)42I = \int_{0}^{\infty} \frac{\ln(x)}{x^2 - 2ix - 2} dx = \frac{\pi}{2\sqrt{2}} \arctan\left(\frac{1}{\sqrt{2}}\right) - i \frac{\pi \ln(3)}{4\sqrt{2}}

Boom! We've successfully navigated this tricky integral using contour integration. I know it seems like a lot, but take it step by step, and you'll get there. Keep practicing, and you'll become a contour integration master in no time! This method showcases the power and elegance of complex analysis, turning seemingly impossible integrals into manageable problems. Keep exploring, keep learning, and never stop questioning. You've got this!