Divide polynomial x4+4x3+6x2+4x+5 by x2+1 and find the quotient.
The degree of the polynomial obtained when 8−6x+x2−7x3+x5 is subtracted from x4−6x3+x2−3x+1 is: