the final output of my code gives this expression which i call ttt
:
ttt = Sqrt[f[1] f[2]]/(Sqrt[f[1]/f[2]] (gamma^2 + f[1] f[2]));
Now i want to simplify this expression for obvious reason. If i do :
Simplify[ttt]
FullSimplify[ttt]
Collect[ttt, f[1], f[2]]
I obtain:
Sqrt[f[1] f[2]]/(Sqrt[f[1]/f[2]] (gamma^2 + f[1] f[2]))
Sqrt[f[1] f[2]]/(Sqrt[f[1]/f[2]] (gamma^2 + f[1] f[2]))
Sqrt[f[1] f[2]]/(Sqrt[f[1]/f[2]] (gamma^2 + f[1] f[2]))
Is there a way to have a simplification for this expression ?
ttt//PowerExpand
works. Otherwise, specify someAssumptions
with simplify. $\endgroup$ttt // PowerExpand
, in this case i can't useAssumptions
because the problem is a trivial division. $\endgroup$Assumptions
like this:Simplify[ttt, f[1] > 0 && f[2] > 0]
. $\endgroup$FindInstance[ttt != PowerExpand[ttt], {f[1], f[2], gamma}]
. It gives you a specific case wherettt
and the "simplified" answer are not the same. Your simplification is simply not always correct. It is correct whenf[1] > 0, f[2] > 0
though. That's why you need to specify it, or imply it by usingPowerExpand
. $\endgroup$