Let, 2x+1(x−1)(x2+1)=A(x−1)+Bx+C(x2+1)
2x+1(x−1)(x2+1)=A(x2+1)+(Bx+C)(x−1)(x−1)(x2−1)
2x+1=A(x2+1)+B(x2−x)+C(x−1)
Putting x−1=0 is x=1 in equation (2)
2(1)+1=A(1)2+1)+B((1)2−1)+C(1−1)
3=2A+B(0)+C(0)
A=32
Now, on comparing with coefficients of x2 in equation(2)
0=A+B
On putting value of A
0=32+B
B=−32
Comparing with coeff. of x in equation (2)
2=−B+C
putting value of B
2=32+C
C=4−32⇒C=12
putting values of A,B,C in equation (1)
2x+1(x−1)(x2+1)=321(x−1)+(−32)x+(12)x2+1
=(−3x+1)2x2+1=12[3x−1−3x−1x2+1]