Simplifying Large Algebraic Expressions to Neat Equations in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter confi999
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around simplifying large algebraic expressions in Mathematica, particularly those that equal zero. Participants explore methods for achieving a more concise form of complex equations, including the use of specific functions and the importance of assumptions in simplification.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant inquires about simplifying a large algebraic expression that equals zero in Mathematica, providing a specific example.
  • Another participant suggests using the functions Simplify[expression] or FullSimplify[expression] to reduce the expression to simpler terms.
  • It is proposed that simplifying the entire equation rather than just one side may lead to dropping certain variables, such as c1, which could be beneficial.
  • A participant questions the validity of using FullSimplify[expression=0] and notes that it did not yield the expected simplification.
  • Another participant advises using logical equality (==) instead of assignment (=) in the FullSimplify function and reiterates the importance of including assumptions.

Areas of Agreement / Disagreement

Participants generally agree on the utility of using simplification functions in Mathematica, but there is some disagreement regarding the best approach to take—whether to simplify the entire equation or just the left side. Additionally, there is uncertainty about the correct usage of FullSimplify with an equation set to zero.

Contextual Notes

Participants mention the need for assumptions in simplification, such as c1>0, but do not specify the implications of these assumptions on the simplification process. There is also a lack of clarity on the effectiveness of different methods discussed.

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 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K