Tricki
a repository of mathematical know-how
Add article
Navigate
Tags
Search
Forums
Help
Top level
›
Different kinds of Tricki article
›
Front pages for different areas of mathematics
›
Analysis front page
›
Complex analysis front page
View
Edit
Revisions
If you are calculating an integral, complex substitutions are not forbidden
Title:
*
Area of mathematics:
*
A comma-separated list of areas of mathematics to which this article applies. Use ">" to tag in a subcategory. Example: Analysis > Harmonic analysis, Combinatorics
Keywords:
A comma-separated list of keywords associated with this article. Example: free group
Used in:
A comma-separated list of examples of where this technique is used. Example: Cauchy-Schwarz inequality
Parent articles:
Order
-1
0
1
-1
0
1
Body:
[QUICK DESCRIPTION] Sometimes an integral $\int_a^bf(x)dx$ can be made simpler if one makes the substitution $u=g(x)$ for some invertible function $g$. The new integral is then $\int_{g(a)}^{g(b)}f(g(u))(g^{-1})'(u)du$. What if $g$ is a complex-valued function, such as $g(x)=ix$? Then the range of integration seems to be a path in the complex plane, which looks very dodgy. However, substitutions of this kind can sometimes be justified with the help of Cauchy's residue theorem, and they are sometimes very useful. This is one way of looking at some of the real integrals that can be calculated with the help of contour integration. [PREREQUISITES] Complex analysis up to the residue theorem and contour integration. [note attention] It might be nice to have more examples. [/note] [EXAMPLE] Let us try to calculate the integral $\int_0^\infty\sin(x^2)dx$. Before we do so, let us note that this is an excellent example of an oscillatory integral: although $\sin(x^2)$ does not tend to zero, it remains bounded and oscillates faster and faster, so the corresponding oscillations of the function $F(t)=\int_0^t\sin(x^2)dx$ become smaller and smaller. So we expect this integral to be finite. The function $\sin(x^2)$ is sufficiently similar to $e^{x^2}$ that we do not expect to be able to find an antiderivative. Does that make our task hopeless? Not quite, because this is a ''definite'' integral, and we might remember that there is at least one integral like that that has a nice answer: $\int_0^\infty e^{-x^2}dx=\frac 12\sqrt{\pi}$. This suggests that we should try to turn our integral into the integral of a Gaussian. An easy way to involve the exponential function is to use the fact that $\sin(x^2)$ is the imaginary part of $e^{ix^2}$. So we will be done if we can calculate the integral $\int_0^\infty e^{ix^2}dx$ (which we still expect to be finite, because the same reasoning applies to its real part). And now we might observe that a simple substitution will turn this integral into one of the form we want: we just choose $u$ in such a way that $ix^2=-u^2$, which tells us that $u^2=-ix^2$, which [add]we can achieve by taking $u=e^{-i\pi/4}x$. {{Here, $e^{-i\pi/4}$ is chosen because it is one of the square roots of $-i$.}}[/add] If we make this substitution, then $x=e^{i\pi/4}u$, so $dx=e^{i\pi/4}du$, and our integral becomes $\int_0^\infty e^{-u^2}e^{i\pi/4}du$. Therefore, the answer is $\frac {e^{i\pi/4}}2\sqrt{\pi}$, which has imaginary part $\sqrt{\pi/8}$. But was that a legitimate argument? Isn't there something very fishy about taking the range of integration to be $[0,\infty)$? To answer this question, let us try to interpret the integral $\int_0^\infty e^{-u^2}e^{i\pi/4}du$ as a path integral involving the function $e^{iz^2}$. After a bit of experiment, we find that it is the integral of $e^{iz^2}$ along the line that starts at the origin and slopes upwards at 45 degrees. To see this, write $\gamma$ for this path, and think of it as the function $u\mapsto e^{i\pi/4}u$ defined on $[0,\infty)$. Then the definition of a path integral tells us that $\int_\gamma e^{iz^2}dz$ is indeed precisely $\int_0^\infty e^{-u^2}du$. So our question now is whether the path integral $\int_\gamma e^{iz^2}dz$ is equal to our original integral $\int_0^\infty e^{ix^2}dx$, which is the integral of the same function, but along the positive real axis. We can use standard techniques to prove that the two are equal. Consider a closed curve $C$ that goes from $0$ to $R$, then from $R$ to $e^{i\pi/4}R$ round the circle of radius $R$ about $0$, and then back from $e^{i\pi/4}R$ to $0$ again. Since the function $e^{iz^2}$ is holomorphic everywhere, its integral round $C$ is zero, so we are done if we can prove that the contribution from the circular arc tends to zero. Since $e^{iw}$ is small when $w$ has a large imaginary part, which it does almost everywhere on this circular arc, this is indeed the case.<comment thread="1273" /> [GENERAL DISCUSSION] When presenting a solution to the above problem, it would not be normal practice to discuss integration by substitution. Rather, one would observe that the integral is simpler along a different path and use that as motivation for choosing the contour $C$. The point of this article is that the way one thinks of a good contour to choose is more or less identical to the way one thinks of a good substitution in an ordinary real integral. Sometimes, one obtains a path integral that does ''not'' give the same answer as the original integral. But if that is merely because there are some residues inside the contour $C$, then we can still use the transformed integral (together with calculation of the residues) to work out the original one. This method can be viewed as an application of the more general method of [[Shift the contour of integration|contour shifting]]. [EXAMPLE] Suppose you are asked to calculate the integral $\int_{-\infty}^\infty e^{-x^2/2+ax}dx$. Given the basic fact that $\int_{-\infty}^\infty e^{-x^2/2}dx=\sqrt{2\pi}$, it is natural to attack this by [[complete the square|completing the square]]. We note that $x^2/2-ax=(x-a)^2/2-a^2/2$, which allows us to rewrite our integral as $e^{a^2/2}\int_{-\infty}^\infty e^{-(x-a)^2/2}dx$. Substituting $y=x-a$, we see immediately that the answer is $\sqrt{2\pi}e^{a^2/2}$. What happens if $a$ is a complex number? Formally, the entire calculation above works in precisely the same way, but now the substitution $y=x-a$ is complex, so we have to worry about whether it is valid. Let us try to find a path integral involving the function $e^{-z^2/2+az}$ that equals $e^{a^2/2}\int_{-\infty}^\infty e^{-y^2/2}dy$. The one slightly non-obvious decision is whether we should integrate along the path $\R+a$ or $\R-a$, so let us integrate along $\R+b$ and see what happens. That is, we take the path $t\mapsto t+b$ (a function from $\R$ to $\C$) and integrate the function $e^{-z^2/2+az}$ to get $\int_{-\infty}^\infty e^{-(t+b)^2/2+a(t+b)}dt$. Taking $b=a$ gives us $\int_{-\infty}^\infty e^{-t^2/2+a^2/2}dt$, which is exactly what we wanted. This strongly suggests that we should try a contour in the shape of a very wide parallelogram, two sides of which are the intervals $[-R,R]$ and $[-R+a,R+a]$. (The latter is supposed to be a horizontal line segment in the complex plane.) The one remaining point to check is whether the integral is small on the two segments that join $R$ to $R+a$ and $-R$ to $-R+a$. This is indeed the case, and easy to check: it basically follows from the fact that $e^{-R^2}$ tends to zero much faster than exponentially. This allows us to show that the original integral is $\sqrt{2\pi}e^{a^2/2}$ even when $a$ is complex. In particular, if $a$ has the form $i\alpha$ for a real number $\alpha$, then the integral is $\sqrt{2\pi}e^{-\alpha^2/2}$. The Fourier transform of the Gaussian function $e^{-x^2/2}$ is defined to be $F(\alpha)=\frac 1{\sqrt{2\pi}}\int_{-\infty}^\infty e^{-x^2/2}e^{i\alpha x}dx$. We have just shown that $F(\alpha)=e^{-\alpha^2/2}$. That is, the Fourier transform of the Gaussian is the Gaussian. For good measure, we have calculated the Laplace transform (meaning that we can allow $\alpha$ to take complex values): it is given by the same formula. [GENERAL DISCUSSION] Once again, integration by substitution is not really recommended for a problem like this. It is just an idea to hold in the back of one's head when trying to think of a suitable contour. Once one is used to this kind of contour integral, a quicker approach is simply to observe that the function $e^{-z^2/2+az}$ is easier to handle on the line $\R+a$ than on the line $\R$, since if $z=t+a$ then $-z^2/2+az=-(t+a)^2/2+a(t+a)=-t^2/2+a^2/2$. So if one chooses the above contour, then we can handle one long side and the two short sides tend to zero, so we can work out the integral we are interested in.
This is a stub
A stub is an article that is not sufficiently complete to be interesting.
Notifications
File attachments
Changes made to the attachments are not permanent until you save this post. The first "listed" file will be included in RSS feeds.
Attach new file:
Images are larger than
640x480
will be resized. The maximum upload size is
1 MB
. Only files with the following extensions may be uploaded:
jpg jpeg gif png svg
.
Revision information
Log message:
An explanation of the additions or updates being made to help other authors understand your motivations.
Search this site:
Recent articles
View a list of all articles.
Littlewood-Paley heuristic for derivative
Geometric view of Hölder's inequality
Diagonal arguments
Finding an interval for rational numbers with a high denominator
Try to prove a stronger result
Use self-similarity to get a limit from an inferior or superior limit.
Prove a consequence first
Active forum topics
Plenty of LaTeX errors
Tutorial
A different kind of article?
Countable but impredicative
Tricki Papers
more
Recent comments
I don't think this statement
choice of the field
Incorrect Image
Article classification
Higher dimensional analogues
more