To simplify this expression, first, multiply the two terms on the left of the expression. To multiply these two terms you multiply each individual term in the left parenthesis by each individual term in the right parenthesis.
#(x - 1)(color(red)(2x) + color(red)(1))(color(blue)(x) + color(blue)(5))# becomes:
#(x - 1)((color(red)(2x) xx color(blue)(x)) + (color(red)(2x) xx color(blue)(5)) + (color(red)(1) xx color(blue)(x)) + (color(red)(1) xx color(blue)(5)))#
#(x - 1)(2x^2 + 10x + x + 5)#
We can now combine like terms:
#(x - 1)(2x^2 + 10x + 1x + 5)#
#(x - 1)(2x^2 + (10 + 1)x + 5)#
#(x - 1)(2x^2 + 11x + 5)#
To complete the simplification complete the same process on the two remaining terms:
#(color(red)(x) - color(red)(1))(color(blue)(2x^2) + color(blue)(11x) + color(blue)(5))# becomes:
#(color(red)(x) xx color(blue)(2x^2)) + (color(red)(x) xx color(blue)(11x)) + (color(red)(x) xx color(blue)(5)) - (color(red)(1) xx color(blue)(2x^2)) - (color(red)(1) xx color(blue)(11x)) - (color(red)(1) xx color(blue)(5))#
#2x^3 + 11x^2 + 5x - 2x^2 - 11x - 5#
We can now group and combine like terms:
#2x^3 + 11x^2 - 2x^2 + 5x - 11x - 5#
#2x^3 + (11 - 2)x^2 + (5 - 11)x - 5#
#2x^3 + 9x^2 + (-6)x - 5#
#2x^3 + 9x^2 - 6x - 5#