a) (x-y+5)2-2(x-y+5)+1
=(x-y+5)-2(x-y+5).1+12
=(x-y+5+1)2
=(x-y+6)2
b) x5 + x +1 = x5 + x + 1 + x2 - x2
=( x5 - x2) + (x2 + x +1)
=x2(x3 - 1) + (x2 +x +1)
=x2(x - 1)(x2 + x +1) + (x2 + x +1)
=(x2 + x +1)(x3 - x2 +1)
c) x3 + x2 +4 = x3 + 2x2 - x2 - 2x+ 2x +4
=x2(x+2) - x(x + 2) + 2(x + 2)
=(x+2)(x2 - x +2 )
d) x4 + 2x2 - 24 = (x2)2 + 2.x2.1 +12 - 25
=(x2 + 1)2 - 52
=(x2 + 1 +5)(x2 +1 - 5)
=(x2 + 6)(x2 - 4)
=(x2 +6 )(x-2)(x+2)