Quotient and remainder of a polynomial when divided by x+2 are 2x−1 and 3 respectively. Find the polynomial.
Write the quotient and remainder when we divide.
x4−2x2+2x2+x+4 by x2+x+1