1

I've done:

p[x_] := x^2 + x + 1;
roots = Solve[p[x] == 0, x] // ComplexExpand;
roots = roots /. x -> y;
Times @@ (x - y /. roots)

Which produces this output:

(* (1/2 - (I Sqrt[3])/2 + x) (1/2 + (I Sqrt[3])/2 + x) *)

What can I add so that the output is:

$$\left(x+\frac12+\frac{i\sqrt3}{2}\right)\left(x+\frac12-\frac{i\sqrt3}{2}\right)$$

I did try TraditionalForm.

David
  • 14,883
  • 4
  • 44
  • 117
  • 6
    There's not much flexibility in terms of reordering. See http://mathematica.stackexchange.com/questions/9570/how-do-i-reassign-canonical-ordering-of-symbols – QuantumDot Oct 17 '15 at 18:24
  • 4
    Mathematica has its own idea about the canonical ordering of terms. Learn to love it. – m_goldberg Oct 17 '15 at 21:28
  • Does any of this help http://mathematica.stackexchange.com/questions/9570/how-do-i-reassign-canonical-ordering-of-symbols?lq=1 – bobbym Oct 18 '15 at 07:39

0 Answers0