Solution
The denominator is
x2+4x+7
and its derivative is
2x+4.
Write the numerator as
3x+5=A(2x+4)+B.
Comparing coefficients:
3=2A
Therefore,
A=23.
Now,
5=4(23)+B
5=6+B
B=−1.
Hence,
3x+5=23(2x+4)−1.
Therefore,
∫x2+4x+73x+5dx=23∫x2+4x+72x+4dx−∫x2+4x+7dx.
For the second integral, complete the square:
x2+4x+7=(x+2)2+3.
Using
∫x2+a2dx=a1tan−1(ax)+C,
we get
∫(x+2)2+3dx=31tan−1(3x+2).
Therefore,
∫x2+4x+73x+5dx=23log(x2+4x+7)−31tan−1(3x+2)+C
Answer
23log(x2+4x+7)−31tan−1(3x+2)+C