The dividend is
and the divisor is
x+2
We begin by arranging them as follows:
now, we divide the leading term in the dividend by the leading term in the divisor to get the first term of the quotient: 4x^2 / x = 4x.
Then we multiply the divisor by 4x and subtract
the result from the dividend. That is:
We repeat the same procedure: using the last line -3x - 6 as the dividend:
So, the leading term of -3x-6 is -3x, so we have -3x/x = -3. Then we multiply the divisor by -3 and subtract the result from the dividend. That is:
Because the remainder is 0, we have finished the division. So the correct answer will be 4x-3