Substitution of imaginary variables in integral?

Click For Summary

Discussion Overview

The discussion revolves around the validity of substituting imaginary variables in the integral $$\int_a^b \frac{dx}{1-x^2}$$, specifically using the substitution $$u=ix$$. Participants explore the implications of this substitution, its mathematical legitimacy, and the nature of the resulting integral in the context of complex analysis.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants argue that the substitution $$u=ix$$ is valid, noting that it transforms the integral into a contour integral in the complex plane.
  • Others caution that while the substitution may be mathematically permissible, care must be taken regarding the branches of the arctangent function when evaluating the integral of an imaginary variable.
  • A participant mentions that the integral can also be approached using partial fraction decomposition, which would involve considering the branches of the logarithm function.
  • There is a discussion about the necessity of analytically-continuous paths when applying the Fundamental Theorem of Calculus to line integrals over multi-valued functions.
  • Some participants express confusion about whether the substitution constitutes a case of complex integration, as the original integral is defined over the real line.
  • One participant points out that if the integration path includes singular points, such as $$i$$ or $$-i$$, the path must be indented to maintain analyticity.
  • Another participant raises the question of whether the substitution can always be performed regardless of the function's behavior, suggesting that the validity of the second equality in the transformation may depend on analyticity.

Areas of Agreement / Disagreement

Participants generally do not reach a consensus on the validity and implications of the substitution. Multiple competing views remain regarding the nature of the integral, the necessity of contour deformation, and the conditions under which the substitution is applicable.

Contextual Notes

Participants highlight the importance of analyticity and continuity in the context of complex integration, noting that the behavior of the integrand near singular points can affect the validity of the substitution and the evaluation of the integral.

geoduck
Messages
257
Reaction score
2
I wanted to do this integral $$\int_a^b \frac{dx}{1-x^2} $$ and I was able to get the right answer with the substitution u=ix, where i is the square root of -1.

But is this a valid mathematical procedure? $$\int_a^b \frac{dx}{1-x^2}=i \int_{-ia}^{-ib} \frac{du}{1+u^2}$$

Do those limits even make sense? They don't make sense in terms of area under a curve. But the integral over real numbers is inverse tangent, and if you just plug in the imaginary number into inverse tangent, you get the right answer?
 
Physics news on Phys.org
I think the substitution is fine as long as the variable is pure imaginary, because the analysis is equivalent to that on the real line. Computing an arctan of an imaginary number has to be done carefully, since the function has branches. You could also do the integral without substitution by partial fraction decomposition in terms of ##1/(i \pm x)##, in which case you will also consider the branches of the log function.
 
Yes, the procedure is valid, with caveats already mentioned by fzero.

Switching integration to some path in the complex plane is a nifty trick in "advanced" integration theory (you can get radical simplifications in the computational burden), but you have to know what you are doing...
 
arildno said:
but you have to know what you are doing...

I really think Alice says it best in regards to applying the Fundamental Theorem of Calculus to line integrals over multi-valued functions and feel she should be quoted in all new Complex Analysis textbooks:

The integral of the function over the path is equal to the difference of the function's antiderivative at the end points of the contour along an analytically-continuous path over the antiderivative.

https://www.physicsforums.com/showthread.php?t=702808
 
:smile:
 
Thanks everyone. I'm slightly confused though. I'm a little bit familiar with complex integration. However, is this a case of complex integration? The original integral is on the real number line. Is the new integral with limits -ia and -ib on the imaginary line? It can't be, because in order to get it there, don't you have to deform the contour so that it goes over the imaginary line? But not such deformation took place, just a substitution of variables?
 
geoduck said:
Thanks everyone. I'm slightly confused though. I'm a little bit familiar with complex integration. However, is this a case of complex integration? The original integral is on the real number line. Is the new integral with limits -ia and -ib on the imaginary line? It can't be, because in order to get it there, don't you have to deform the contour so that it goes over the imaginary line? But not such deformation took place, just a substitution of variables?

Ok, first off I get a different integral if I let u=ix:

\int_a^b \frac{1}{1-x^2}dx=-i\int_{ia}^{ib} \frac{1}{1+u^2}du, \quad u=ix

Secondly, they're all contour integrals, the real ones are just real integrands over the real axis. So take a "contour" over the real axis from a to b and then make the transformation u=ix for x over that path and we create a new path along the imaginary axis from ia to ib.

And finally, most importantly, if we map that path along the imaginary axis onto the antiderivative in an analytically-continuous fashion, then we can write:

\int_a^b \frac{1}{1-x^2}dx=-i\int_{ia}^{ib} \frac{1}{1+u^2}du=-i\arctan(u)\biggr|_{ia}^{ib}

I should point out if the integration path includes the point i or -i, then we can't simply map the path onto the arctan function using a straight line. Passing through those points would not be in an analytically-continuous fashion. We'd have to indent around those singular points.
 
Last edited:
  • Like
Likes   Reactions: 1 person
jackmell said:
Secondly, they're all contour integrals, the real ones are just real integrands over the real axis. So take a "contour" over the real axis from a to b and then make the transformation u=ix for x over that path and we create a new path along the imaginary axis from ia to ib.

I think I got confused because often you see problems where an integral over I1 can be written as an integral over I2 if I1 +I2 form a closed curve and no poles are enclosed. In that case the contours I1 and I2 are in the same complex plane.

But I guess you're saying that a substitution involves a mapping from one complex plane to another. So [a,b] on the real line in the complex plane z gets mapped to [ia,ib] on the imaginary line of complex plane u, where z and u are different planes.

And finally, most importantly, if we map that path along the imaginary axis onto the antiderivative in an analytically-continuous fashion, then we can write:

\int_a^b \frac{1}{1-x^2}dx=-i\int_{ia}^{ib} \frac{1}{1+u^2}du=-i\arctan(u)\biggr|_{ia}^{ib}

I should point out if the integration path includes the point i or -i, then we can't simply map the path onto the arctan function using a straight line. Passing through those points would not be in an analytically-continuous fashion. We'd have to indent around those singular points.

And here I guess you mean we would have to deform the contour in the same complex plane, and not use a substitution of variables?

Is it true that you can always perform the substitution u=ix no matter if your function is well-behaved or not, but only when using the fundamental theorem of calculus do you have to worry about analytic-continuity? So for

\int_a^b \frac{1}{1-x^2}dx=-i\int_{ia}^{ib} \frac{1}{1+u^2}du=-i\arctan(u)\biggr|_{ia}^{ib}

the first equality is always true, but the second may or may not be true depending on analycity?
 
Last edited:
geoduck said:
I think I got confused because often you see problems where an integral over I1 can be written as an integral over I2 if I1 +I2 form a closed curve and no poles are enclosed. In that case the contours I1 and I2 are in the same complex plane.

That's deformation of path when the integrand is analytic in a region containing both paths. That's not relevant here.

But I guess you're saying that a substitution involves a mapping from one complex plane to another. So [a,b] on the real line in the complex plane z gets mapped to [ia,ib] on the imaginary line of complex plane u, where z and u are different planes.

That's exactly right: we have a path in the (complex) x-plane and a mapping, u=ix, taking the path into another path in the complex u-plane.

And here I guess you mean we would have to deform the contour in the same complex plane, and not use a substitution of variables?
I think you're referring to my comment about "indenting" around the singular points of arctan(u) which are at u=i and u=-i. We could do that for example if we wanted to compute the principal-valued integral:

\text{P.V.} \int_0^2 \frac{1}{1-x^2}dx


Is it true that you can always perform the substitution u=ix no matter if your function is well-behaved or not, but only when using the fundamental theorem of calculus do you have to worry about analytic-continuity? So for

\int_a^b \frac{1}{1-x^2}dx=-i\int_{ia}^{ib} \frac{1}{1+u^2}du=-i\arctan(u)\biggr|_{ia}^{ib}

the first equality is always true, but the second may or may not be true depending on analycity?

As long as the path is analytically-continuous (smooth and differentiable) over the antiderivative, then we can use it's values at the endpoints to compute the integral. In the case of the principal-valued integral above, if we were to make the substitution u=ix and integrate over u from 0 to 2i and indent around i, we loose analyticity by creating a half-circle contour connected to two straight lines and so must break-up the integral into three integrals, two over the straight paths, and one over the half-circle if we wish to use antiderivatives to compute the integral.
 
  • #10
jackmell said:
As long as the path is analytically-continuous (smooth and differentiable) over the antiderivative, then we can use it's values at the endpoints to compute the integral. In the case of the principal-valued integral above, if we were to make the substitution u=ix and integrate over u from 0 to 2i and indent around i, we loose analyticity by creating a half-circle contour connected to two straight lines and so must break-up the integral into three integrals, two over the straight paths, and one over the half-circle if we wish to use antiderivatives to compute the integral.

I wish to state for the record that I believe this is not correct: it has nothing to do with indenting the path but rather I believe since the original path is going through a singular point, we cannot use a single antiderivative for this computation. For one thing, we could just deform the indentation until it were smooth at the junction of the straight line segments. And I can certainly construct a bent contour over an analytic domain of an antiderivative and compute the associated integral with the end-point values from a single antiderivative, that is, as long as the contour does not pass through a singular point rendering the path non-analytic.
 
Last edited:
  • #11
This is not such an easy issue. I'd stay within real analysis for this integral to be on the save side.

First of all it's clear that one shouldn't have 1 and -1 in the (closed!) intervall [a,b].

Now let's first look for the antiderivative of the integrand, which is most easily found using
\frac{1}{1-x^2}=\frac{1}{2} \left (\frac{1}{1+x}-\frac{1}{1-x} \right ).
This gives
F(x)=\int \mathrm{d} x \frac{1}{1-x^2} = \frac{1}{2}[\ln(|1+x|-\ln(|1-x|)], \quad x \neq \pm 1.

Second we have to distinguish three cases:

(a) [a,b] \subset (-1,1)
(b) [a,b] \subset (1,\infty)
(c) [a,b,] \subset (-\infty,-1)

For case (a) we have
F(x)=\frac{1}{2} [\ln(1+x) - \ln(1-x)]=\frac{1}{2} \ln \left (\frac{1+x}{1-x} \right ) = \mathrm{artanh} \; x
and thus
\int_a^b \mathrm{d} x \frac{1}{1-x^2}=\mathrm{artanh} \; b-\mathrm{artanh} \; a.

For case (b) we have
F(x)=\frac{1}{2} [\ln(1+x)-\ln(x-1)]=\frac{1}{2} \ln \left (\frac{x+1}{x-1} \right )=\mathrm{arcoth} \; x
and thus
\int_a^b \mathrm{d} x \frac{1}{1-x^2}=\mathrm{arcoth} \; b-\mathrm{arcoth} \; a.

For case (c) we have
F(x)=\frac{1}{2} [\ln(-x-1)-\ln(1-x)]=\frac{1}{2} \ln \left (\frac{x+1}{x-1} \right ) = \mathrm{arcoth} \; x
and thus
\int_a^b \mathrm{d} x \frac{1}{1-x^2}=\mathrm{arcoth} \; b-\mathrm{arcoth} \; a.

Using complex integration is pretty subtle here, because you have logs involved which have a branching point at its arguments vanishing. Thus integrating in the sense of complex functions, you have to be very careful about choosing your path of integration, connecting a and [/itex]b[/itex] on the real axis. It depends on, how you deform your real integration path. This is the more true, if 1 \in (a,b) or -1 \in (a,b). Then the real integral as it stands is undefined. Sometimes in applications, you have to make sense of such an integral, and then the context of your application decides in which sense you have to read the integral. You can define it by deforming the originally real integration path in the complex plane, but the result depends on, which path is chosen, i.e., which branches of the logarithms you take and where you cut the plane for to define the particular Riemann sheet you choose your logarithms from.
 
Last edited:
  • Like
Likes   Reactions: 1 person
  • #12
vanhees71 said:
Using complex integration is pretty subtle here, because you have logs involved which have a branching point at its arguments vanishing. Thus integrating in the sense of complex functions, you have to be very careful about choosing your path of integration, connecting a and [/itex]b[/itex] on the real axis. It depends on, how you deform your real integration path. This is the more true, if 1 \in (a,b) or -1 \in (a,b). Then the real integral as it stands is undefined. Sometimes in applications, you have to make sense of such an integral, and then the context of your application decides in which sense you have to read the integral. You can define it by deforming the originally real integration path in the complex plane, but the result depends on, which path is chosen, i.e., which branches of the logarithms you take and where you cut the plane for to define the particular Riemann sheet you choose your logarithms from.

Oh vanhees you take all the fun out of it.

There is a saying in martial arts, "cry in the dojo, laugh on the battle field". Well, we're all in the math dojo in here, learning from all the great masters of the world, struggling through kata, learning all the ancient techniques and depending how much we practice will in a large part determine our success in battle and if we stay in math long enough we will one day confront problems that no one else on Earth can help us solve and will have to battle them alone.

Now I argue that we can solve the integral:

\text{P.V}\int_0^2 \frac{1}{1-x^2}=-i\int_{0}^{2i} \frac{1}{1+u^2}du

using antiderivatives in such a way that the answer does not depend on how we indent around the singular point and agrees with the real analytic analysis. I'm not sure though as I haven't worked it out. But when you're in the dojo, you can't be afraid to fight. :)
 
  • #13
Well, writing the principle-value symbol in front of the integral makes everything well defined, but I still don't like the idea to unnecessarily introduce complex integration here. Just use the definition.

Writing again
\frac{1}{1-x^2}=\frac{1}{2} \left (\frac{1}{1+x}-\frac{1}{1-x} \right),
we need to worry about the principal value only for the second term since only for it the singular point x=1 is within the integration region. Thus we only need
\mathrm{PV}\int_0^2 \mathrm{d} x \frac{1}{x-1}=0,
because the integrand is odd at x=1 and the integration interval symmetric around this point.

One should not fight with complicated weapons if there is a simpler way ;-).
 
  • #14
vanhees71 said:
Well, writing the principle-value symbol in front of the integral makes everything well defined, but I still don't like the idea to unnecessarily introduce complex integration here. Just use the definition.

Writing again
\frac{1}{1-x^2}=\frac{1}{2} \left (\frac{1}{1+x}-\frac{1}{1-x} \right),
we need to worry about the principal value only for the second term since only for it the singular point x=1 is within the integration region. Thus we only need
\mathrm{PV}\int_0^2 \mathrm{d} x \frac{1}{x-1}=0,
because the integrand is odd at x=1 and the integration interval symmetric around this point.

. . . oh. I didn't see that way. Nice! Thank you.

One should not fight with complicated weapons if there is a simpler way ;-).


Agreed.

Still though I may wish to pursue the complex way just for fun to see if it does indeed not matter how we indent around the singular point.
 
  • #15
Sure, it's a great thing to play with the integral, using complex integration. You may use different paths to define the various branches of the integral, determine which paths lead to the same and which to different results, etc. This is of course a more advanced issue than the original question on the real integral!
 
  • #16
vanhees71 said:
Sure, it's a great thing to play with the integral, using complex integration. You may use different paths to define the various branches of the integral, determine which paths lead to the same and which to different results, etc. This is of course a more advanced issue than the original question on the real integral!

Gonna' have to disagree with you vanhees not that I want the mentors to get involved and lock the thread but he did say integrate from "a" to "b" without specifying what those values were and I think you and I would both agree if that were a test question and we constrained a and b to just baby values like from 1/2 to 3/4, then I'm sure our professor would pounce on us for not considering all cases. :)

That is, the integral could be complex if a and b were, not that we need to use complex means. As well as the principal-valued case which I think would catch a lot of students.

And one final comment regarding the OP's comment:

geoduck said:
They don't make sense in terms of area under a curve.

An integral of a complex-valued function IS area under a curve. Oh, that would be a good test question guys to see if you know what's going on: Explain how the complex integral:

\int_{i/4}^{3i/4} \frac{1}{1+z^2}dz

is (real) area under a curve. Just for fun if you want. :)
 
Last edited:

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K