Algebra · real student question

Factor x5 + x4 + x3 + x2 + x + 1 completely.

Question

Factor completely:

x5+x4+x3+x2+x+1x^5+x^4+x^3+x^2+x+1

Step-by-step solution

  1. Recognise a geometric sum. The six terms are x0x^0 through x5x^5 with ratio xx, so for x1x\neq 1

    1+x+x2+x3+x4+x5=x61x11+x+x^2+x^3+x^4+x^5=\frac{x^6-1}{x-1}

    This converts an awkward quintic into a difference of powers, which has known factorizations.

  2. Factor x61x^6-1 as a difference of cubes of squares. Reading x6=(x3)2x^6=(x^3)^2 gives

    x61=(x31)(x3+1)x^6-1=(x^3-1)(x^3+1)

  3. Factor each cubic with the sum and difference of cubes.

    x31=(x1)(x2+x+1),x3+1=(x+1)(x2x+1)x^3-1=(x-1)(x^2+x+1),\qquad x^3+1=(x+1)(x^2-x+1)

  4. Cancel the x1x-1. Substituting everything back,

    (x1)(x2+x+1)(x+1)(x2x+1)x1=(x+1)(x2+x+1)(x2x+1)\frac{(x-1)(x^2+x+1)(x+1)(x^2-x+1)}{x-1}=(x+1)(x^2+x+1)(x^2-x+1)

    The cancellation is legitimate as an identity of polynomials — the original quintic has no factor x1x-1, since substituting x=1x=1 gives 66, not 00.

  5. Cross-check by direct grouping. Pairing terms, x4(x+1)+x2(x+1)+(x+1)=(x+1)(x4+x2+1)x^4(x+1)+x^2(x+1)+(x+1)=(x+1)(x^4+x^2+1), and x4+x2+1=(x2+x+1)(x2x+1)x^4+x^2+1=(x^2+x+1)(x^2-x+1) (add and subtract x2x^2 to make a difference of squares). Same answer by a completely different route.

  6. Confirm numerically and check irreducibility. At x=2x=2: the original is 32+16+8+4+2+1=6332+16+8+4+2+1=63, and (3)(7)(3)=63(3)(7)(3)=63 ✓. Each quadratic has discriminant 14=3<01-4=-3<0, so neither factors over the reals — the factorization is complete.

Answer

x5+x4+x3+x2+x+1=(x+1)(x2+x+1)(x2x+1)x^5+x^4+x^3+x^2+x+1=(x+1)(x^2+x+1)(x^2-x+1)

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