The following plot indicates that the first expression equals the second. But how can I use Mathematica to show that is true:
Plot[(-(Log[(1 - P)/P]/Log[10])) - (Log[-(P/(-1 + P))]/Log[10]), {P, 0, 1}]
An attempt to simplify indicates the expressions are not equal:
FullSimplify[(-(Log[(1 - P)/P]/Log[10])) - (Log[-(P/(-1 + P))]/Log[10])]
That gives the following answer:
(Log[-1 + 1/P] + Log[-(P/(-1 + P))])/Log[10]
Assumptions -> 0 < P < 1
toFullSimplify
and it will tell you they are the same on that domain. Without assumptions, Mathematica will try to solve the equation for every possible complex value ofP
and the two equations are not generally equal due to branch cuts. $\endgroup$FullSimplify[(-(Log[(1 - P)/P]/Log[10])) - (Log[-(P/(-1 + P))]/ Log[10]), P > 1]
reveals that the expressions are not equal for arbitrary realP
. So Mathematica would have lied if she had simplifiedFullSimplify[(-(Log[(1 - P)/P]/Log[10])) - (Log[-(P/(-1 + P))]/Log[10])]
to0
. $\endgroup$FullSimplify[]
what you know aboutP
, so of course you get a general result. $\endgroup$