Guessing integrals - change of variable

Click For Summary

Homework Help Overview

The discussion revolves around evaluating the integral \(\int^{∞}_{0}\frac{dx}{1+x^{2}}\) using a change of variable, as presented in Mahajan's Street-fighting Mathematics. Participants are exploring methods to relate this improper integral to a finite integral, specifically \(2 \int^{1}_{0}\frac{dx}{1+x^{2}}\), which is suggested to be easier to evaluate numerically.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss various substitutions, including \(tan\theta=x\) and \(x = \frac{-2u}{u^2-1}\), to transform the integral. There is a focus on understanding the implications of these substitutions and whether they align with the goal of the problem. Questions arise about the meaning of "closed form" and how to interpret the results of the integral.

Discussion Status

Several participants have offered hints and suggestions regarding substitutions and the interpretation of the problem. There is an ongoing exploration of the relationships between the integrals and the nature of the functions involved. Some participants express uncertainty about their mathematical skills and the effectiveness of the proposed substitutions, indicating a collaborative effort to clarify these points.

Contextual Notes

Participants mention the challenge of working with infinite limits in integration and the need to convert them to finite bounds. There is also a recognition of the potential confusion surrounding terminology, particularly regarding what constitutes a "closed form" in the context of this problem.

SpudsMcGinty
Messages
3
Reaction score
0

Homework Statement



I'm working through Mahajan's Street-fighting Mathematics for fun, and am a bit puzzled about the following problem:

Use a change of variable to show that

\int^{∞}_{0}\frac{dx}{1+x^{2}} = 2 \int^{1}_{0}\frac{dx}{1+x^{2}}
The second integral has a finite integration range, so it is easier than the first integral to evaluate numerically. Estimate the second integral using the trapezoidal approximation. Then guess a closed form for the first integral.

The Attempt at a Solution



It's mostly the first part that's tripping me up. I could use the substitution

tan\theta=x

and solve both integrals, resulting in

\frac{\pi}{2} = 2(\frac{\pi}{4})

but surely that defeats the purpose here, as I'm solving an integral so I can go back and re-solve it using the result...

The substitution

x = \frac{-2u}{u^2-1}

results in

\int^{∞}_{0}\frac{dx}{1+x^{2}} = 2 \int^{1}_{0}\frac{du}{1+u^{2}}

which is what we want I guess. However, after getting frustrated with trial and error, I figured out that substitution by solving a nonlinear differential equation in Mathematica, which was more work than just solving the integral.

My calculus is a bit rusty - is there some trick for figuring out substitutions that I've forgotten? Is there some easy substitution here that I've missed?

Regarding the rest of the question, when he asks for a closed form does he mean the following? I find the language in US textbooks confusing at times...

\int\frac{dx}{1+x^{2}} = arctan(x) + C

Thanks in advance!
 
Physics news on Phys.org
Hint:
\int_0^{\infty} \frac{dx}{1+x^2} =\int_0^1 \frac{dx}{1+x^2}+ \int_1^{\infty} \frac{dx}{1+x^2}

By "closed form" he means
\int_0^{\infty} \frac{dx}{1+x^2} = \frac{\pi}{2}

(Love the book, by the way.)
 
SpudsMcGinty said:

Homework Statement



I'm working through Mahajan's Street-fighting Mathematics for fun, and am a bit puzzled about the following problem:

The Attempt at a Solution



It's mostly the first part that's tripping me up. I could use the substitution tan\theta=x
...

but surely that defeats the purpose here, as I'm solving an integral so I can go back and re-solve it using the result...

The substitution

x = \frac{-2u}{u^2-1}

results in

\int^{∞}_{0}\frac{dx}{1+x^{2}} = 2 \int^{1}_{0}\frac{du}{1+u^{2}}

which is what we want I guess. However, after getting frustrated with trial and error, I figured out that substitution by solving a nonlinear differential equation in Mathematica, which was more work than just solving the integral.

My calculus is a bit rusty - is there some trick for figuring out substitutions that I've forgotten? Is there some easy substitution here that I've missed?

Regarding the rest of the question, when he asks for a closed form does he mean the following? I find the language in US textbooks confusing at times...

\int\frac{dx}{1+x^{2}} = arctan(x) + C

Thanks in advance!
Hello SpudsMcGinty. Welcome to PF !

For what it's worth, this is my take on the problem ...

Mahajan says to use a change of variable to show that \displaystyle \int^{∞}_{0}\frac{dx}{1+x^{2}} = 2 \int^{1}_{0}\frac{dx}{1+x^{2}}

Well, \displaystyle \frac{1}{1+x^{2}} is an even function, so perhaps we need a change of variable which takes \displaystyle \int^{∞}_{0}\frac{dx}{1+x^{2}} \quad \text{to} \quad \int^{1}_{-1}\ \frac{du}{1+u^{2}}

In that case, we need the following:

u(0) = -1

u(1) = 0

limx→∞ u(x) = 1

Such a function is \displaystyle u(x) = \frac{x-1}{x+1}\ .

I think it will work just fine.
 
Thanks for your replies!

@awkward: Yea the book is great. I really like his material on "the art of approximation" too, hopefully he'll publish that in book form too.

Regarding your hint, I'm afraid my math skills are rustier than I thought! (One of the reasons I'm working through the book) I'm not sure how to use that expression...

So by "closed form" he means the solution? I thought closed form usually meant expressing something in terms of well-known functions, rather than a specific numerical value...

@SammyS: I like your suggestion about using the evenness of the function! Unfortunately I don't think the suggested substitution works...

Correct me if I'm wrong, but I think we need a function f(u) such that:

\frac{1}{1+f(u)^2}f'(u) = \frac{2}{1+u^2}
 
SpudsMcGinty said:
Thanks for your replies!

@SammyS: I like your suggestion about using the evenness of the function! Unfortunately I don't think the suggested substitution works...

Correct me if I'm wrong, but I think we need a function f(u) such that:

\frac{1}{1+f(u)^2}f'(u) = \frac{2}{1+u^2}

Did you try \displaystyle u(x) = \frac{x-1}{x+1}\ ?

Finding x(u):

\displaystyle u = 1-\frac{2}{x+1}

\displaystyle \frac{2}{x+1}=1-u
.
.
.
\displaystyle x(u) = \frac{2}{1-u}-1

Equivalently: \displaystyle x(u) = \frac{1+u}{1-u}\,, which is easier to square.
 
SpudsMcGinty said:
Regarding your hint, I'm afraid my math skills are rustier than I thought! (One of the reasons I'm working through the book) I'm not sure how to use that expression...

For the second integral in the sum, try z = 1/x.
 
@SammyS: my apologies, you're absolutely right! Thanks for your help

@voko: Perfect, thanks!
 
SpudsMcGinty said:
Thanks for your replies!

@awkward: Yea the book is great. I really like his material on "the art of approximation" too, hopefully he'll publish that in book form too.

Regarding your hint, I'm afraid my math skills are rustier than I thought! (One of the reasons I'm working through the book) I'm not sure how to use that expression...

So by "closed form" he means the solution? I thought closed form usually meant expressing something in terms of well-known functions, rather than a specific numerical value...

@SammyS: I like your suggestion about using the evenness of the function! Unfortunately I don't think the suggested substitution works...

Correct me if I'm wrong, but I think we need a function f(u) such that:

\frac{1}{1+f(u)^2}f'(u) = \frac{2}{1+u^2}
I think voko has already given you the final hint you need (I tried to start out with just a _little_ hint and give you some room to complete the problem on your own), but with regard to the "closed form", it's one thing to know from computation that the integral is about 1.57, and another to guess that the exact result may be pi / 2.
 
Generally speaking, when doing numerical quadratures, one always have to convert infinite integration limits to some finite bounds. And substitutions like z = 1/x spring to mind almost immediately if the integration interval does not cross or touch zero.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
10K
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K