If the divisor is (x+1) and quotient is ′x′ while the remainder is 4 then the dividend is
If dividend = x4+x3−2x2+x+1 and divisor = (x−1), find the quotient, q(x) and remainder r(x).