Simplifying Large Algebraic Expressions to Neat Equations in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter confi999
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 4K views
confi999
Messages
18
Reaction score
0
If I want to simplify an extremely large algebraic expression which equals zero to a simple neat equation -- how do I do that in Mathematica (or symbolic package of Matlab). Giving you an example of the equation below:

(c1 (-1 + E^(I dx kx)) (-1 + v4))
--------------------------------------------------------
(-1 - 6 c1 c2 v1 + 6 c1 c2 v1 Cos[dx kx])

(c1 (-1 + E^(I dx kx)) (-1 + v4))
+ -------------------------------------------------------
(1 + 6 c1 c2 v1 - 6 c1 c2 v1 Cos[dx kx])

(4 c1 c2 (-1 + v4) (-1 + Cos[dx kx]))
- ----------------------------------------------------------- = 0
(-1 - 6 c1 c2 v1 + 6 c1 c2 v1 Cos[dx kx])


In fact my equation is much more larger than this. Thank you
 
Physics news on Phys.org
If you wish to reduce and expression (in this case, just the left side of the equation) to a simpler form, use either

Simplify[expression]

or

FullSimplify[expression]


These use algorithms to try to reduce the given expression to the simplest terms. You can there after set it equal to zero.
 
I would recommend to simplify the equation as a whole rather than just the expression on the left. If you simplify the expression then c1 will remain, but if you simplify the equation as a whole c1 will drop out. Also, be sure to provide any assumptions (such as c1>0, etc.) to Simplify or FullSimplify.
 
DaleSpam said:
I would recommend to simplify the equation as a whole rather than just the expression on the left. If you simplify the expression then c1 will remain, but if you simplify the equation as a whole c1 will drop out. Also, be sure to provide any assumptions (such as c1>0, etc.) to Simplify or FullSimplify.

In mathematica FullSimplify[expression] is valid but is FullSimplify[expression=0] a valid expression or will it work as we expect (like what you explained). I tried but it didnot give any improvement... it simply showed the expression on left and zero on the right of the equal. Is there any special clue that I am missing.
 
Use the logical equals instead of the set equal. I.e. FullSimplify[expression==0] Also, as I suggested earlier be sure to include any assumptions.