Algebra · real student question

Factor x^3 + x^2 - x - 1 completely.

Question

Factor completely

x3+x2x1x^3+x^2-x-1

Step-by-step solution

  1. Group the four terms in pairs. A four-term cubic with no common factor is the classic grouping candidate:

    (x3+x2)+(x1)\left(x^3+x^2\right)+(-x-1)

  2. Factor each group so a common binomial appears. Take x2x^2 from the first pair and 1-1 from the second:

    x2(x+1)1(x+1)x^2(x+1)-1(x+1)

    Pulling out 1-1 rather than +1+1 is the key move: x1=1(x+1)-x-1=-1(x+1).

  3. Extract the common binomial.

    x3+x2x1=(x+1)(x21)x^3+x^2-x-1=(x+1)\left(x^2-1\right)

  4. Do not stop — factor the difference of squares. x21=(x1)(x+1)x^2-1=(x-1)(x+1), which produces a repeated factor:

    x3+x2x1=(x+1)(x1)(x+1)=(x+1)2(x1)x^3+x^2-x-1=(x+1)(x-1)(x+1)=(x+1)^2(x-1)

  5. Verify by expanding and by roots. (x+1)2(x1)=(x2+2x+1)(x1)=x3+x2x1(x+1)^2(x-1)=(x^2+2x+1)(x-1)=x^3+x^2-x-1 \checkmark. The roots are x=1x=-1 (double) and x=1x=1; substituting x=1x=-1 into the original gives 1+1+11=0-1+1+1-1=0 \checkmark.

Answer

x3+x2x1=(x+1)2(x1)x^3+x^2-x-1=(x+1)^2(x-1)

Need to solve a different problem like this? Open the solver →