I have recently started to get interested in math for self learning and recently acquired Serge Langs "Basic Mathematics"
I found myself stuck, trying to figure out one of his proofs regarding more than two factors in multiplication.
The example: Expand the expression (2x + 1)(x - 2)(x + 5)
as a sum of powers of x multiplied by integers
first of we multiply the two factors:
(2x + 1)(x - 2)
= 2x(x - 2) + 1(x - 2)
= 2x^2 - 4x + x - 2
= 2x^2 - 3x - 2
here is my first problem: how come it turns out to be 3x? we have (4x + x)? or is it (-4x + x)?
Second problem comes from the second part where we multiply the the above expression with the last factor:
(2x^2 - 3x - 2)( x + 5)
= (2x^2 - 3x - 2)x + (2x^2 - 3x - 2)5
= 2x^3 - 3x^2 - 2x + 10x^2 - 15x - 10
which in the book turns out to be:
= 2x^3 + 7x^2 - 17x - 10
How the hell did we end up here? I am not following this, could somebody care to explain and i would be very grateful!
first question:
We have $(-4x+x)=(-4+1)x=-3x$, the sign follows the number.
For your second question,
$$2x^3-3x^2-2x+10x^2-15x-10=2x^3+(-3+10)x^2+(-2-15)x-10$$