How do you integrate #int (x+4) / (x^2-x-2) dx# using partial fractions?
2 Answers
Explanation:
The trinomial
Write a system of equations:
The partial fraction decomposition is therefore:
This can be integrated as
Hopefully this helps!
I got the same answer in a bit of a different approach.
#2ln|x-2| - ln|x+1| + C#
Sometimes if you can do something to simplify the problem, try it.
As an alternative answer, consider the following trick:
#int (x+4)/(x^2 - x - 2)dx#
#= int (x+4)/((x - 2)(x+1))dx#
#= int (color(red)(x-2+6))/((x - 2)(x+1))dx#
#= int 1/(x+1)dx + 6int 1/((x-2)(x+1))dx#
Now partial fractions becomes a little easier. The second integrand, ignoring the
#1/((x-2)(x+1)) = A/(x-2) + B/(x+1)# ,
so that we get upon cross-multiplying,
#A(x+1) + B(x-2) = 1# ,
#=> (A + B)x + (A - 2B) = 1# ,
thus giving the system of equations
#A + B = 0# ,
#A - 2B = 1# .
Now we simply get
#A = -B# ,
#-B - 2B = -3B = 1# ,
so that
#color(blue)(int (x+4)/((x-2)(x+1))dx)#
#= int 1/(x+1)dx + 6int 1/3 1/(x-2) - 1/3 1/(x+1)dx#
#= int 1/(x+1)dx + 2int 1/(x-2)dx - 2int 1/(x+1)dx#
#= 2int 1/(x-2)dx - int 1/(x+1)dx#
#= color(blue)(2ln|x-2| - ln|x+1| + C)#