I am interested in simplifying expressions involving HeavisideTheta. A simple example could be:
HeavisideTheta[1 + x - x^2 + x^3]
The best I can achieve is with
FullSimplify[HeavisideTheta[1 + x - x^2 + x^3]//FunctionExpand]
but that only outputs this:
HeavisideTheta[x - Root[1 + #1 - #1^2 + #1^3 &, 1]]
Now, I know mathematica can solve the given polynomial:
In[2]:= Solve[-1 - 2 x - x^2 + 2 x^3 + x^4 == 0]
Out[2]:= {x -> 1/2 (-1 - I Sqrt[-5 + 4 Sqrt[2]])}, {x ->
1/2 (-1 + I Sqrt[-5 + 4 Sqrt[2]])}, {x ->
1/2 (-1 - Sqrt[5 + 4 Sqrt[2]])}, {x ->
1/2 (-1 + Sqrt[5 + 4 Sqrt[2]])}}
But how do I make it give me an appropriately simplified expression for the simplified HeavisideTheta?
SimplifyandFullSimplifydon't solve equations, even extremely easy ones; 2) The result with all thoseSqrts is longer than the original expression, so even ifFullSimplifydid manage to find that result, it would discard it since it's no simpler than the input! – 2012rcampion Apr 01 '15 at 14:40