How do you integrate #1/(x^4+1)# using partial fractions?

1 Answer
Nov 26, 2017

#1/(4sqrt2)(2tan^-1(sqrt2x-1)-ln|2x^2-2sqrt2x+2|)+1/(4sqrt2)(2tan^-1(sqrt2x+1)+ln|2x^2+2sqrt2x+2|)+C#

Explanation:

This is one hell of a process for a seemingly simple integral..

Anyway, our first step is to use partial fractions to split the integral into two. To do this, we need to factor the denominator:
#1/(x^4+1)=1/((x^2-sqrt2x+1)(x^2+sqrt2x+1))#

Now we can write this like this:
#=(Ax+B)/(x^2-sqrt2x+1)+(Cx+D)/(x^2+sqrt2x+1)#

Note that we need the numerator to be a binomial since both the denominators are polynomials of degree two.

If we multiply both sides by the left hand side denominator, we get this:
#1/cancel((x^2-sqrt2x+1)(x^2+sqrt2x+1))*cancel((x^2-sqrt2x+1)(x^2+sqrt2x+1))=(x^2-sqrt2x+1)(x^2+sqrt2x+1)((Ax+B)/cancel(x^2-sqrt2x+1)+(Cx+D)/cancel(x^2+sqrt2x+1))#

Cleaning up both sides, we get:
#1=(Ax+B)(x^2+sqrt2x+1)+(Cx+D)(x^2-sqrt2x+1)#

If we expand this out, we get:
#1=Ax^3+sqrt2Ax^2+Ax+Bx^2+sqrt2Bx+B+Cx^3-sqrt2Cx^2+Cx+Dx^2-sqrt2Dx+D#

If we group together all terms of the same degree, it looks a little better:
#1=(A+C)x^3+(sqrt2A-sqrt2C+B+D)x^2+(A+C+sqrt2B+sqrt2D)x + (B+D)#

Since we know that there are no x terms of any degree on the left, we can setup the following system of equations for the coefficients:
#A+C=0#
#sqrt2A-sqrt2C+B+D=0#
#A+C+sqrt2B-sqrt2D=0#
#B+D=1#

Solving it, we get these results:
#A=-1/(2sqrt2), B=1/2, C=1/(2sqrt2), D=1/2#

Let's plug this back into our fraction:
#int\ (-1/(2sqrt2)x+1/2)/(x^2-sqrt2x+1)+(1/(2sqrt2)x+1/2)/(x^2+sqrt2x+1)\ dx#

We can simplify and split into two integrals:
#int\ (sqrt2-x)/(2sqrt2(x^2-sqrt2x+1))\ dx+int\ (sqrt2+x)/(2sqrt2(x^2+sqrt2+1))\ dx#

The process for evaluating these two integrals is basically the same, so I'm only going to show the left one.

First, we bring out the factor:
#int\ (sqrt2-x)/(2sqrt2(x^2-sqrt2x+1))\ dx=1/(2sqrt2)int\ (sqrt2-x)/(x^2-sqrt2x+1)\ dx#

Next we will complete the square on the bottom, so we can use a u substitution and get into the form of the #1/(x^2+1)# integral which we can solve. To complete the square, all we do is look at the middle coefficient, halve it and put it in an expression squared. We then look at what constant we need to add or subtract to get back to the original expression we had. Anyway, after completing the square, we get this:
#1/(2sqrt2)int\ (sqrt2-x)/((x-1/sqrt2)^2+1/2)\ dx#

Now, let's do a u-substitution with #u=x-1/sqrt2#. Because #(du)/dx=1#, we don't need to anything special to integrate with respect to #u#:
#1/(2sqrt2)int\ (sqrt2-x)/(u^2+1/2)\ du#

We do however need to solve for #x# in terms of #u#. If we do that, we get:
#x=u+1/sqrt2#

And now our integral looks like this:
#1/(2sqrt2)int\ (sqrt2-(u+1/sqrt2))/(u^2+1/2)\ du=1/(2sqrt2)int\ (2/sqrt2-1/sqrt2-u)/(u^2+1/2)\ du=#

#1/(2sqrt2)int\ (2(1/sqrt2-u))/(2u^2+1)\ du=1/(2cancelsqrt2)cancelsqrt2int\ (1-sqrt2u)/(2u^2+1)\ du#

Now we can split up into two integrals once again:
#1/2(int\ 1/(2u^2+1))\ du-int\ (sqrt2u)/(2u^2+1)\ du)#

Let's first look at this one:
#int\ 1/(2u^2+1)\ du#

We can do a u-substitution so that #2u^2=z^2#. If we solve for #z#, we get:
#z=sqrt2u#, #(dz)/(du)=sqrt2#

Now we just divide through by #sqrt2# and integrate with respect to #z#:
#1/sqrt2int\ 1/(z^2+1)\ dz=1/sqrt2tan^-1(z)=1/sqrt2tan^-1(sqrt2u)#

Now for this integral:
#int\ (sqrt2u)/(2u^2+1)\ du=sqrt2int\ u/(2u^2+1)\ du#

We can let #t=2u^2+1#, #(dt)/(du)=4u#, which gives:
#sqrt2/4int\ 1/t\ dt=sqrt(2/16)ln|t|=1/sqrt8ln|2u^2+1|#

Combining this with the other integral into the original expression, we get:
#1/(2)int\ (1-sqrt2u)/(2u^2+1)\ du=1/2(1/sqrt2tan^-1(sqrt2u)-1/(2sqrt2)ln|2u^2+1|)#

#=1/(2sqrt2)tan^-1(sqrt2u)-1/(4sqrt2)ln|2u^2+1|#

Now we can resubstitute and get:
#1/(2sqrt2)tan^-1(sqrt2(x-1/sqrt2))-1/(4sqrt2)ln|2(x-1/sqrt2)^2+1|#

That was half the integral. If we combine and simplify with the other half (which remember, is evaluated basically the same), we will get the answer to be:
#1/(4sqrt2)(2tan^-1(sqrt2x-1)-ln|2x^2-2sqrt2x+2|)+1/(4sqrt2)(2tan^-1(sqrt2x+1)+ln|2x^2+2sqrt2x+2|)+C#