After reading some of the questions concerning Simplify
, I still didn't find a solution to my confusion.
I want Mathematica to simplify
Simplify[(-1 + x) Sqrt[(1 - x) (-1 + y^2)] +
Sqrt[(1 - x)^3 (-1 + y^2)], -1 <= x <= 1 && -1 <= y <= 1]
to zero, where $x,y\in [-1,1]$. However I get the same expression.
Nevertheless, Mathematica doesn't seem to have a problem with:
Simplify[(-1 + x) Sqrt[(1 - x)] +
Sqrt[((1 - x)^3) ], -1 <= x <= 1 && -1 <= y <= 1]
0
Or with:
Simplify[Sqrt[(1 - x) (-1 + y^2)] -
Sqrt[(1 - x)] Sqrt[(-1 + y^2)], -1 <= x <= 1 && -1 <= y <= 1]
0
Even more surprisingly if I would just substitute $1-x = a \in [0,2]$ and $1-y^2 = b \in[0,1]$ then also
Simplify[-a Sqrt[a (-b)] + Sqrt[a^3 (-b)], 0 < a < 2 && 0 < b < 1]
0
is OK... What is going on? Is there something I'm implicitly assuming?
Simplify
is basically a discrete minimizer ofLeafCount
under various transformations, probably theLeafCount
of intermediate results increases more with1-x
instead ofa
. The transformations might be rejected before they get to the simpler expressions. $\endgroup$ – Michael E2 Jan 26 '16 at 12:37ComplexityFunction
orTransformationFunctions
. -- See my answer $\endgroup$ – Michael E2 Jan 26 '16 at 12:53