How do you FOIL #(x-1)(x+2)(x-3)#?

1 Answer
May 24, 2015

The quick answer is "You don't"

FOIL is only suitable for multiplying 2 binomials.

However, inspired by FOIL we can invent a new scheme that will do the job. I'll call it TREFOIL - short for Triple Regular Extension of First Outside Inside Last.

Writing L for Left and R for Right, notice that the pairs of expressions chosen by FOIL in turn are LL, LR, RL, RR.

For TREFOIL, we'll use LLL, LLR, LRL, RLL, LRR, RLR, RRL, RRR.
This is almost like binary counting with 3 digits instead of 2, except that I have reversed the middle pair to improve grouping.

Applying TREFOIL, the separate multiples are:

LLL: #(x*x*x) = x^3#
LLR: #(x*x*-3) = -3x^2#
LRL: #(x*2*x) = 2x^2#
RLL: #(-1*x*x) = -x^2#
LRR: #(x*2*-3) = -6x#
RLR: #(-1*x*-3) = 3x#
RRL: #(-1*2*x) = -2x#
RRR: #(-1*2*-3) = 6#

Add these together to get:

#(x-1)(x+2)(x-3)#

#= x^3-3x^2+2x^2-x^2-6x+3x-2x+6#

#= x^3-2x^2-5x+6#

As a quick check, let's substitute #x=4# (not one of the roots) and see if this last expression agrees with the first.

#(x-1)(x+2)(x-3)#

#= (4-1)(4+2)(4-3)#

#= 3*6*1 = 18#

#x^3-2x^2-5x+6#

#= 4^3-(2*4^2)-(5*4)+6#

#= 64 - 32 - 20 + 6 = 18#