Algebra · real student question

Factor (x^2 - 6x + 1)(x^2 + x + 1) + 12x^2 completely.

Question

Factor

(x26x+1)(x2+x+1)+12x2\left(x^{2}-6x+1\right)\left(x^{2}+x+1\right)+12x^{2}

completely.

Step-by-step solution

  1. Expand the product term by term. Distributing each part of the first bracket:

    x2(x2+x+1)=x4+x3+x2,6x(x2+x+1)=6x36x26x,1(x2+x+1)=x2+x+1.x^{2}\left(x^{2}+x+1\right)=x^{4}+x^{3}+x^{2},\quad -6x\left(x^{2}+x+1\right)=-6x^{3}-6x^{2}-6x,\quad 1\left(x^{2}+x+1\right)=x^{2}+x+1.

    Adding and collecting like terms gives x45x34x25x+1x^{4}-5x^{3}-4x^{2}-5x+1.

  2. Add the 12x212x^{2}. Only the quadratic coefficient changes:

    x45x34x25x+1+12x2=x45x3+8x25x+1.x^{4}-5x^{3}-4x^{2}-5x+1+12x^{2}=x^{4}-5x^{3}+8x^{2}-5x+1.

    The extra 12x212x^{2} is clearly engineered — it is what turns an unremarkable quartic into a factorable one.

  3. Notice the palindromic coefficients. The coefficients read 1,5,8,5,11,-5,8,-5,1, the same forwards and backwards. Such a reciprocal polynomial always factors (when it factors at all) in the shape

    (x2+ax+1)(x2+bx+1)=x4+(a+b)x3+(ab+2)x2+(a+b)x+1,\left(x^{2}+ax+1\right)\left(x^{2}+bx+1\right)=x^{4}+(a+b)x^{3}+(ab+2)x^{2}+(a+b)x+1,

    whose own coefficient list is automatically palindromic. Spotting this saves a blind search over all possible factorisations.

  4. Match coefficients and solve. Comparing with 1,5,8,5,11,-5,8,-5,1:

    a+b=5,ab+2=8  ab=6.a+b=-5,\qquad ab+2=8\ \Rightarrow\ ab=6.

    The numbers with sum 5-5 and product 66 are a=2a=-2 and b=3b=-3, so

    x45x3+8x25x+1=(x22x+1)(x23x+1).x^{4}-5x^{3}+8x^{2}-5x+1=\left(x^{2}-2x+1\right)\left(x^{2}-3x+1\right).

  5. Factor the remaining quadratic and finish. The first factor is a perfect square, x22x+1=(x1)2x^{2}-2x+1=(x-1)^{2}, while x23x+1x^{2}-3x+1 has discriminant 94=59-4=5, so it has no rational factorisation (its roots are 3±52\frac{3\pm\sqrt5}{2}, the golden-ratio pair). The complete factorisation over the rationals is

    (x26x+1)(x2+x+1)+12x2=(x1)2(x23x+1).\left(x^{2}-6x+1\right)\left(x^{2}+x+1\right)+12x^{2}=(x-1)^{2}\left(x^{2}-3x+1\right).

    Numerical check at x=2.1x=2.1: the original gives 1.0769-1.0769 and the factored form gives 1.0769-1.0769 ✓, with two further random values agreeing to nine digits.

Answer

(x26x+1)(x2+x+1)+12x2=x45x3+8x25x+1=(x1)2(x23x+1)\left(x^{2}-6x+1\right)\left(x^{2}+x+1\right)+12x^{2}=x^{4}-5x^{3}+8x^{2}-5x+1=(x-1)^{2}\left(x^{2}-3x+1\right)

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