a) (x + 2)(x2 + 3x + 1)
= x.x2 + x.3x + x.1 + 2.x2 + 2.3x + 2.1
= x3 + 3x2 + x + 2x2 + 6x + 2
= x3 + 5x2 + 7x + 2
b) (2x3 + 10x2 + 9x + 4) : (x + 4)
= (2x3 + 8x2 + 2x2 + 8x + x + 4) : (x + 4)
= [(2x3 + 8x2) + (2x2 + 8x) + (x + 4)] : (x + 4)
= [2x2(x + 4) + 2x(x + 4) + (x + 4)] : (x + 4)
= (x + 4)(2x2 + 2x + 1) : (x + 4)
= 2x2 + 2x + 1