Step by step
The question
Question: expand (x + 2)(x − 1)(x + 4).
Expand means: multiply out all the brackets.
1 Multiply the first two
First the first two brackets: (x + 2)(x − 1).
The third waits.
Careful!
We can't just multiply the first parts and the last parts.
Every part meets every part.
Each part of the first bracket multiplies the whole second bracket.
The parts of the first bracket are x and 2.
Each one takes the whole second bracket.
What is in front of a bracket multiplies every part inside.
So we write each part times what is in front.
Plus times minus is minus.
x times x is x²: x squared.
x times (−1) is −x.
2 times x is 2x.
2 times (−1) is −2.
Terms are the parts between the + and − signs.
Like terms are the same kind: same letters, same powers.
All the x terms go together.
Each colour is one kind.
x alone means 1x.
−x + 2x is x.
1x is just written x.
So the expression is x² + x − 2.
2 Times the third bracket
Now this answer times the third bracket, (x + 4).
Each part of the long bracket multiplies the whole third bracket.
The parts of the long bracket are x² and x and −2.
Each one takes the whole third bracket.
The minus sign in front of the 2 goes with it.
So we multiply by −2.
What is in front of a bracket multiplies every part inside.
So we write each part times what is in front.
Minus times plus is minus.
x times x is x²: x squared.
x² times x is x³.
x² times 4 is 4x².
x times 4 is 4x.
(−2) times x is −2x.
(−2) times 4 is −8.
3 Group like terms
Terms are the parts between the + and − signs.
Like terms are the same kind: same letters, same powers.
All the x² terms go together.
Each colour is one kind.
x² alone means 1x².
4x² + x² is 5x².
4x − 2x is 2x.
So the expression is x³ + 5x² + 2x − 8.
4 Check
Let's check.
We pick a number: x = 2.
We put it into the start.
The brackets give 4, 1, 6.
4 times 1 times 6 is 24.
Now into our answer.
The parts are 8, 20, 4, −8.
8 plus 20 plus 4 minus 8 is 24.
Both give 24.
Same value, so x³ + 5x² + 2x − 8 is right!
Let's look back.
First: multiply the first two.
Then: times the third bracket.
Then: group like terms.
Last: check.