इस पर अटक गए? इसे AI से हल करें
Algebra · real student question

Factor x^2 + x + 1 over the reals if possible, otherwise over the complex numbers.

Question

Factor

x2+x+1x^{2}+x+1

Step-by-step solution

  1. Rule out a real factorisation with the discriminant. With a=b=c=1a=b=c=1:

    Δ=b2−4ac=1−4=−3<0\Delta=b^{2}-4ac=1-4=-3<0

    No real roots exist, so x2+x+1x^{2}+x+1 is irreducible over R\mathbb{R}. Completing the square confirms it constructively: x2+x+1=(x+12)2+34≥34>0x^{2}+x+1=\left(x+\tfrac12\right)^{2}+\tfrac34\ge\tfrac34>0, so the expression never reaches zero.

  2. Find the complex roots.

    x=−1±−32=−1±i32x=\frac{-1\pm\sqrt{-3}}{2}=\frac{-1\pm i\sqrt{3}}{2}

    a conjugate pair, as always for real coefficients.

  3. Write the factorisation over C\mathbb{C}.

    x2+x+1=(x−−1+i32)(x−−1−i32)=(x+12−i32)(x+12+i32)x^{2}+x+1=\left(x-\frac{-1+i\sqrt{3}}{2}\right)\left(x-\frac{-1-i\sqrt{3}}{2}\right)=\left(x+\frac12-\frac{i\sqrt3}{2}\right)\left(x+\frac12+\frac{i\sqrt3}{2}\right)

  4. Verify with Vieta. The roots sum to −1+i32+−1−i32=−1=−ba\dfrac{-1+i\sqrt3}{2}+\dfrac{-1-i\sqrt3}{2}=-1=-\dfrac{b}{a} ✓ and multiply to (−1)2−(i3)24=1+34=1=ca\dfrac{(-1)^{2}-\left(i\sqrt3\right)^{2}}{4}=\dfrac{1+3}{4}=1=\dfrac{c}{a} ✓, so expanding the product returns x2+x+1x^{2}+x+1 exactly. Substituting either root gives a residual below 10−1510^{-15} ✓.

  5. Recognise the roots as cube roots of unity. Because

    x3−1=(x−1)(x2+x+1)⟹x2+x+1=x3−1x−1x^{3}-1=(x-1)\left(x^{2}+x+1\right)\qquad\Longrightarrow\qquad x^{2}+x+1=\frac{x^{3}-1}{x-1}

    the two roots are exactly the cube roots of 11 other than 11 itself — written ω\omega and ω2\omega^{2}. A numerical check confirms ω3=1\omega^{3}=1 and ω2+ω+1=0\omega^{2}+\omega+1=0 to within 10−1510^{-15} ✓. This identity is also why x2+x+1x^{2}+x+1 shows up whenever a difference of cubes is factored.

Answer

x2+x+1=(x+12−i32)(x+12+i32)x^{2}+x+1=\left(x+\frac12-\frac{i\sqrt3}{2}\right)\left(x+\frac12+\frac{i\sqrt3}{2}\right)

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