# Checking if two expresssions are equal in mathematica fails [closed]

I want to see if two expressions are equal. I have tried all of the methods outlined in this question but none seem to work.

I have two expressions, part1 and part2:

\[CapitalSigma] = r^2 + a^2*Cos[theta]^2;
\[CapitalDelta] = r^2 - 2*r + a^2;
part1 = (-((3 a^2 r)/2) + r^3 -3/2 a^2 r Cos[2 theta])/((a^2 + (-2 + r) r) (r^2 +a^2 Cos[theta]^2)^2);
part2 = (r*(r^2 - 3*a*Cos[theta]^2))/(\[CapitalSigma]^2*\[CapitalDelta]);


These two expressions are equal and so I expect FullSimplify[part1 == part2] to return True, but it does not.

Any ideas?

## closed as off-topic by Szabolcs, zhk, Henrik Schumacher, Daniel Lichtblau, MarcoBMar 7 at 14:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Szabolcs, zhk, Henrik Schumacher, Daniel Lichtblau, MarcoB
If this question can be reworded to fit the rules in the help center, please edit the question.

• They're not equal. Consider {a -> -2, r -> 1, theta -> -1} or {a -> 2, theta -> 0, r -> 1} – Szabolcs Mar 7 at 13:24
• The two expressions are equal when typo is fixed in part1 = (-((3 a r)/2) + r^3 - 3/2 a r Cos[2 theta])/((a^2 + (-2 + r) r) (r^2 + a^2 Cos[theta]^2)^2); That is, the two a^2 in the numerator should be replaced with a. – Somos Mar 8 at 1:03

Lets try giving some numerical values to r, a and theta,

r = 10; a = 10; theta = 10;

\[CapitalSigma] = r^2 + a^2*Cos[theta]^2;
\[CapitalDelta] = r^2 - 2*r + a^2;

part1 = (-((3 a^2 r)/2) + r^3 - 3/2 a^2 r Cos[
2 theta])/((a^2 + (-2 + r) r) (r^2 + a^2 Cos[theta]^2)^2) //Simplify


-((1 + 3 Cos)/(900 (3 + Cos)^2))

part2 = (r*(r^2 - 3*a*Cos[theta]^2))/(\[CapitalSigma]^2*\[CapitalDelta]) //Simplify


(17 - 3 Cos)/(9000 (3 + Cos)^2)

FullSimplify[part1 == part2]


False

So your two expressions are not equal