First pass: x2÷x=x, and x(x+1)=x2+x; subtracting leaves 3x+9.
Second pass: 3x÷x=3, and 3(x+1)=3x+3; subtracting leaves 6, of degree 0<1: stop.
x2+4x+9=(x+1)(x+3)+6
Check: (x+1)(x+3)=x2+4x+3, and adding 6 restores x2+4x+9. The quotient is x+3 and the remainder is 6.