x4+2.x3-13.x2-14x+24
=x3.(x+2)-13x2+12x-26x+24
=x3.(x+2)-x.(13x-12)-2.(13x-12)
=x3.(x+2)-(13x-12)(x+2)
=(x+2)(x3-13x+12)
=(x+2)(x3-x-12x+12)
=(x+2)[x.(x2-1)-12.(x-1)]
=(x+2)[x.(x-1)(x+1)-12.(x-1)]
=(x+2)(x-1)[x.(x+1)-12]
=(x+2)(x-1)(x2+x-12)
=(x+2)(x-1)(x2-3x+4x-12)
=(x+2)(x-1)[x.(x-3)+4.(x-3)]
=(x+2)(x-1)(x-3)(x+4)