As the degree of the numerator is >> than the degree of the denominator, we do a long division
color(white)(aaaa)aaaa2x^3-x^2+x+52x3−x2+x+5color(white)(aaaa)aaaa∣∣x^2+3x+2x2+3x+2
color(white)(aaaa)aaaa2x^3+6x^2+4x2x3+6x2+4xcolor(white)(aaaaaa)aaaaaa∣∣2x-72x−7
color(white)(aaaaa)aaaaa0-7x^2-3x+50−7x2−3x+5
color(white)(aaaaaaa)aaaaaaa-7x^2-21x-14−7x2−21x−14
color(white)(aaaaaaaaaaaaaa)aaaaaaaaaaaaaa18x+1918x+19
Therefore,
(2x^3-x^2+x+5)/(x^2+3x+2)=2x-7+(18x+19)/(x^2+3x+2)2x3−x2+x+5x2+3x+2=2x−7+18x+19x2+3x+2
We can now do the decomposition into partial fractions
(18x+19)/(x^2+3x+2)=(18x+19)/((x+1)(x+2))=A/(x+1)+B/(x+2)18x+19x2+3x+2=18x+19(x+1)(x+2)=Ax+1+Bx+2
=(A(x+2)+B(x+1))/((x+1)(x+2))=A(x+2)+B(x+1)(x+1)(x+2)
So,
18x+19=A(x+2)+B(x+1)18x+19=A(x+2)+B(x+1)
Let x=-1x=−1, =>⇒, 1=A1=A
Let x=-2x=−2, =>, ⇒,-17=-B#
(2x^3-x^2+x+5)/(x^2+3x+2)=2x-7+1/(x+1)+17/(x+2)2x3−x2+x+5x2+3x+2=2x−7+1x+1+17x+2