$Assumptions = (a > 0 && m > 0 && h > 0 && t \[Element] Reals && A \[Element] Reals); \[CapitalPsi][x_, t_] := A Exp[-a m x^2/h - a I t] Solve[Integrate[Abs[\[CapitalPsi][x, t]]^2, {x, -Infinity, Infinity}] == 1, A] Select[%, Simplify[(A /. #) > 0] &][[1]] This will give the expected result
{A -> ((a m)/h)^(1/4) (2/\[Pi])^(1/4)}
But my initial attempt by using A>0 in $Assumptions instead of A \[Element] Reals or adding it in Solve
$Assumptions = (a > 0 && m > 0 && h > 0 && t \[Element] Reals && A > 0); will return
Root[-2 a m + h \[Pi] #1^4 &, 2]
Applying ToRadicals gives
-((a^(1/4) m^(1/4) (2/\[Pi])^(1/4))/h^(1/4))
It looks incorrect to me. Is there anyone who can explain it and maybe offer a better way to pick up the positive solution?
Assuming[A > 0 && b > 0, Solve[A^2 Sqrt[b] == 1, A]]. $\endgroup$SetOptions[Solve,Assumptions->None]. Prior to 12.2,Solvedid not take assumptions and it worked much better. $\endgroup$Simplifywith assumptions to better control the result you get afterSolve. $\endgroup$foo = Assuming[A>0 && b>0, Solve[A^2 Sqrt[b]==1, A]]; murf = foo // ToRadicals; ReImPlot[A /. Join[foo, murf] // Evaluate, {b, -2, 2}, PlotStyle -> {Automatic,Dashed}]: TheRoot[]and the radical initially agree but change whenb == 0. Radicals andRoots are not equivalent. Radical expressions do not keep the order thatRoot[..., k]does.ToRadicals[]does not use assumptions. $\endgroup$