Stuck on this? Solve it with AI
Algebra · real student question

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

Question

Factor

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

Step-by-step solution

  1. Compute the discriminant to settle the real case. With a=1a=1, b=−1b=-1, c=1c=1:

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

    Since Δ<0\Delta<0 the quadratic has no real roots, so it is irreducible over R\mathbb{R} — no pair of real linear factors exists, and searching for integer factor pairs of 11 is futile.

  2. Find the complex roots with the quadratic formula.

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

    The two roots are complex conjugates, as they must be for a polynomial with real coefficients.

  3. Write the factorisation over C\mathbb{C}. A monic quadratic equals the product of (x−root)(x-\text{root}) over its roots:

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

  4. Verify by multiplying back. The product is x2−(r1+r2)x+r1r2x^{2}-(r_{1}+r_{2})x+r_{1}r_{2}. The sum of the roots is 1+i32+1−i32=1\dfrac{1+i\sqrt3}{2}+\dfrac{1-i\sqrt3}{2}=1 ✓ and the product is 12−(i3)24=1+34=1\dfrac{1^{2}-\left(i\sqrt3\right)^{2}}{4}=\dfrac{1+3}{4}=1 ✓, giving x2−x+1x^{2}-x+1 exactly. Substituting either root leaves a residual below 10−1410^{-14} ✓.

  5. Note the real alternative and the identity behind it. Completing the square gives the real form x2−x+1=(x−12)2+34x^{2}-x+1=\left(x-\tfrac12\right)^{2}+\tfrac34, showing the minimum value 34>0\tfrac34>0 — an independent proof it never vanishes. The roots are also the primitive sixth roots of unity, reflecting the identity x2−x+1=x3+1x+1x^{2}-x+1=\dfrac{x^{3}+1}{x+1}.

Answer

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

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