How Can You Integrate 1/(x^4 + 4) Using Advanced Calculus Techniques?

  • Thread starter Thread starter Screwdriver
  • Start date Start date
  • Tags Tags
    Dx Integrate
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
10 replies · 43K views
Screwdriver
Messages
125
Reaction score
0

Homework Statement



Well gentlemen, another year, another integral eh? Anyways,

[tex]\int \frac{1}{x^4+4}\,dx[/tex]

I really want to do this without looking at Wolfram/Google.

Homework Equations



U-substitutions, parts, partial fractions

The Attempt at a Solution



Basically I tried to factor the denominator and then subtract something to make up the difference:

[tex]\int \frac{1}{x^4+4}\,dx = \int \frac{1}{(x^2 + 2)^2 - 4x^2}\,dx[/tex]

Then I also noticed that:

[tex]\int \frac{1}{(x^2 + 2)^2 - 4x^2}\,dx = \int \frac{1}{(x^2 + 2)^2 - (2x)^2}\,dx[/tex]

Now here's the iffy part; I know that

[tex]\frac{1}{(x^2 + 2)^2 - (2x)^2} \neq \frac{1}{(x^2 - 2x + 2)^2}[/tex]

But I feel like If I can somehow combine those two things I can maybe decompose this into partial fractions. Yay or nay?
 
Physics news on Phys.org
a^2 - b^2 = (a+b)(a-b)
 
a^2 - b^2 = (a+b)(a-b)

Totally gotcha. How embarrassing...

[Edited for an algebraic error]

[tex]\int \frac{1}{(x^2 + 2)^2 - (2x)^2}\,dx = \int \frac{1}{(x^2 + 2x + 2)(x^2 - 2x + 2)}\,dx[/tex]

[tex]\frac{1}{(x^2 + 2x + 2)(x^2 - 2x + 2)}= \frac{Ax+B}{x^2 + 2x + 2}+\frac{Cx+D}{x^2 - 2x + 2}[/tex]

[tex]1=(Ax + B)(x^2 - 2x + 2) + (Cx + D)(x^2 + 2x + 2)[/tex]

[tex]1=A(x^3 - 2x^2 + 2x)+B(x^2 - 2x + 2)+C(x^3 + 2x^2 + 2x)+D(x^2 + 2x + 2)[/tex]

[tex]1=(A + C)x ^3 + (-2A + B + 2C + D)x^2 + (2A -2B +2C + 2D)x + (2B + 2D)[/tex]

[tex] \end{matrix}<br /> \begin{matrix}<br /> 1& 0& 1& 0& |0\\ <br /> -2& 1& 2& 1& |0\\ <br /> 2& -2& 2& 2& |0\\ <br /> 0& 2& 0& 2& |1<br /> \end{matrix}[/tex]

Solving yielded A=1/8, B=1/4, C=-1/8 and D =1/4.

[tex]\int\frac{Ax+B}{x^2 + 2x + 2}+\frac{Cx+D}{x^2 - 2x + 2}\,dx = \frac{1}{8}\int\frac{x+2}{x^2 + 2x + 2}\,dx-\frac{1}{8}\int\frac{x-2}{x^2 - 2x + 2}\,dx[/tex]

[tex]\frac{1}{8}\int\frac{x+2}{x^2 + 2x + 2}\,dx =\frac{1}{8}\int\frac{x}{x^2 + 2x + 2}\,dx + \frac{1}{4}\int\frac{1}{x^2 + 2x + 2}\,dx[/tex]

and

[tex]-\frac{1}{8}\int\frac{x-2}{x^2 - 2x + 2}\,dx =-\frac{1}{8}\int\frac{x}{x^2 - 2x + 2}\,dx +\frac{1}{4}\int\frac{1}{x^2 - 2x + 2}\,dx[/tex]

Another roadblock. How can I integrate those 4 integrals? Some of them look like lns and arctans...
 
Last edited:
Looks like a good place to complete the square for at least one of them.
 
Just out of curiousity, did you run into this integral while trying to integrate [tex]tan^{-1}(x)[/tex] ? I remember running into some messy algebra for that guy and your question looks similar.
 
Screwdriver said:
Another roadblock. How can I integrate those 4 integrals? Some of them look like lns and arctans...
Do something like

[tex]\int\frac{x}{x^2 - 2x + 2}\,dx = \frac{1}{2}\int\frac{2x-2}{x^2 - 2x + 2}\,dx + \int\frac{1}{x^2 - 2x + 2}\,dx[/tex]

The first integral on the RHS you can do with a simple substitution.
 
Last edited:
You should check your calculations of A and C. I got A=1/8 and C=-1/8 in Mathematica.

You're right. There's an extra D in the matrix; I'm going to edit that post to fix it.

Just out of curiousity, did you run into this integral while trying to integrate[tex] tan^{-1}(x)[/tex] ? I remember running into some messy algebra for that guy and your question looks similar.

No, I ran into it by itself :-p

Using the suggestion put forth by Apphysicist:

[tex]\frac{1}{4}\int\frac{1}{x^2 + 2x + 2}\,dx = \frac{1}{4}\int\frac{1}{(x+1)^2+1}\,dx[/tex]

[tex]u = x + 1[/tex]
[tex]du = dx[/tex]

[tex]\frac{1}{4}\int\frac{1}{(u)^2+1}\,du=\frac{1}{4}arctan(x +1)[/tex]

And for the other one:

[tex]\frac{1}{4}\int\frac{1}{x^2 - 2x + 2}\,dx = \frac{1}{4}\int\frac{1}{(x-1)^2+1}\,dx[/tex]

[tex]u = x - 1[/tex]
[tex]du = dx[/tex]

[tex]\frac{1}{4}\int\frac{1}{(u)^2+1}\,du=\frac{1}{4}arctan(x -1)[/tex]

Using the suggestion put forth by vela, modified slightly:

[tex]\frac{1}{8}\int\frac{x}{x^2 + 2x + 2}\,dx =\frac{1}{16}\int\frac{2x+2}{x^2 + 2x + 2}\,dx - \frac{1}{8}\int\frac{1}{x^2 + 2x + 2}\,dx[/tex]

I've already evaluated the right integral previously, it will be

[tex]-\frac{1}{8}arctan(x +1)[/tex]

So for the left one:

[tex]\frac{1}{16}\int\frac{2x+2}{x^2 + 2x + 2}\,dx[/tex]

[tex]u=x^2+2x+2[/tex]
[tex]du=(2x+2)dx[/tex]

[tex]\frac{1}{16}\int\frac{1}{u}\,dx[/tex]
[tex]\frac{1}{16}ln(x^2+2x+2)[/tex]

Last two:

[tex]-\frac{1}{8}\int\frac{x}{x^2 - 2x + 2}\,dx =-\frac{1}{16}\int\frac{2x-2}{x^2 - 2x + 2}\,dx -\frac{1}{8}\int\frac{1}{x^2 - 2x + 2}\,dx\\[/tex]

I know that they're going to be

[tex]-\frac{1}{8}arctan(x -1)[/tex]

and

[tex]-\frac{1}{16}ln(x^2-2x+2)[/tex]

So FINALLY, the four arctans will combine leaving:

[tex]\int\frac{1}{x^4+4}\,dx = \frac{1}{8}arctan(x +1) +\frac{1}{8}arctan(x-1)+\frac{1}{16}ln(x^2+2x+2)-\frac{1}{16}ln(x^2-2x+2)+C[/tex]

Man triumphs over machine.
 
Last edited:
From Screwdriver's 2nd post.
Screwdriver said:
[tex]\int\frac{Ax+B}{x^2 + 2x + 2}+\frac{Cx+D}{x^2 - 2x + 2}\,dx = \frac{1}{8}\int\frac{x+2}{x^2 + 2x + 2}\,dx-\frac{1}{8}\int\frac{x+2}{x^2 - 2x + 2}\,dx[/tex]

[tex]\frac{1}{8}\int\frac{x+2}{x^2 + 2x + 2}\,dx =\frac{1}{8}\int\frac{x}{x^2 + 2x + 2}\,dx + 2\int\frac{1}{x^2 + 2x + 2}\,dx[/tex]

and

[tex]-\frac{1}{8}\int\frac{x+2}{x^2 - 2x + 2}\,dx =-\frac{1}{8}\int\frac{x}{x^2 - 2x + 2}\,dx +2\int\frac{1}{x^2 - 2x + 2}\,dx[/tex]

The next to last line should be:

[tex]\frac{1}{8}\int\frac{x+2}{x^2 + 2x + 2}\,dx =\frac{1}{8}\left(\int\frac{x}{x^2 + 2x + 2}\,dx + 2\int\frac{1}{x^2 + 2x + 2}\,dx\right)[/tex]

The last line should be:

[tex]-\frac{1}{8}\int\frac{x+2}{x^2 - 2x + 2}\,dx =-\frac{1}{8}\left(\int\frac{x}{x^2 - 2x + 2}\,dx +2\int\frac{1}{x^2 - 2x + 2}\,dx\right)[/tex]


I don't know if you carried this mistake through to the end.
 
I don't know if you carried this mistake through to the end.

Turns out that not only did I do that, I also made about 10 other mistakes that took forever to find. I fixed and edited every post though - thanks for catching that mistake; my final answer was incorrect before :rolleyes:

Now I'm positive that it's right :smile:

[tex]d/dx[\frac{1}{8}arctan(x+1) +\frac{1}{8}arctan(x-1)+\frac{1}{16}ln(x^2+2x+2)-\frac{1}{16}ln(x^2-2x+2)+C][/tex]

[tex]=\frac{1}{8(x^2+2x+2)}+\frac{1}{8(x^2-2x+2)}+\frac{x+1}{8(x^2+2x+2)}-\frac{x-1}{8(x^2-2x+2)}[/tex]

[tex]=\frac{x+2}{8(x^2+2x+2)}-\frac{x-2}{8(x^2-2x+2)}[/tex]

[tex]=\frac{1}{(x^2+2x+2)(x^2-2x+2)}[/tex]

[tex]=\frac{1}{x^4+4}[/tex]

Man triumphs over...self?
 
Last edited: