Question 143384
It doesn't matter whether you distribute the x first or use the FOIL process first -- remember the commutative property of multiplication?  From a practical point of view, you will find it easier to do the FOIL thing first and then distribute the x because distributing the x is just a matter of going across the polynomial that resulted from the FOIL process and increasing the exponents on the variables by 1.


Having said all of that, you really don't need to use FOIL or distribute anything.  Just remember the Zero Product Rule:  {{{ab=0}}} if and only if {{{a=0}}} or {{{b=0}}}.


Applying the zero product rule to {{{x(x+1)^2(x+2)=0}}} you get:


{{{x=0}}}, or
{{{x+1=0}}} => {{{x=-1}}}, or
{{{x+1=0}}} => {{{x=-1}}}, (because there are 2 factors of {{{x+1}}}) or
{{{x+2=0}}} => {{{x=-2}}}


And those are all of the roots of the given equation.  We are sure of this fact because we know that if you did use FOIL and distribution to multiply the factors, you would end up with a polynomial equation with {{{x^4}}} as the high order term, making it a 4th degree polynomial equation.  The Fundamental Theorem of Algebra tells us that a polynomial equation of degree n has exactly n roots (although some or all of them may be complex numbers).  You have a 4th degree equation, and 4 roots, and all is right with the world.


Notice that -2 is a root, but 2 is not.


And one last thing:  If you want to indicate an exponent on the computer, just use the caret mark (Shift-6), like this:  x(x + 1)^2(x + 2).