When x4+x3−2x2+x+1 is divided by x−1, the remainder is 2 and the quotient is
x3+2x2+1x−1x4+x3−2x2+x−1x4−x3− +–––––––– 2 2x3−2x2+x−1 2x3−2x2− +––––––––––– x−1 x−1− +–––––– 0
So, Quotient=x3+2x2+1