Two brackets, then the last
Expand any two of the brackets first: . That leaves .
Multiply every term of the first bracket by x, then every term by 3: and . Collecting like terms gives .
Expanded all at once, there are 2 × 2 × 2 = 8 products before collecting. Doing two brackets first collects some of them early.
Where each coefficient comes from
In (x + a)(x + b)(x + c), each product takes one term from every bracket. An term takes x from two brackets and a number from the third, so the coefficient of is a + b + c.
An x term takes x from one bracket and numbers from the other two: ab + bc + ac. The constant takes a number from all three: abc.
For that gives : 2 + 2 + 2 = 6, three pairs of 2 × 2 = 12, and 2 × 2 × 2 = 8.
Negative numbers
The pattern holds with signs. (x − 1)(x + 2)(x − 3) has numbers −1, 2 and −3. The coefficient is −1 + 2 − 3 = −2, the x coefficient is (−1)(2) + (2)(−3) + (−1)(−3) = −2 − 6 + 3 = −5, and the constant is (−1)(2)(−3) = 6.
So .
When x has a coefficient
The shortcut for the coefficients needs x on its own in each bracket, so expand step by step instead. , and multiplying by (x − 1) gives .
Check with a number
Put the same value of x into the brackets and into the expansion; they must agree. At x = 1, (x + 1)(x + 2)(x + 3) = 2 × 3 × 4 = 24, and 1 + 6 + 11 + 6 = 24.
At x = 2, (x − 1)(x + 2)(x − 3) = 1 × 4 × (−1) = −4, and 8 − 8 − 10 + 6 = −4. Avoid a value that makes a bracket zero: then both sides are zero and the check proves less.
The usual slips
Mixing up the coefficients. Adding the numbers gives the coefficient; multiplying all three gives the constant.
Cubing each term. is not : it is (x + 2)(x + 2)(x + 2), with and 12x in the middle.
Losing a sign. With a negative number, write each product with its sign before collecting.