Let
x2+1x(x−1)3=Ax+B(x−1)+C(x−1)2+D(x−1)3 ....(1)
Multiply x(x−1)3 on both the sides, we get
x2+1=A(x−1)3+Bx(x−1)2+Cx(x−1)+D.x ....(2)
Put x=0 to find the value of A
∴1=A(−1)⇒A=−1
Now put x=1 to find value of D
∴D=2
Substitute these values in equation (2), we get
x2+1=−1(x−1)3+Bx(x−1)2+Cx(x−1)+2x
Solving this, we get
x2+1=x3(B−1)+x2(3−2B+c)+x(−3+B−C+2)+1
Comparing like coefficients, we get
B−1=0,3−2B+c=1,B−C−1=0
On solving, we get
B=1,C=0
Substituting the values of A,B,C and D, we get
x2+1x(x−1)3=−1x+1(x−1)+2(x−1)3
Comparing this with kx−1+p(x−1)3+qx, we get
k=1,p=2,q=−1
Therefore, k+p+q=1+2+(−1)=2