Mathematica Simplifying Large Algebraic Expressions to Neat Equations in Mathematica

  • Thread starter Thread starter confi999
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
To simplify a large algebraic expression that equals zero in Mathematica or MATLAB's symbolic package, the recommended approach is to use the functions Simplify[expression] or FullSimplify[expression]. These functions apply algorithms to reduce expressions to simpler forms. It is advised to simplify the entire equation rather than just one side, as this can lead to the elimination of variables like c1. Including assumptions, such as c1 > 0, can enhance the simplification process. When using FullSimplify, it is important to use logical equality by writing FullSimplify[expression == 0] instead of FullSimplify[expression = 0], as the latter does not yield the expected results.
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.
 

Similar threads

Replies
2
Views
2K
Replies
5
Views
3K
Replies
4
Views
5K
Replies
11
Views
1K
Replies
4
Views
1K
Replies
3
Views
2K
Back
Top