Integral of 1 / (x^2 + 2) dx ?

  • Thread starter Thread starter askor
  • Start date Start date
  • Tags Tags
    Dx Integral
Click For Summary

Homework Help Overview

The discussion revolves around the integration of the function $$\int \frac{1}{x^2 + 2} dx$$, which falls under the subject area of calculus, specifically integral calculus. Participants are exploring various methods and reasoning related to this integral.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the validity of the original poster's attempt at integration and suggest checking the differentiation of the result. There are mentions of trigonometric substitution and alternative substitutions that could simplify the integral. Some participants question the necessity of certain methods and explore the relationship between this integral and similar standard integrals.

Discussion Status

The discussion is active, with various participants providing hints and suggestions without reaching a consensus. Some guidance has been offered regarding potential substitutions and methods, while others express confusion about the necessity of trigonometric substitution for this particular integral.

Contextual Notes

There are indications that the original problem may have been misinterpreted or that the format of the question has led to some confusion among participants. The original poster's attempts and the responses highlight a mix of understanding and uncertainty regarding the integration techniques applicable to this integral.

  • #31
ergospherical said:
@bob012345, multiply the identity ##\dfrac{1}{(x+3i)(x-3i)} = \dfrac{A}{x + 3i} + \dfrac{B}{x-3i}## by the factor ##(x-3i)##, and then set ##x = 3i## (you can do this because the identity holds for all ##x##). And do a similar thing to find ##A##.
I originally assumed ##A,B## were real leading to trouble. That's when I made that comment. I realized later they might be complex but it was too late. Thanks!
 
Physics news on Phys.org
  • #32
bob012345 said:
I tried but I cannot see how ##A,B## are constants?
Both are imaginary constants. I get A = i/6 and B = -i/6.
 
  • Like
Likes   Reactions: bob012345
  • #33
Mark44 said:
Both are imaginary constants. I get A = i/6 and B = -i/6.
I got that too. Now for fun I'll try the original integral this way but quietly...
 
  • #34
In my class I taught this as a trig substitution. I.e. we know (at least) two basic trig identities with squares in them: sin^2+cos^2=1, and 1+tan^2 = sec^2, (obtained by dividing the first one by cos^2). the first one gives cos^2 = 1-sin^2, and so we have identities that can be used to simplify 1-x^2 as well as 1+x^2, by putting x = sin(t) or x = tan(t).

To integrate dx/(1+x^2), we put x = tan(t), and dx = sec^2(t)dt, and get the integral as t. and since x= tan(t), we have t = arctan(x).

in your case you have 2+x^2 which looks like 1+tan^2, except off by a constant. now constant multipliers do no harm so you could try setting 2+x^2 = c(1+tan^2(t)), and go from there.

complex methods are also fun and illuminating, but sometimes may give non real answers. of course if you know e^it = cos(t) + i sin (t), you can often find your way back.

In fact when you look at complex numbers and complex path integrals, log and arctan are somewhat the same, except for interchanging i and -i with 0 and infinity, since integration of 1/(1+z^2) behaves the same as you go around i and -i as integrating 1/z does as you go around 0 and infinity!
 
  • Like
Likes   Reactions: bob012345 and PeroK
  • #35
bob012345 said:
I got that too. Now for fun I'll try the original integral this way but quietly...
Finished and got the same results but converting from the natural log form was not trivial unless one already knew about the relationship as mentioned by @mathwonk above, which I didn't but now I do. So, yes, it can be done without a trig substitution but to me, not as easily.

But in a way both are doing similar things in that one is mapping the problem from a one dimensional space to a two dimensional space, the ##x,y## plane with an angle in one case and the complex plane in the other.
 
  • #36
bob012345 said:
Is there some simple easy trick I am missing that makes this much easier than ? You can tell me privately if you wish.
Please take a look at attached calculation.
2021-10-09 11.27.54.jpg
 
Last edited by a moderator:
  • Like
Likes   Reactions: bob012345
  • #37
mitochan said:
Please take a look at attached calculation.
Thanks. It does seem simpler with the ##1## in the denominator.
 
Last edited:
  • #38
ergospherical said:
@bob012345, multiply the identity ##\dfrac{1}{(x+3i)(x-3i)} = \dfrac{A}{x + 3i} + \dfrac{B}{x-3i}## by the factor ##(x-3i)##, and then set ##x = 3i## (you can do this because the identity holds for all ##x##). And do a similar thing to find ##A##.
But for x=3i makes some of the denominators of the identity zero...
 
  • #39
Delta2 said:
But for x=3i makes some of the denominators of the identity zero...
If you multiply both sides by one of the factors, say ##x-3i##, solve for ##A## and then set ##x=3i## it works. Cancel those terms before you make the substitution.
 
  • #40
Delta2 said:
But for x=3i makes some of the denominators of the identity zero...
That's the idea, so you can find A, then do x=-3i and find B.
 
  • #41
Tapias5000 said:
That's the idea, so you can find A, then do x=-3i and find B.
I think it is being suggested this is like the proof ##1=2##.
 
  • #42
bob012345 said:
If you multiply both sides by one of the factors, say ##x-3i##, solve for ##A## and then set ##x=3i## it works. Cancel those terms before you make the substitution.
Emmm, by multiplying both sides by (x-3i) and then making x=3i, you will not fall into any error, it is valid to do so.
 
  • #43
It should not have been left to the reader to do first the multiplication of the identity by x-3i, it should have been explicitly mentioned by @ergospherical :D.
 
  • #44
Delta2 said:
But for x=3i makes some of the denominators of the identity zero...
You can think of it like this:
\begin{align*}
\lim_{x \to 3i} (x-3i)\frac{1}{(x-3i)(x+3i)} &= \lim_{x \to 3i} (x-3i)\left[\frac{A}{x-3i}+\frac{B}{x+3i}\right] \\
\lim_{x \to 3i} \frac{1}{x+3i} &= \lim_{x \to 3i} \left[A+B\frac{x-3i}{x+3i}\right] \\
\end{align*} After canceling the factors of ##x-3i##, the functions are continuous at ##x=3i##, so you can evaluate the limit by simply plugging in the value.
 
  • Like
Likes   Reactions: SammyS
  • #45
mitochan said:
Please take a look at attached calculation.
This is exactly how I would do it.
 
  • #46
bob012345 said:
I think it is being suggested this is like the proof ##1=2##.
No, not at all. I think you might be referring to the post by ergospherical.
ergospherical said:
multiply the identity ##\dfrac{1}{(x+3i)(x-3i)} = \dfrac{A}{x + 3i} + \dfrac{B}{x-3i}## by the factor ##(x-3i)##, and then set ##x = 3i## (you can do this because the identity holds for all ##x##). And do a similar thing to find ##A##.
An important point is that the equation above is an identity: one that is is true for all values of the variable x, excepting only ##x = \pm 3i##. For any values of x other than these two, we can multiply both sides of the equation by ##(x + 3i)(x - 3i)## to get this equation:
##1 = A(x - 3i) + B(x + 3i)##
The new equation is still an identity: it must be true for any value of x. The way I chose to go is to solve for A and B like so:
##1 = (A + B)x - 3i(A - B)
For this to be true for all values of x, A + B must be 0 (there is no x term on the left side), and -3i(A - B) = 1.
Solve these two equations for A and B, and Bob's your uncle.
 
Last edited:
  • Like
Likes   Reactions: benorin, bob012345 and Tapias5000
  • #47
Delta2 said:
It should not have been left to the reader to do first the multiplication of the identity by x-3i, it should have been explicitly mentioned by @ergospherical :D.
hehe, I use Quora more so my answers are usually complete aum, I'm not used to this forum at all hehe. :sorry:
 
  • #48
bob012345 said:
Thanks. It does seem simpler with the ##1## in the denominator.
Then
\int \frac{dx}{x^2+2}= \frac{1}{\sqrt{2}}\int\frac{d\frac{x}{\sqrt{2}}}{(\frac{x}{\sqrt{2}})^2+1}=...
 
Last edited:
  • Like
Likes   Reactions: benorin and Delta2
  • #49
mitochan said:
Then
\int \frac{dx}{x^2+2}= \frac{1}{\sqrt{2}}\int\frac{d\frac{x}{\sqrt{2}}}{(\frac{x}{\sqrt{2}})^2+1}=...
I just used a basic trig with ##tan(\theta)= \large\frac{x}{a}## and it worked fine.
 
  • #50
bob012345 said:
I just used a basic trig with ##tan(\theta)= \large\frac{x}{a}## and it worked fine.
The image in post #36 shows why this substitution works. For ##x^2 + 2##, the length of the leg adjacent to the angle is ##\sqrt 2## rather than 1.
 
  • #51
Mark44 said:
The image in post #36 shows why this substitution works. For ##x^2 + 2##, the length of the leg adjacent to the angle is ##\sqrt 2## rather than 1.
Of course and the point I made was the method I used works for any ##a##. That's why I used ##a## and not ##1##. I found it easier than manipulating the integral first to make it a ##1## or using complex numbers.
 
Last edited:
  • #52
Now try it with a hyperbolic trig substitution.
 
  • #53
vela said:
Now try it with a hyperbolic trig substitution.
I tried it and it was not easier by any means.
 
  • #54
I think that the most straightforward way is to factorise ##x^2+2## into ##2\left(1+x^2/2\right)=2\left[1+(x/\sqrt 2)^2\right]##.
When you see an integral close to one that you would usually find in an integration table, ##(1+x^2)^{-1}## for instance, try adding a ##0## or factorising something.
 
  • Like
Likes   Reactions: benorin
  • #55
You guys have beaten this integral in a few ways, OP did you follow any of them? The easy way involves ##1+\left(\tfrac{x}{\sqrt{2}}\right) ^2## and a trig substitution. You probably haven’t learned series methods yet but that would of course be much harder.

I think you can safely lock this thread.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 44 ·
2
Replies
44
Views
6K
Replies
3
Views
2K
Replies
9
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K