On occasion I have two expressions that I may be equal but simplified differently, and I want to check if they are actually equivalent.
Using the equation in the title, $x^2 -x == x(x-1)$, sometimes I want to check if the RHS is indeed equal to the LHS. $==$ does not seem to work, though; it just returns my input, and if I use triple equals (sameQ) $===$ It will give false for $x^2 -x == x(x-1)$.
Is there a way to do this/Am I doing something wrong? Also, should I simply not use mathematica for this?
As a note, it is easy to plug in values and get a feel for it numerically when the number of variables/parameters is small, but when there are a lot that is not always feasible.
Thanks.
Simplify[]andFullSimplify[]. OrExpand[]. – J. M.'s missing motivation May 17 '16 at 00:53Simplify[x^2 - x == x (x - 1)]yieldsTrue. – bbgodfrey May 17 '16 at 04:16PossibleZeroQ[]on the difference. – Daniel Lichtblau May 17 '16 at 15:43