Solution:
Let
I=∫12x2+4x+35x2dx
Dividing 5x2 by x2+4x+3,
x2+4x+35x2=5−x2+4x+320x+15=5−(x+1)(x+3)20x+15
Now let
(x+1)(x+3)20x+15=x+1A+x+3B
Then
20x+15=A(x+3)+B(x+1)
Putting x=−1,
−5=2A⇒A=−25
Putting x=−3,
−45=−2B⇒B=245
Hence,
x2+4x+35x2=5+25⋅x+11−245⋅x+31
Integrating,
∫x2+4x+35x2dx=5x+25log∣x+1∣−245log∣x+3∣=F(x)
By the second fundamental theorem of integral calculus,
I=F(2)−F(1)=[10+25log3−245log5]−[5+25log2−245log4]
Grouping the terms,
I=5+25(log3−log2)−245(log5−log4)
Therefore,
∫12x2+4x+35x2dx=5−25[9log45−log23]