A nice question about integrating complex exponentials!
Let's break it down step by step.
We want to evaluate the definite integral:
∫[-1,1] (e^(ik₁x) + e^(ik₂x)) dx
where i is the imaginary unit (i.e., i = √(-1)), and k₁ and k₂ are constants.
Linearity of the integral
First, we use the linearity of the integral, which allows us to split the integral into two separate integrals:
∫[-1,1] (e^(ik₁x) + e^(ik₂x)) dx = ∫[-1,1] e^(ik₁x) dx + ∫[-1,1] e^(ik₂x) dx
Integrating a complex exponential
Now, let's focus on one of these integrals, say the first one:
∫[-1,1] e^(ik₁x) dx
Recall that the antiderivative of e^(a*x) is (1/a) * e^(a*x), even when a is complex! (This is because the derivative of e^(a*x) is a * e^(a*x), and this property holds for complex a as well.)
So, we can write:
∫ e^(ik₁x) dx = (1/(ik₁)) * e^(ik₁*x)
Now, we apply the Fundamental Theorem of Calculus (FTC) to evaluate the definite integral:
∫[-1,1] e^(ik₁x) dx = [(1/(ik₁)) * e^(ik₁x)] from -1 to 1
= (1/(ik₁)) * (e^(ik₁1) - e^(ik₁(-1)))
= (1/(ik₁)) * (e^(ik₁) - e^(-i*k₁))
Simplifying using Euler's formula
Euler's formula states: e^(i*θ) = cos(θ) + i*sin(θ)
Using this, we can rewrite:
e^(ik₁) = cos(k₁) + isin(k₁)
e^(-ik₁) = cos(-k₁) + isin(-k₁) = cos(k₁) - i*sin(k₁) (since cos is even, sin is odd)
Subtracting these expressions:
e^(ik₁) - e^(-ik₁) = 2isin(k₁)
Now, plug this back into our integral result:
∫[-1,1] e^(ik₁x) dx = (1/(ik₁)) * 2i*sin(k₁)
= (2/k₁) * sin(k₁)
Exactly the same for the second integral
By identical steps, we find:
∫[-1,1] e^(ik₂x) dx = (2/k₂) * sin(k₂)
Combining the results
Finally, we add the two results together:
∫[-1,1] (e^(ik₁x) + e^(ik₂x)) dx = (2/k₁) * sin(k₁) + (2/k₂) * sin(k₂)
The final answer
So, the result of the integral is:
∫[-1,1] (e^(ik₁x) + e^(ik₂x)) dx = 2 * ( sin(k₁)/k₁ + sin(k₂)/k₂ )
These sin(x)/x terms are known as sinc functions (unnormalized). They appear frequently in Fourier analysis and signal processing.
Special cases:
- If
k₁ = k₂ = 0, the integral is simply ∫[-1,1] 2 dx = 4, since e^(0*x) = 1. (You can verify that our result approaches 4 as k₁ and k₂ approach 0, using lim x→0 sin(x)/x = 1.)
- If
k₁ or k₂ is very large, the sinc terms sin(k)/k tend to zero, meaning the integral vanishes.
Enjoy your result!