How do you integrate #int(x+1)/((2x-4)(x+3)(x-7))# using partial fractions?

1 Answer
May 27, 2016

I got #-3/50ln|x-2| - 1/50ln|x+3| + 2/25ln|x-7| + C#.


DISCLAIMER: RIDICULOUSLY LONG ANSWER!

Using partial fractions, in general we have:

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

#= int A/(2x - 4) + B/(x+3) + C/(x-7)dx#

where any linear term in the denominator (that is, it is written as #Ax + B#) corresponds with the integrals #int A/(Bx + C)dx#, #int D/(Ex + F)dx#, etc.

Let's ignore the integral symbols for now and focus on simplifying this via common denominators.

#A/(2x - 4) + B/(x+3) + C/(x-7)#

#= (A(x+3))/((2x - 4)(x+3)) + (B(x-7))/((x+3)(x-7)) + (C(x+3))/((x+3)(x-7))#

#= (A(x+3)(x-7))/((x+3)(x-7)(2x - 4)) + (B(x-7)(2x - 4))/((x+3)(x-7)(2x - 4)) + (C(2x - 4)(x+3))/((x+3)(x-7)(2x - 4))#

Now we can combine these fractions together...

#= (A(x+3)(x-7) + B(x-7)(2x - 4) + C(2x - 4)(x+3))/((x+3)(x-7)(2x - 4))#

Expand these factors...

#= (A(x^2 - 4x - 21) + B(2x^2 - 18x + 28) + C(2x^2 + 2x - 12))/((x+3)(x-7)(2x - 4))#

#= (Ax^2 - 4Ax - 21A + 2Bx^2 - 18Bx + 28B + 2Cx^2 + 2Cx - 12C)/((x+3)(x-7)(2x - 4))#

Rearrange these to separate the #color(blue)(x^2)# terms from the #color(green)(x)# terms and #color(highlight)("constant")# terms. Make SURE that you match the general result #a_0x^2 color(red)(+) a_1x color(red)(+) a_2#!!

#= (color(blue)(Ax^2 + 2Bx^2 + 2Cx^2) - color(green)(4Ax - 18Bx + 2Cx) - color(highlight)(21A + 28B - 12C))/((x+3)(x-7)(2x - 4))#

#= ((A + 2B + 2C)x^2 + (-4A - 18B + 2C)x + (-21A + 28B - 12C))/((x+3)(x-7)(2x - 4))#

Now that we got here, we have just equated these two expressions:

#(x+1)/cancel((2x-4)(x+3)(x-7)) = ((A + 2B + 2C)x^2 + (-4A - 18B + 2C)x + (-21A + 28B - 12C))/cancel((x+3)(x-7)(2x - 4))#

Thus:

#((A + 2B + 2C)x^2 + (-4A - 18B + 2C)x + (-21A + 28B - 12C)) = 0x^2 + 1x + 1#

So, what we have is:

  • #A + 2B + 2C = 0#
  • #-4A - 18B + 2C = 1#
  • #-21A + 28B - 12C = 1#

This is the answer that we are hoping to achieve.

To solve this system in the most foolproof way, try using elementary row operations to simplify this system.

What that means is you are limited to:

  • scaling a row
  • adding one row to another
  • both

When we rewrite this as a matrix to make it look nicer on the eyes, we get:

#[(1,2,2,|,0),(-4,-18,2,|,1),(-21,28,-12,|,1)]#

Notice that we only use the coefficients of each variable.

We assume that the first column contains the "#A# terms", the second column contains the "#B# terms", and the third column contains the "#C# terms".

Using the notation #cR_i + R_j# as scaling row #i# by a scalar #c#, adding to row #j#, and storing the result in row #j#, we get:

#stackrel(4R_1 + R_2" ")(->)[(1,2,2,|,0),(0,-10,10,|,1),(-21,28,-12,|,1)]#

#stackrel(-1/10R_2" ")(->)[(1,2,2,|,0),(0,1,-1,|,-1/10),(-21,28,-12,|,1)]#

#stackrel(21R_1 + R_3" ")(->)[(1,2,2,|,0),(0,1,-1,|,-1/10),(0,70,30,|,1)]#

#stackrel(1/10R_3" ")(->)[(1,2,2,|,0),(0,1,-1,|,-1/10),(0,7,3,|,1/10)]#

#stackrel(-2R_2 + R_1" ")(->)[(1,0,4,|,1/5),(0,1,-1,|,-1/10),(0,7,3,|,1/10)]#

#stackrel(-7R_2 + R_3" ")(->)[(1,0,4,|,1/5),(0,1,-1,|,-1/10),(color(highlight)(0),color(highlight)(0),color(highlight)(10),|,color(highlight)(4/5))]#

We can stop simplifying here, since we have one variable solved for. Now we can back-substitute to solve for the other two variables.

Moving back over to the regular system of equations...

For #C#:

#10C = 4/5 => color(green)(C = 2/25)#

For #B#:

#B - C = -1/10#
#B - 2/25 = -1/10#
#color(green)(B) = -5/50 + 4/50 = color(green)(-1/50)#

For #A#:

#A + 4C = 1/5#
#A + 8/25 = 5/25#
#color(green)(A = -3/25)#

Looks like it worked!

Of course, you don't have to do it this way, but back when I first learned partial fractions, I didn't know how to do it this way and it was fairly frustrating getting the wrong answer somehow whenever I probably plugged a variable back into the wrong equation.

Back to the problem, we have:

#color(blue)(int (x+1)/((2x-4)(x+3)(x-7))dx)#

#= -3/25int 1/(2x - 4)dx - 1/50int1/(x+3)dx + 2/25 int1/(x-7)dx#

#= -3/50int 1/(x - 2)dx - 1/50int1/(x+3)dx + 2/25 int1/(x-7)dx#

#= color(blue)(-3/50ln|x-2| - 1/50ln|x+3| + 2/25ln|x-7| + C)#