I am supposed to find the integral by complexifying it and noticing that $e^{-x}\cos x$ is the real part of $e^{(-1+i)x}$. However I don't see how you can figure that out before knowing the expression you will get (in this case it is $e^{(-1+i)x}$). $$\int e^{-x}\cos x \, dx = \Re \int e^{(-1+i)x} \, dx$$
Integrate $e^{-x}\cos x$ with respect to $x$ by complexifying the integral?
1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 4 best solutions below
On
You note that $\cos x$ is the real part of $e^{ix}$. (This is such a fundamental idea in complex analysis that you should memorize it right now.)
Then, replacing that real-part with the whole of $e^{ix}$, you have $e^{-x} e^{ix} = e^{(i-1)x}$.
On
Well, the integral of the complex function is simply $$\frac1{-1+\mathrm i}\mathrm e^{(-1+\mathrm i)x}=-\frac{1+\mathrm i}2\,\mathrm e^{-x}\,\mathrm e^{\mathrm i\mkern1mu x}=\dots$$
On
Alternatively (well, actually the same thing, but in more algebraic language) you can use Euler's formulas to write $$ e^{-x}\cos x = e^{-x}\frac{e^{ix}+e^{-ix}}2 = \tfrac12 e^{-x-ix}+\tfrac12 e^{-x+ix} = \tfrac12 e^{(-1-i)x} + \tfrac12 e^{(-1+i)x} $$ which you can then integrate as-is as the sum of two $\int ae^{bx}\,\mathrm dx $ terms.
But you should also be able to recognize that $e^{(-1-i)x}$ and $e^{(-1+i)x}$ are complex conjugates when $x$ is real, and therefore their average is just the same as their (common) real part.
The simplest way is use the link between $\cos x$ and the exponential function. This link can be seen only when we deal with these function as functions of a complex variable and then we can write $\cos x = (e^{ix} + e^{-ix})/2$.
The technique of treating $\cos x$ as the real part of $e^{ix}$ looks magical because it appears to simplify the integrand into the form $e^{kx}$ where $k$ is a complex number and then we use the use $$\int e^{kx}\,dx = \frac{e^{kx}}{k} + C$$ Hidden behind this magic are the following assumptions (which no one mentions explicitly when using this technique):
So in a way it does simplify the overall integration process by avoiding the need for integration by parts, but the overall justification of this process is not entirely trivial (one should try to prove the two assumptions above to convince oneself).