I know that in order to find the equivalence of say $ a+b $ and $ b+a $, then:
FullSimplify[a + b == b + a]
is sufficient. However, suppose I want to compare without simplifying, and simply determine the equivalence of two algebraic statements regardless of the ordering of terms? For example, $ a+b = b+a $, but $ \frac{(a+b)^2}{a+b} \neq a+b $.
Edit:
I want Mathematica to tell me commutative equivalence ONLY between two expressions. Consider another example:
$$s_1 = 3 - \sqrt{2}$$ $$s_2 = - \sqrt{2} + 3$$ $$s_3 = 3 - \sqrt{\sqrt{2}}^2$$
I want some function or procedure to tell me that $s_1 = s_2$ but $s_1 \neq s_3$.
a + b == b + aevaluates toTruebecausePlushasAttributeOrderless. – Henrik Schumacher Jan 05 '19 at 09:43(a+b)^2/(a+b)also automatically evaluates toa+b, so it's not really possible to do what you are asking for. One trick to work around it isReduce[{x/(a + b) == a + b, x == (a + b)^2}]orReduce[{x/(a + b) == a + b, x == (a + b)^2}, x].Reducewill try to generate complete conditions. In this case it will say that this is true only ifa+b != 0. – Szabolcs Jan 05 '19 at 10:36