#\int5/((x^2+2x+2)(x-1))dx#?

#\color(crimson)\bb(\text(please help me work out the next step,))# #\color(maroon)\bb(\text(not start from the beginning))#
(I mean, I just don't want to make you spend time on the whole problem. But it's ok to do all of the work)

Partial fractions:

  • #5/((x^2+2x+2)(x-1))=(Ax+B)/((x^2+2x+2)(x-1))+C/(x-1)#
  • #A = -1, B = -3, C = 1#
  • #\therefore\int((-x+(-3))/(x^2+2x+2)+1/(x-1))dx#

Separating integrals:

  • #\int(x+(-3))/(x^2+2x+2)dx+\int1/(x-1)dx#
  • #\color(steelblue)(-\int(x+3)/(x^2+2x+2)dx)+\int1/(x-1)dx#

#\color(olive)\bb\text(How would I solve the blue part?)#

2 Answers
Apr 16, 2018

#-int(x+3)/(x^2+2x+2)dx=-1/2ln[(x+1)^2+1]-2arctan(x+1)+C#

Explanation:

So, we have the integral

#-int(x+3)/(x^2+2x+2)dx#.

The first problem seems to be the denominator -- this ruins the possibility of integrating as a logarithm or as an arctangent.

Let's complete the square:

#x^2+2x+2=0#

#x^2+2x=-2#

Add #(b/2)^2# to each side, where #b=2.#

#x^2+2x+(2/2)^2=-2+(2/2)^2#

#x^2+2x+1=-1#

#(x+1)^2=-1#

Thus, the completed square is

#(x+1)^2+1#

Now, we have

#-int(x+3)/((x+1)^2+1)dx#

We can split this up:

#-intx/((x+1)^2+1)dx-3intdx/((x+1)^2+1)#

We're going to apply the substitution #u=x+1# to both integrals:

#du=dx#

#x=u-1#

Thus, we obtain

#-int(u-1)/(u^2+1)du-3int(du)/(u^2+1)#

Again, split up the first integral:

#-intu/(u^2+1)du+int(du)/(u^2+1)-3int(du)/(u^2+1)#

These are all simple integrals:

#-intu/(u^2+1)du=-1/2ln(u^2+1)# -- This can be done by a quick mental substitution, as the differential of #u^2+1# shows up in the numerator as #2udu#.

(No need for absolute value bars, #u^2+1# is always positive)

#int(du)/(u^2+1)=arctan(u)#

#-3int(du)/(u^2+1)=-3arctan(u)#

Simplifying, we get

#-intu/(u^2+1)du+int(du)/(u^2+1)-3int(du)/(u^2+1)=-1/2ln(u^2+1)-2arctan(u)+C#

We need to rewrite in terms of #x.# We get

#-int(x+3)/(x^2+2x+2)dx=-1/2ln[(x+1)^2+1]-2arctan(x+1)+C#

So, as you can see, these can get very messy sometimes. It all comes down to using relevant substitutions and splitting up across sums and differences until you get only simple integrals.

Apr 16, 2018

#=ln|x-1|-1/2ln|x^2+2x+2|-2tan^-1(x+1)+c#

Explanation:

Seprating integrals:

#I=int(color(red)-x+(-3))/(x^2+2x+2)dx+int1/(x-1)dx#

#=-1/2int(2x+6)/(x^2+2x+2)dx+ln|x-1|#

#=-1/2int(2x+2+4)/(x^2+2x+2)dx+ln|x-1|#

#=ln|x-1|-1/2int(2x+2)/(x^2+2x+2)dx-1/2int4/(x^2+2x+2)dx#

#=ln|x-1|-1/2int(d/(dx)(x^2+2x+2))/(x^2+2x+2)dx- 2int1/((x+1)^2+1)dx#

#=ln|x-1|-1/2ln|x^2+2x+2|-2*1/1tan^-1((x+1)/1)+c#

#=ln|x-1|-1/2ln|x^2+2x+2|-2tan^-1(x+1)+c#