I am using Mathematica 7 in the notebook interface and I want to rearrange an inequality so that I get a certain variable on one side. For eg.
FullSimplify[x^3+L+r>3x^3+2r]
Gives
L > r + 2 x^3
However, I want :
r < L-2x^3
Is there anyway we can instruct FullSimplify to order variables in a particular way? I am using Mathematica for presentation as well so, the way I arrange the variables is important to me.
Thanks
SR
Edit: I tried Reduce, while that works for this example, it does not work for the actual expression I have, I get an error saying,
This system cannot be solved with the methods available to Reduce.
Edit: here is the actual expression:
{L - (m^2 ((-2 + e)^2 \[Delta] + (5 +
2 e (-7 + 4 e)) \[Tau]) \[Omega])/(36 (2 - 3 e + e^2)^2)} > {0}
I want this to be displayed in the form of \[delta]< *something*
Thanks!
First of all, getting Mathematica to output something exactly as you would like it is something of a black art, and requires a lot of patience. That said, if you apply
Reduceto your original expression, as per Belisarius, you’d getHowever, as you pointed out, this isn’t the full expression, and
Reduceproduces what can only be described as a less than helpful answer when applied to it. It is at this point where patience and a lot of extra processing is required. I’d start withWhile this doesn’t give you a clean answer, it is better than before and reveals more of the structure of your solution. (I would not use
FullSimplifyas that mixesDeltain with the other terms.) At this point, we need to know more about the terms themselves, and the output fromIn[2]is not quite as useful as we want.I’d re-expand this with
LogicalExpandwhich gives you twelve terms that are significantly simpler than the whatReducealone gives. (You’ll note that only the last six terms actually involveDelta, so I’d check that the variable conditions actually match those.) Selecting those last six terms only,The third term is tautological, but
SimplifynorFullSimplifycan’t seem to remove it. And we’re really only interested in the middle term anyway. IfOmega > 0your expression can then be extracted via%[[2,1,2]].Putting this all together in one expression:
After writing that out, I realized that there is a much simpler way to approach this. I’d redo line 2, above, as follows:
Or, provided you really do know that
m != 0andOmega > 0you can do