If x4+x3−2x2+x+1 is divided by x−1 then remainder =
Dividing x4+x3−2x2+x+1 by x−1 :
x3+2x2+1x−1x4+x3−2x2+x+1x4−x3 ––––––––––––––––2 2x3−2x2+x+1 2x3−2x2 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ x+1 x−1–––––– 2
Hence, remainder = 2.