I'm very new to Mathematica, and I've been using it to evaluate some symbolic expressions in my research that are too complicated to do by hand. However, some of them don't simplify when it is obvious to me that it could be simplified further. The following is a simple example (compared to the much messier other expressions I have):
FullSimplify[Expand[Sqrt[1+2 Subscript[\[Gamma], Q]+Sqrt[1-4 Subsuperscript[\[Gamma], P, 2]+4 Subscript[\[Gamma], Q]]] Sqrt[(1-2 Subsuperscript[\[Gamma], P, 2]+2 Subscript[\[Gamma], Q]+Sqrt[1-4 Subsuperscript[\[Gamma], P, 2]+4 Subscript[\[Gamma], Q]])/(1+2 Subscript[\[Gamma], Q]+Sqrt[1-4 Subsuperscript[\[Gamma], P, 2]+4 Subscript[\[Gamma], Q]])] (1+4 Subscript[\[Gamma], Q]+Sqrt[1-4 Subsuperscript[\[Gamma], P, 2]+4 Subscript[\[Gamma], Q]])], 0<4 Subsuperscript[\[Gamma], P, 2]+4 Subscript[\[Gamma], Q]<1 \[And]Subscript[\[Gamma], P] \[Element] Reals \[And]Subscript[\[Gamma], Q] \[Element] Reals ]
(I also attached the screenshot for better readability)
So clearly the $$\sqrt{1+2\gamma_Q+\sqrt{1-4\gamma_P^2+4\gamma_Q}}$$ term can be cancelled out since I have a constraint that $\gamma_P, \gamma_Q$ are such that this term is strictly positive. I have tried both Simplify
, Expand
then Simplify
, FullSimplify
, all with Assumptions
option, as well as tighting the constraints on $\gamma_P, \gamma_Q$ so that they are not just real but in a smaller interval, so I'm not sure how to make this expression simplify even further. Any guidance would be appreciated!
PowerExpand
instead ofExpand
would do it. $\endgroup$FullSimplify
doesn't "denest radicals" and there is a library function somewhere that will enable Mathematica to do that in the cases where it is feasible to do. After that has been done then sometimes it is possible to further simplify some expressions. A Google Search for denest radical gives what looks like it might help. Or other searches might help. If that works for your problem then that may be what you are looking for. $\endgroup$Superscript[x,2]=== x^2
isFalse
. Do you mean forSubsuperscript[\[Gamma], P, 2]
to meanSubscript[\[Gamma],P]^2
? In any case, you should avoid usingSubscript
while defining symbols or variables. Things likeSubscript[x, 1]
are not a symbol, but a composite expression whereSubscript
is an operator without built-in meaning. Read how to properly define indexed variables here $\endgroup$