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

  • Thread starter askor
  • Start date
  • #1
148
7
Mentor note: Moved from technical section, so missing the homework template.
How do you integrate this?

$$\int \frac{1}{x^2 + 2} dx$$

My attempt is $$\ln |x^2 + 2| + C$$
 
Last edited by a moderator:

Answers and Replies

  • #2
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2020 Award
19,379
10,869
Did you try differentiating your answer to see whether you get the integrand?
 
  • #3
35,439
7,308
How do you integrate this?

$$\int \frac{1}{x^2 + 2} dx$$

My attempt is $$\ln |x^2 + 2| + C$$
At least this time you showed an attempt. You can always check your work with an indefinite integral by differentiating your answer. If you do this and get the original integrand, your work is correct.

Note that ##\ln|x^2 + 2| = \ln(x^2 + 2)##, so the absolute value isn't needed.

$$\frac d {dx} \left( \ln(x^2 + 2)\right) = \frac 1 {x^2 + 2} \cdot \frac d {dx} (x^2 + 2)$$
Does that work out to your integrand?
 
Last edited:
  • #4
40
10
<Post edited by a mentor, to place more of the burden on the thread starter.>
Your answer is incorrect, for your answer to be valid you would have to alter the original problem in this way.
##
\begin{array}{l}\int _{ }^{ }\frac{2x}{x^2+2}dx\ \left(u=x^2+2,\ dx=\frac{du}{2x}\right)\\

\ln \left|x^2+2\right|+C\\\end{array}
##
obviously modifying the exercise is not valid.
Instead what you have to do is a trigonometric substitution.
 
Last edited by a moderator:
  • #5
148
7
<Post edited by a mentor, to place more of the burden on the thread starter.>
Your answer is incorrect, for your answer to be valid you would have to alter the original problem in this way.
##
\begin{array}{l}\int _{ }^{ }\frac{2x}{x^2+2}dx\ \left(u=x^2+2,\ dx=\frac{du}{2x}\right)\\

\ln \left|x^2+2\right|+C\\\end{array}
##
obviously modifying the exercise is not valid.
Instead what you have to do is a trigonometric substitution.

This is what I am looking for. Before my question is deleted, I asked for clues and hints. But my question is deleted because I don't write my attempt. I thought trigonometric substitution only work if there is available a square root such as ##\sqrt{x^2 + 2}##.
 
  • #6
40
10
This is what I am looking for. Before my question is deleted, I asked for clues and hints. But my question is deleted because I don't write my attempt. I thought trigonometric substitution only work if there is available a square root such as ##\sqrt{x^2 + 2}##.
You don't have to have a root to do it, you could even do a trigonometric substitution in this integral
## \int _{ }^{ }\left(x^2+2\right)dx ## and would get the same response as doing it the quickest way.
 
  • #7
mathman
Science Advisor
8,009
518
.answer is of the form ##Aarctan(Bx)+C##. Work out the constants
 
  • #8
293
132
If you can integrate
[tex]\int \frac{1}{x^2+1} dx[/tex]
you are not far from the answer.
 
  • #9
Delta2
Homework Helper
Insights Author
Gold Member
4,584
1,867
You don't need a trigonometric sub for this one, a substitution of the form ##y=Ax## (what the constant A should be equal to?) and the hint from the previous post is enough to solve the problem.
 
  • #10
35,439
7,308
I thought trigonometric substitution only work if there is available a square root such as ##\sqrt{x^2 + 2}##.
No. Trig substitution is helpful if you have the sum or difference of squared terms - they don't need to be inside a square root.
 
  • #11
bob012345
Gold Member
1,039
329
Sorry, I didn't mean to give too much help. Is this an actual homework problem or just a question? From the format it is not clear to me. Thanks.
 
  • #12
vela
Staff Emeritus
Science Advisor
Homework Helper
Education Advisor
15,231
1,831
The thread probably should have been in the homework forum.
 
  • #13
35,439
7,308
The thread probably should have been in the homework forum.
Belatedly moved...:oldwink:
 
  • Like
Likes SammyS and bob012345
  • #14
204
106
Why not let ##u = x/\sqrt{2}##?
 
  • #15
bob012345
Gold Member
1,039
329
If you can integrate
[tex]\int \frac{1}{x^2+1} dx[/tex]
you are not far from the answer.
Is there some simple easy trick I am missing that makes this much easier than ##\int \frac{1}{x^2+2} dx##? You can tell me privately if you wish.
 
  • #16
204
106
Is there some simple easy trick I am missing that makes this much easier than ##\int \frac{1}{x^2+2} dx##? You can tell me privately if you wish.
Do you watch blackpenredpen ever? His strategy to integrals is sometimes "wouldn't it be nice if we could take [annoyingly difficult integral] and convert it into [something easy] to integrate. A simple, but hard to spot substitution can actually convert that integral into something that looks A LOT like the quoted integral.

Also the integral of 1/x^2+1 is a standard integral, evaluating to arctan(x) + C.
 
  • #17
bob012345
Gold Member
1,039
329
Do you watch blackpenredpen ever? His strategy to integrals is sometimes "wouldn't it be nice if we could take [annoyingly difficult integral] and convert it into [something easy] to integrate. A simple, but hard to spot substitution can actually convert that integral into something that looks A LOT like the quoted integral.

Also the integral of 1/x^2+1 is a standard integral, evaluating to arctan(x) + C.
I know you can make it look like ##\int \frac{dx}{x^2+1}##with a trivial substitution which was already given in this thread but the question is then is there a clever trick that makes it much easier to integrate than ##\int \frac{dx}{x^2+2}##using other substitutions after that?

I think the issue is for the OP to do the integration and not just look it up as a 'standard' integral. My point is if you do the integration on both, they are the same difficulty are they not?
 
  • #18
204
106
I know you can make it look like ##\int \frac{dx}{x^2+1}##with a trivial substitution which was already given in this thread but the question is then is there a clever trick that makes it much easier to integrate than ##\int \frac{dx}{x^2+2}##using other substitutions after that?

I think the issue is for the OP to do the integration and not just look it up as a 'standard' integral. My point is if you do the integration on both, they are the same difficulty are they not?
Why would you need a trig substitution? Once you do the clever substitution, the answer practically gives itself.

I have no idea how to arrive at arctan(x) by integrating that. But it is actually fairly easy to prove that (arctan(x))' = 1/x2+2. Thus, using F'(x)=f(x), you can argue your case easily. Maybe you can find a trick to rewrite the integral such that you can do a partial fraction decomposition, but that just seems like a lot of work.
 
  • #19
bob012345
Gold Member
1,039
329
Why would you need a trig substitution? Once you do the clever substitution, the answer practically gives itself.

I have no idea how to arrive at arctan(x) by integrating that. But it is actually fairly easy to prove that (arctan(x))' = 1/x2+2. Thus, using F'(x)=f(x), you can argue your case easily. Maybe you can find a trick to rewrite the integral such that you can do a partial fraction decomposition, but that just seems like a lot of work.
My table of Integrals has the general case ##\int \frac{dx}{x^2+a^2}## as a 'standard' integral too, not just the case where ##a=1##. But I think this being a Calculus homework problem it is expected of the OP to figure out how to do it. Hints were given above.
 
  • #20
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2020 Award
19,379
10,869
Why would you need a trig substitution? Once you do the clever substitution, the answer practically gives itself.
I'm intrigued. If the answer is an inverse trig function, then how can trig functions be avoided?
 
  • #21
204
106
I'm intrigued. If the answer is an inverse trig function, then how can trig functions be avoided?
Perhaps the confusion lies in me not evaluating 1/x^2+1 manually but simply using the standard integral. Thinking about it, that integral could probably be solved with trig substitution.
 
  • #22
35,439
7,308
Why would you need a trig substitution?
See below.
I have no idea how to arrive at arctan(x) by integrating that.
It can be done very easily by using a trig substitution; namely ##x = \tan(\theta)##. With this substitution, the integration becomes trivial.
But it is actually fairly easy to prove that (arctan(x))' = 1/x2+2
You need more parentheses. Taken literally, what you have written (twice) would be interpreted to mean this:
$$\frac 1 {x^2} + 2$$

Without LaTeX, the above should be written as 1/(x^2 + 2).
 
  • #23
40
10
I'm intrigued. If the answer is an inverse trig function, then how can trig functions be avoided?
You could use imaginary numbers then partial fractions and you will get 2 logarithms, so you can skip the trigonometric substitution in this case.
 
  • Like
Likes Mayhem and PeroK
  • #24
bob012345
Gold Member
1,039
329
You could use imaginary numbers then partial fractions and you will get 2 logarithms, so you can skip the trigonometric substitution in this case.
How about an unrelated example so as not to directly solve this integral but to illustrate the principle?
 
  • #25
35,439
7,308
How about an unrelated example so as not to directly solve this integral but to illustrate the principle?
The main part is the algebra involved. Suppose we have ##\frac 1 {x^2 + 9}##.

$$\frac 1 {x^2 + 9} = \frac 1 {(x + 3i)(x - 3i)} = \frac A {x + 3i} + \frac B {x - 3i}$$
After finding the constants A and B it's relatively simple to compute the integral ##\int \frac {dx}{x^2 + 9}## as it can now be written as two simpler integrals.
 
  • Like
Likes bob012345 and Tapias5000

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

  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
1
Views
8K
Replies
7
Views
85K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
7
Views
3K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
890
  • Last Post
Replies
5
Views
5K
Replies
4
Views
3K
Replies
3
Views
2K
Top