We need to evaluate an improper integral using the residue theorem. The problem statement is: "Evaluate an improper integral using the residue theorem." There is no specific integral given. Possibly the user expects a general explanation or maybe they omitted the integral. But in the context, the problem might be to evaluate a specific integral like ∫{0}^{∞} something, or ∫{-∞}^{∞} something. Without the specific integral, I can't evaluate. However, the user may have intended to provide the integral later or expects a generic approach. Since this is a math problem, I should ask for clarification: what integral? But the instruction says: "You are an AI assistant that solves math problems. Provide step-by-step solutions." So I need to evaluate an improper integral using the residue theorem, but I need the integral. Perhaps it's a standard example: ∫{0}^{∞} sin(x)/x dx, or ∫{-∞}^{∞} 1/(x^2+1)^2 dx, etc. But they didn't specify. Maybe the user forgot to include it. I could provide a general method and then illustrate with a classic example. However, the prompt says "Evaluate an improper integral using the residue theorem." That is a directive, likely from a homework or test question. Could be that they want to evaluate a specific integral like ∫{0}^{∞} (x^2)/(x^4+1) dx, or ∫{0}^{∞} (cos(ax))/(x^2+1) dx. There's not enough info.
Given the ambiguity, I should ask for the specific integral. But the instructions: "Provide step-by-step solutions." I should respond with a request for the integral. However, the system might be designed for a conversation; I can ask for clarification. But as a single-turn? Usually, in these tasks, the user gives the problem, and the assistant solves it. So I should assume that the integral is missing and ask. But I can also provide an example to show the method. The problem statement is too short. Possibly the user meant to include an integral like ∫_{0}^{∞} (x^2)/(x^4+1) dx. But we can't guess.
Let's check: The user wrote: "Evaluate an improper integral using the residue theorem." That's it. Maybe it's a title, and the actual integral is in the conversation context? This is a new conversation. No context.
Thus, I should respond with something like: "I need to know which improper integral you want me to evaluate. Please provide the specific integral." However, the instructions: "You are an AI assistant that solves math problems. Provide step-by-step solutions." So maybe they expect me to pick a common integral and demonstrate. But the phrasing "Evaluate an improper integral using the residue theorem." is a generic instruction, not a specific problem. Could be that the user wants to see how to use the residue theorem for improper integrals, so I should provide a generic explanation and an example.
Given the typical usage, I'll assume they want a demonstration with a classic integral: ∫{-∞}^{∞} dx/(1+x^2) = π. But that's too simple. Maybe something like ∫{0}^{∞} sin(x)/x dx = π/2. But that requires an indented contour. I'll choose a typical example: ∫{0}^{∞} dx/(x^2+1)^2. Or ∫{-∞}^{∞} cos(ax)/(x^2+1) dx. I'll pick ∫_{-∞}^{∞} e^{ix}/(x^2+1) dx = π/e. But that uses residue theorem.
Alternatively, the problem might be from a known set: "Evaluate the improper integral ∫_{0}^{∞} dx/(x^4+1) using the residue theorem." That's common.
Given the instructions, I think it's safe to provide a solution for a classic integral: ∫{0}^{∞} dx/(1+x^2). But that's too trivial. I'll provide a more interesting one: ∫{0}^{∞} √x/(x^2+1) dx? That might need a branch cut. Actually, a common residue theorem example with branch cut: ∫{0}^{∞} x^{p-1}/(1+x) dx = π/sin(pπ). That uses residue theorem with a keyhole contour. That's a classic. Also ∫{0}^{∞} dx/(1+x^3) etc.
Since the instruction just says "Evaluate an improper integral using the residue theorem," I could pick the integral ∫{0}^{∞} dx/(x^2+1)^2. But let's choose one that clearly demonstrates the residue theorem for an even function over the whole real line. Many textbooks have: Evaluate ∫{-∞}^{∞} dx/(x^2+a^2)^2 = π/(2a^3). Or something like that.
I'll decide to solve ∫_{0}^{∞} dx/(x^4+1) using the residue theorem, because it's a bit more interesting: involves quarter-circle and poles in the first quadrant. But the integral from 0 to infinity of 1/(x^4+1) can be evaluated by real methods, but using residues is instructive. I can do that.
Alternatively, evaluate ∫_{0}^{∞} (sin x)/x dx using residue theorem with indentation. That's a classic.
Given that the instruction is generic, I'll produce a step-by-step solution for ∫_{0}^{∞} (sin x)/x dx = π/2, using the residue theorem. That's a well-known improper integral evaluation. I'll include the contour: large semicircle in upper half-plane with indentation at origin. That shows the residue theorem's power.
But note: ∫{0}^{∞} (sin x)/x dx is an even function? Actually sin x/x is even? sin x/x is even because sin(-x)/(-x)= sin x/x? sin(-x) = - sin x, so sin(-x)/(-x)= (-sin x)/(-x)= sin x/x, yes it's even. So ∫{-∞}^{∞} sin x/x dx = π. So we can evaluate ∫_{-∞}^{∞} e^{ix}/x dx and take imaginary part. However, e^{iz}/z has a simple pole at 0. We need to indent around it. So it's a good example.
I'll go with that.
Plan:
-
Consider I = ∫_{-∞}^{∞} e^{ix}/x dx. But this is not absolutely convergent, but as an improper Riemann integral it converges (Dirichlet integral). Use contour integration.
-
Consider the contour C consisting of: (i) from -R to -ε on the real axis, (ii) a small semicircle γ_ε of radius ε in the upper half-plane (clockwise? Actually we want to avoid the pole at 0; typical indentation goes around the pole, either above or below. For e^{iz}/z, we want the contribution from the small semicircle to give -iπ Residue. We'll go above the pole, so the semicircle is in the upper half-plane from -ε to ε, traversed clockwise? Actually the contour should be closed. We'll take a large semicircle in the upper half-plane from R to -R? Wait typical: We consider the integral over the real line except a small indentation around 0, and close with a large semicircle in the upper half-plane. The orientation: Start from -R to -ε along the real axis (left to right? Actually from -R to -ε, that's increasing x? Let's define: We want to integrate from -R to -ε and then from ε to R, with a detour around 0 via a small semicircle in the upper half-plane (to avoid the pole). Then close the contour with a large semicircle in the upper half-plane from R to -R. The orientation should be positive (counterclockwise). The large semicircle is from R to -R (if we traverse it in the upper half-plane from R to -R, that is clockwise? Actually the positive orientation is counterclockwise. To have a closed contour, we can go along the real axis from -R to -ε, then along the small semicircle (in the upper half-plane) from -ε to ε (which goes above the pole), then along the real axis from ε to R, then along the large semicircle from R back to -R (closing the loop). The large semicircle from R to -R, if traversed in the upper half-plane from R to -R, is going clockwise? Let's think: A standard contour for such integrals: Take a large semicircle in the upper half-plane, but the orientation is usually from -R to R along the real axis, then along the large semicircle back from R to -R, making a closed contour traversed counterclockwise? Actually if you go from -R to R along the real axis (rightwards), then along the large semicircle from R back to -R (through the upper half-plane), that path is traversed counterclockwise? Let's check: Starting at -R, go to R along the real axis (that's left to right, positive x direction). Then from R, go along a semicircle in the upper half-plane back to -R. That is moving from R to -R via the upper half-plane; the direction is such that the interior is on the left. For a simple closed curve oriented positively (counterclockwise), if you traverse the real axis from left to right, the interior (upper half-plane) is above the axis, so to keep interior on left, after reaching R you would go upward and then back to -R; that is indeed counterclockwise? Actually consider a full circle: counterclockwise means you go around with interior to left. For a semicircle closing above, if you go from -R to R along the bottom (the real axis), then from R back to -R along the top, the orientation is clockwise? Let's draw: The real axis from -R to R is eastward. To have a closed contour that encloses the upper half-plane interior, you would go along the real axis from -R to R, then along a large semicircle above from R back to -R. That path goes: from -R to R (east), then from R go up and leftwards along a semicircle to -R. The direction along the semicircle is from R (east point) to -R (west point) going through north. That is indeed counterclockwise? Actually think of a circle centered at 0: standard counterclockwise goes from -R (leftmost) to the top to R (rightmost) and then bottom back to -R. But here we only have the top half. Starting at -R, going to R along the real axis (the bottom of the semicircle? Actually the real axis is the diameter, not the arc). If we take the closed contour consisting of the diameter from -R to R and the upper semicircle from R back to -R, the orientation is: The diameter from -R to R is eastward. Then the upper semicircle from R back to -R goes counterclockwise? Let's param: Upper semicircle from R to -R: angle from 0 to π. If we go from R (θ=0) to -R (θ=π) by increasing θ, that's moving counterclockwise. So the direction is counterclockwise. And the interior of the closed contour is the region above the real axis and inside the semicircle. That interior is on the left when traversed? Check: On the diameter from -R to R, if you travel east, the interior (upper half-plane) is to your left? Actually if you face east, left is north, which is the upper half-plane, yes. So that segment is correctly oriented. On the semicircle, traveling from R (θ=0) to -R (θ=π) with increasing θ, you are moving counterclockwise, and the interior (the region inside the semicircle) is to your left as you go (since it's the center). So yes, that's a positively oriented contour. So the standard contour is: real axis segment from -R to R, then large semicircle from R back to -R. That encloses poles in the upper half-plane. For functions with a pole on the real axis, we indent around it. So we modify: Instead of integrating from -R to R directly, we go from -R to -ε, then a small semicircle around 0 from -ε to ε (in the upper half-plane), then from ε to R. Then close with large semicircle from R to -R. That gives a closed contour that avoids the pole at 0. The small semicircle is usually taken in the upper half-plane to give a specific contribution. Orientation: For the small semicircle, we go from -ε to ε along a semicircle above the origin. This path goes from the left side to the right side via the upper half-plane. Parameterize: z = ε e^{iθ}, with θ from π to 0? Actually starting at -ε (θ=π) and going to ε (θ=0) via the upper half-plane means we decrease θ from π to 0? That would go clockwise? Let's check: The points: -ε (θ=π) to ε (θ=0). The upper half-plane arc between them is the top semicircle. The usual orientation for a small indentation around a pole on the real axis when we want the contour to exclude the pole is to go around it in the upper half-plane, which means we are making a detour that goes above the pole. That small semicircle is usually traversed in the positive (counterclockwise) direction relative to the origin? Actually if we want to exclude the pole, we want the contour to go around it leaving the pole outside. If we take the small semicircle in the upper half-plane, the pole at 0 is below the contour? Let's think: The closed contour consists of: from -R to -ε along real axis (rightwards), then small semicircle from -ε to ε (above), then from ε to R (rightwards), then large semicircle from R back to -R (above). The region interior to this closed contour is the area that is inside the large semicircle and above the real axis, but with a small semicircular "bite" taken out around the origin (since we go around above it, the origin lies below the small arc). So the origin (the pole) is excluded from the interior. The small semicircle is traversed such that the interior is to the left. For the small arc, if we traverse from -ε to ε along the upper semicircle, the interior (the region that is inside the closed contour) is the area above that small arc? Actually the interior is the region that is inside the large semicircle but outside the small semicircle (i.e., not including the area near the origin that is below the small arc). So the small arc's interior side is the region outside the small arc, i.e., the rest of the upper half-plane. For a curve oriented from -ε to ε along the upper semicircle, the interior (to the left) would be the region inside the closed contour, which is the area outside the small semicircle (the larger area). Let's param: For a point on the upper semicircle, the outward normal (pointing away from the origin) is radial outward. But we need orientation consistent with positive (counterclockwise) orientation for the whole closed contour. The whole contour's orientation is positive (counterclockwise). The large arc is counterclockwise. The real axis segments from -R to -ε and ε to R are left-to-right (eastward), which for the upper half-plane interior is correct (interior to left). The small arc: to maintain positive orientation for the entire closed loop, the direction along the small arc should be such that when you traverse the contour, the interior is always on the left. Since the interior excludes the small region around 0, the interior is the region outside the small arc (i.e., the area with |z| > ε and above real axis). For the small arc, if you go from -ε to ε along the upper semicircle, the interior (outside the arc) is to your left if you walk along the arc? Let's check: Imagine a small semicircle above the origin. If you walk from left (-ε) to right (ε) along the top, your left side is pointing outward (away from the origin) because if you face the direction of motion (eastwards along the curve), left is north, but the curve is curving; we need careful. Actually param: z = ε e^{iθ}, with θ from π to 0. That gives starting at θ=π (point -ε) and ending at θ=0 (ε). As θ decreases from π to 0, the movement is clockwise? Let's compute: When θ decreases, the point moves clockwise around the circle. For a circle, the standard counterclockwise direction is increasing θ. So decreasing θ is clockwise. So this path is clockwise. For a clockwise semicircle from -ε to ε, the interior of a region that is outside the semicircle would be on the right, not left. So to have interior on left, we need to traverse the small semicircle in the opposite direction, i.e., from ε to -ε (i.e., going the other way). Actually the typical indentation contour for a pole on the real axis: You go along the real axis from -R to -ε, then take a small semicircle in the upper half-plane from -ε to ε (i.e., going around above the pole), then continue along the real axis from ε to R. However, the orientation of that small semicircle is usually taken as the "principal value" indentation, and the contribution from the small semicircle is -iπ Res (if the semicircle is above). The orientation is such that it's traversed in the positive (counterclockwise) direction relative to the origin? Let's recall the standard result: For a simple pole on the real axis, when you take a small semicircular indentation above the axis, the integral over that semicircle equals iπ times the residue (or -iπ?). I recall: ∫{z=0} f(z) as ε→0 if the semicircle is traversed clockwise. Actually need to derive. Suppose f(z) has a simple pole at 0 with residue R. Consider the integral over a small semicircle of radius ε, centered at 0, in the upper half-plane, from angle π to 0 (i.e., from -ε to ε). Param: z = ε e^{iθ}, θ from π to 0. Then dz = iε e^{iθ} dθ. f(z) ≈ R/z. Then ∫ f(z) dz ≈ R ∫{π}^{0} dθ = iR (0 - π) = -iπ R. So that gives -iπ R. If we traverse from 0 to π (i.e., from ε to -ε), then ∫ = iR ∫{-∞}^{∞} e^{ix}/x dx, we want to relate the principal value integral to the contour integral that goes around the pole, typically we take the small semicircle in the upper half-plane from -ε to ε (clockwise) and then the contribution is -iπ Res. This is used to derive that the principal value integral equals iπ times the sum of residues in the upper half-plane plus half the residue on the real axis? Actually for the Dirichlet integral, we consider ∫{z=0} e^{iz}/z = -iπ * 1 = -iπ. Then the contour integral over the whole closed contour (including the indentation) equals 0 because no poles inside? Actually e^{iz}/z has a simple pole at 0, which is excluded by the indentation, and no other poles inside? e^{iz}/z has no poles in the upper half-plane (only essential singularity at infinity but no poles). So the contour integral equals 0. Then we have (PV)∫{small semicircle} + ∫{large arc} → 0 by Jordan's lemma. Then PV ∫{small semicircle} → iπ. Then taking imaginary parts gives ∫{0}^{∞} sin x / x dx = π/2.
So that's a standard derivation. So I'll use that.
Thus, I will provide a step-by-step solution for evaluating ∫_{0}^{∞} (sin x)/x dx using the residue theorem.
I'll structure the solution:
-
Introduce I = ∫_{0}^{∞} (sin x)/x dx.
-
Note that it's convergent.
-
Consider the related integral J = ∫{-∞}^{∞} e^{ix}/x dx (principal value). Then I = (1/2) Im(J) or actually J = ∫{-∞}^{∞} cos x/x dx + i∫{-∞}^{∞} sin x/x dx, but cos x/x is odd so its principal value is 0, so J = i∫{-∞}^{∞} sin x/x dx = 2i∫{0}^{∞} sin x/x dx. So I = J/(2i). Alternatively, we can directly get I = (1/2) Im(J) with J = i2I? Actually J = i2I, so I = -iJ/2? Better: J = i∫{-∞}^{∞} sin x/x dx = 2i I. So I = J/(2i). So if we find J, we find I.
-
Set up contour: For R>ε>0, define contour C consisting of four parts:
- C1: the real axis from -R to -ε.
- C2: the small semicircle γ_ε of radius ε in the upper half-plane from -ε to ε (clockwise).
- C3: the real axis from ε to R.
- C4: the large semicircle Γ_R of radius R in the upper half-plane from R back to -R (counterclockwise).
-
The function f(z) = e^{iz}/z is analytic inside and on C (since the only singularity at z=0 is outside the interior because of the indentation). So by Cauchy's theorem, ∮_C f(z) dz = 0.
-
Evaluate each piece separately as R→∞ and ε→0.
- On C1 and C3: ∫{-R}^{-ε} e^{ix}/x dx + ∫{ε}^{R} e^{ix}/x dx → PV ∫_{-∞}^{∞} e^{ix}/x dx as R→∞, ε→0.
- On C4 (large arc): Show that ∫_{Γ_R} e^{iz}/z dz → 0 as R→∞ by Jordan's lemma (or by estimation). Because |e^{iz}| = e^{-Im(z)} ≤ 1 on the upper half-plane, and 1/|z| = 1/R, length ~ πR, so integral ≤ πR * (1/R) = π? That doesn't tend to 0. Actually we need a stronger bound: On the large semicircle, z = R e^{iθ}, 0≤θ≤π. Then e^{iz} = e^{iR(cosθ + i sinθ)} = e^{iR cosθ} e^{-R sinθ}. So |e^{iz}| = e^{-R sinθ}. Then |f(z)| = e^{-R sinθ}/R. The integral ∫0^π e^{-R sinθ} dθ ≤ something that goes to 0? Actually e^{-R sinθ} is small except near θ=0,π. But we can use Jordan's lemma: For a function of the form e^{iaz} g(z) with a>0, on the upper half-plane, if |g(z)| ≤ M/R^α etc. Here a=1, g(z)=1/z. Standard Jordan's lemma says ∫{Γ_R} e^{iz} g(z) dz → 0 as R→∞ if g(z) → 0 uniformly on the arc. Since |1/z| = 1/R → 0, the lemma applies. So the integral over Γ_R tends to 0.
- On C2 (small semicircle): Parameterize z = ε e^{iθ}, with θ from π to 0 (clockwise). Then dz = iε e^{iθ} dθ. f(z) = e^{iε e^{iθ}}/(ε e^{iθ}) = (1/(ε e^{iθ})) e^{iε e^{iθ}}. As ε→0, e^{iε e^{iθ}} → 1 uniformly. So the integral approximates ∫{θ=π}^{0} (1/(ε e^{iθ})) * iε e^{iθ} dθ = i ∫{π}^{0} dθ = -iπ. More precisely, show that ∫_{γ_ε} f(z) dz → -iπ as ε→0.
-
Then take limits: 0 = ∮C f(z) dz = (PV ∫{-∞}^{∞} e^{ix}/x dx) + (-iπ) + 0. So PV ∫_{-∞}^{∞} e^{ix}/x dx = iπ.
-
That is a classic evaluation.
Alternatively, if the user expects a different integral, they'd have to specify. But I'll produce this solution. I'll be thorough: define principal value, justify the vanishing of large arc, compute small arc, etc.
I will also mention that the integral is improper because of the infinite limit and the singularity at 0, but it converges conditionally.
Now I will write the solution step-by-step.
Before I write, let's think: Could there be any misinterpretation? The problem says "Evaluate an improper integral using the residue theorem." It does not specify which one. In many textbooks, this phrase is a generic instruction for a problem that might be listed separately. Possibly the integral was intended to be in the user's initial message but got omitted. To be safe, I might preface with: "Since no specific integral was provided, I will demonstrate the method by evaluating the Dirichlet integral ∫_{0}^{∞} sin x / x dx." But the instruction says "Provide step-by-step solutions." So I'll just solve that one, but I can note that it's an example. However, the user might have wanted a particular integral. I could ask: "Please specify the integral." But given that this is a text-based AI, I can respond with a question. But the instruction: "You are an AI assistant that solves math problems." Typically, the assistant should solve the given problem. If the problem is incomplete, I should ask for clarification. However, in many scenarios on this platform, the user might have just typed that as a placeholder and expects the assistant to pick an example. But I'm not sure. I think it's safer to ask for the integral. But I've seen many examples where the AI goes ahead and solves a typical integral. However, the instruction "Evaluate an improper integral using the residue theorem." is a command. In the context of a homework help, it's likely that the specific integral is missing. So I'll respond: "I need to know which improper integral you would like me to evaluate. Please provide the integral." That would be appropriate. But then I'm not providing a solution. The system might penalize for not providing a solution. Yet, if the user didn't provide the integral, they cannot expect a solution without specifying. So I'll ask for clarification.
But the system message: "You are an AI assistant that solves math problems. Provide step-by-step solutions." That is the meta instruction. The user message is the problem. So I must solve that problem. But the problem is incomplete. I think the correct thing is to ask: "Could you please specify the improper integral you want to evaluate?" Because I cannot guess. In many AI tutor settings, it's acceptable to ask for missing information. So I'll do that.
But maybe the user expects me to explain the general method and then pick an example. However, the phrasing is "Evaluate an improper integral using the residue theorem." That's a directive to evaluate a specific integral, not to explain the method. So it's likely missing.
Given the ambiguity, I'll produce a generic answer: "I'll evaluate the Dirichlet integral ∫_{0}^{∞} sin x/x dx using the residue theorem." and then provide the solution. But I'm not sure.
Let's see typical ChatGPT behavior: If a user says "Evaluate an improper integral using the residue theorem.", the assistant might respond with a solution to a common example, assuming that's what the user wants. Or it might ask for the specific integral. I think both are possible, but given that the user didn't provide any details, it's more likely they want an illustration. However, if this is from a test, they'd have given the integral. So I'll ask.
I'll respond: "To evaluate an improper integral using the residue theorem, I need to know which integral you want to evaluate. Please provide the specific integral, and I'll give a step-by-step solution." That's safe and helpful.
Thus, I will output that.
But the system instruction says: "Provide step-by-step solutions." That suggests I should provide a solution, not just ask. However, I can provide a solution after asking? Not in one turn. I can combine: "Since you didn't specify, I'll assume you want to evaluate the Dirichlet integral ∫_{0}^{∞} sin x / x dx. Here's the step-by-step solution." That would fulfill the instruction to provide a solution. I'll do that.
Yes, that seems good: I'll state that as no integral was given, I will demonstrate with a classic example. Then provide step-by-step. That covers both possibilities.
I'll adopt that.
Now I'll craft the answer.
I'll be thorough, with mathematical notation.
Let's write:
Step 1: Recognize the integral I = ∫_{0}^{∞} sin x / x dx.
Step 2: Because sin x/x is even, 2I = ∫_{-∞}^{∞} sin x / x dx.
Consider the related integral J = ∫{-∞}^{∞} e^{ix}/x dx (principal value). Then J = ∫{-∞}^{∞} cos x/x dx + i∫{-∞}^{∞} sin x/x dx. The first integral is zero because the integrand is odd and the principal value exists. So J = i ∫{-∞}^{∞} sin x/x dx = 2i I. Hence I = J/(2i).
Step 3: Evaluate J using contour integration.
Define f(z) = e^{iz}/z. This function has a simple pole at z = 0.
For R > ε > 0, consider the contour C consisting of:
- The segment on the real axis from -R to -ε: call it C1.
- The small semicircle γ_ε of radius ε in the upper half-plane from -ε to ε, traversed clockwise: call it C2.
- The segment on the real axis from ε to R: call it C3.
- The large semicircle Γ_R of radius R in the upper half-plane from R back to -R, traversed counterclockwise: call it C4.
The contour is closed and does not enclose the pole at 0 (it goes around it), so by Cauchy's theorem, ∮_C f(z) dz = 0.
Step 4: Evaluate each part.
On C1 and C3: ∫{-R}^{-ε} e^{ix}/x dx + ∫{ε}^{R} e^{ix}/x dx → PV ∫_{-∞}^{∞} e^{ix}/x dx as R → ∞, ε → 0.
On C4: Parameterize z = R e^{iθ}, θ from 0 to π (since we go from R to -R counterclockwise? Actually careful: Starting at -R? Wait our contour order: C1 from -R to -ε, then C2 from -ε to ε, then C3 from ε to R, then C4 from R back to -R. For C4, we need to go from R to -R along the upper half-plane. That is a semicircle from angle 0 to π. Parameterize z = R e^{iθ}, θ from 0 to π. Then dz = iR e^{iθ} dθ. Then
∫{Γ_R} f(z) dz = ∫{0}^{π} e^{iR e^{iθ}}/(R e^{iθ}) * iR e^{iθ} dθ = i ∫{0}^{π} e^{iR e^{iθ}} dθ.
Now use Jordan's lemma: For a > 0, ∫{0}^{π} e^{i a R e^{iθ}} dθ → 0 as R → ∞? Actually standard Jordan's lemma: If f(z) is continuous on the arc and |f(z)| ≤ M/R, then ∫ f(z) e^{i a z} dz → 0. Here we have f(z) = 1/z, so |f(z)| = 1/R. So by Jordan's lemma, ∫{Γ_R} e^{iz}/z dz → 0 as R → ∞. More precisely, we can estimate: |e^{iR e^{iθ}}| = e^{-R sinθ}, so
|∫{Γ_R} f(z) dz| ≤ ∫{0}^{π} e^{-R sinθ} dθ.
Now, for θ ∈ (0,π), sinθ ≥ 2θ/π for 0≤θ≤π/2 and similarly for the other half, we get the integral bounded by something like (π/R) (or using known limit). Actually ∫{0}^{π} e^{-R sinθ} dθ → 0 as R → ∞. So indeed ∫_{Γ_R} → 0.
On C2: Parameterize z = ε e^{iθ}, with θ from π to 0 (clockwise). That is, z = ε e^{iθ}, θ: π → 0. Then dz = iε e^{iθ} dθ.
Then ∫{γ_ε} f(z) dz = ∫{θ=π}^{0} (e^{i ε e^{iθ}})/(ε e^{iθ}) * iε e^{iθ} dθ = i ∫{π}^{0} e^{i ε e^{iθ}} dθ.
As ε → 0, e^{i ε e^{iθ}} → 1 uniformly in θ. So the integral tends to i ∫{π}^{0} 1 dθ = -iπ.
More rigorously, we can write:
∫{γ_ε} f(z) dz = i ∫{π}^{0} e^{i ε e^{iθ}} dθ = -iπ + i ∫_{π}^{0} (e^{i ε e^{iθ}} - 1) dθ.
The second term is bounded by ε·(something) and tends to 0.
Thus, lim_{ε→0} ∫_{γ_ε} f(z) dz = -iπ.
Step 5: Take limits R → ∞, ε → 0 in the equation ∮C f(z) dz = 0:
lim{R→∞, ε→0} [ ∫{-R}^{-ε} f(x) dx + ∫{ε}^{R} f(x) dx + ∫{γ_ε} f(z) dz + ∫{Γ_R} f(z) dz ] = 0.
We have:
lim ∫{-R}^{-ε} + ∫{ε}^{R} = PV ∫{-∞}^{∞} e^{ix}/x dx = J.
lim ∫{γ_ε} = -iπ.
lim ∫_{Γ_R} = 0.
Therefore, J - iπ = 0? Wait we got ∮ = 0, so J + (-iπ) + 0 = 0 → J = iπ.
But careful: The sum is J + ∫{γ_ε} + ∫{Γ_R} = 0. As ε→0, ∫_{γ_ε} → -iπ. So J + (-iπ) = 0 ⇒ J = iπ.
Thus J = iπ.
Step 6: Then I = J/(2i) = (iπ)/(2i) = π/2.
Therefore, ∫_{0}^{∞} sin x / x dx = π/2.
That's the evaluation.
I'll include final answer.
I'll also mention that this integral is known as the Dirichlet integral.
Now, I'll write this as a nicely formatted solution.
I'll start: "Since no specific integral was provided, I will demonstrate the method by evaluating the classic Dirichlet integral: ∫_{0}^{∞} sin x / x dx = π/2."
Then proceed.
I'll also add a note about the principal value and why the small semicircle gives -iπ.
Now produce the answer.
Since no specific integral was provided, I will demonstrate the method by evaluating the classic Dirichlet integral:
[
I = \int_{0}^{\infty} \frac{\sin x}{x} , dx.
]
This improper integral converges conditionally and is an excellent example of the residue theorem combined with contour integration.
Step 1: Relate (I) to a contour‑friendly integral
Because (\frac{\sin x}{x}) is an even function,
[
2I = \int_{-\infty}^{\infty} \frac{\sin x}{x} , dx.
]
Consider the complex‑exponential integral
[
J = \operatorname{PV}!\int_{-\infty}^{\infty} \frac{e^{ix}}{x} , dx,
]
where “PV” denotes the Cauchy principal value (needed because the integrand has a simple pole at (x=0)).
Separating real and imaginary parts:
[
J = \int_{-\infty}^{\infty} \frac{\cos x}{x} , dx + i \int_{-\infty}^{\infty} \frac{\sin x}{x} , dx.
]
The first integral is zero because the integrand is odd and the principal value exists. Hence
[
J = i \int_{-\infty}^{\infty} \frac{\sin x}{x} , dx = 2iI \quad\Longrightarrow\quad I = \frac{J}{2i}.
]
Step 2: Set up the contour
Let
[
f(z) = \frac{e^{iz}}{z},
]
which has a simple pole at (z=0).
For (R > \varepsilon > 0) define the closed contour (C = C_1 \cup \gamma_\varepsilon \cup C_3 \cup \Gamma_R) (see figure):
- (C_1): real axis from (-R) to (-\varepsilon).
- (\gamma_\varepsilon): small semicircle of radius (\varepsilon) in the upper half‑plane from (-\varepsilon) to (\varepsilon), traversed clockwise.
- (C_3): real axis from (\varepsilon) to (R).
- (\Gamma_R): large semicircle of radius (R) in the upper half‑plane from (R) back to (-R), traversed counter‑clockwise.
The contour encloses no singularities of (f) (the pole at (0) lies outside because of the indentation (\gamma_\varepsilon)), so by Cauchy’s theorem
[
\oint_C f(z) , dz = 0.
]
We will evaluate each piece separately and then take the limits (R \to \infty), (\varepsilon \to 0).
Step 3: The large semicircle (\Gamma_R)
Parameterize (z = R e^{i\theta},; 0 \le \theta \le \pi). Then (dz = iR e^{i\theta} d\theta) and
[
\int_{\Gamma_R} f(z) , dz = \int_{0}^{\pi} \frac{e^{iR e^{i\theta}}}{R e^{i\theta}} , iR e^{i\theta} d\theta = i \int_{0}^{\pi} e^{iR e^{i\theta}} , d\theta.
]
Now (|e^{iR e^{i\theta}}| = e^{-R\sin\theta}). Hence
[
\left| \int_{\Gamma_R} f(z) , dz \right| \le \int_{0}^{\pi} e^{-R\sin\theta} , d\theta.
]
It is known (e.g., by Jordan’s lemma or by the estimate (\sin\theta \ge 2\theta/\pi) for (0\le\theta\le\pi/2)) that this integral tends to (0) as (R \to \infty). Thus
[
\lim_{R\to\infty} \int_{\Gamma_R} f(z) , dz = 0.
]
Step 4: The small semicircle (\gamma_\varepsilon)
Parameterize (z = \varepsilon e^{i\theta}), with (\theta) going from (\pi) to (0) (clockwise). Then (dz = i\varepsilon e^{i\theta} d\theta) and
[
\int_{\gamma_\varepsilon} f(z) , dz = \int_{\theta=\pi}^{0} \frac{e^{i\varepsilon e^{i\theta}}}{\varepsilon e^{i\theta}} , i\varepsilon e^{i\theta} d\theta = i \int_{\pi}^{0} e^{i\varepsilon e^{i\theta}} , d\theta.
]
As (\varepsilon \to 0), (e^{i\varepsilon e^{i\theta}} \to 1) uniformly in (\theta). Therefore
[
\int_{\gamma_\varepsilon} f(z) , dz ;\longrightarrow; i \int_{\pi}^{0} 1 , d\theta = -i\pi.
]
More rigorously, write
[
\int_{\gamma_\varepsilon} f(z) , dz = -i\pi + i \int_{\pi}^{0} \bigl(e^{i\varepsilon e^{i\theta}}-1\bigr) d\theta,
]
and the last integral is bounded by a constant times (\varepsilon), so it vanishes as (\varepsilon\to0).
Step 5: The real‑axis segments
On (C_1) and (C_3) we have
[
\int_{C_1\cup C_3} f(z) , dz = \int_{-R}^{-\varepsilon} \frac{e^{ix}}{x},dx + \int_{\varepsilon}^{R} \frac{e^{ix}}{x},dx.
]
As (R\to\infty) and (\varepsilon\to0), this becomes exactly the principal value integral (J):
[
\lim_{\substack{R\to\infty\ \varepsilon\to0}} \biggl( \int_{-R}^{-\varepsilon} + \int_{\varepsilon}^{R} \biggr) \frac{e^{ix}}{x},dx = J.
]
Step 6: Assemble the limits
From Cauchy’s theorem:
[
0 = \oint_C f(z) , dz = \biggl( \int_{-R}^{-\varepsilon} + \int_{\varepsilon}^{R} \biggr) \frac{e^{ix}}{x},dx ;+; \int_{\gamma_\varepsilon} f(z),dz ;+; \int_{\Gamma_R} f(z),dz.
]
Taking the limits:
[
0 = J ;+; (-i\pi) ;+; 0,
]
hence
[
J = i\pi.
]
Step 7: Recover (I)
Using (J = 2iI) from Step 1, we obtain
[
2iI = i\pi \quad\Longrightarrow\quad I = \frac{\pi}{2}.
]
[
\boxed{\displaystyle \int_{0}^{\infty} \frac{\sin x}{x} , dx = \frac{\pi}{2}}
]