Before we express #(x^3-7x-3)/(x^2-x-2)# we must divide the algebraic expression in numerator by denominator so that only remainder, whose degree is less than that of denominator, is left. Furthe, we should also factorize the denominator.
Dividing #(x^3-7x-3)# by #(x^2-x-2)#, we get
#(x^3-7x-3)=(x+1)(x^2-x-2)-(4x+1)# and
#x^2-x-2=x^2-2x+x-2=x(x-2)+1(x-2)=(x+1)(x-2)#
Hence #(x^3-7x-3)/(x^2-x-2)=x+1-(4x+1)/((x+1)(x-2))#
Now let #(4x+1)/((x+1)(x-2))hArrA/(x+1)+B/(x-2)=(A(x-2)+B(x+1))/((x+1)(x-2))#
or #(4x+1)/((x+1)(x-2))hArr(Ax-2A+Bx+B)/((x+1)(x-2))=((A+B)x-2A+B)/((x+1)(x-2)#
Hence #A+B=4# and #B-2A=1#
Now putting #B=4-A# (from first equation) into second, we get
#4-A-2A=1# or #3A=3# or #A=1# and hence #B=4-1=3# hence
Partial fractions of #(x^3-7x-3)/(x^2-x-2)# are #x+1-1/(x+1)-3/(x-2)#