Let's start with this function
expr = Abs[((x + a) (y + b)) c]^2
with this assumptions
$Assumptions={Element[x,Reals], Element[y,Reals] ,a>0,b>0,Element[c,Complexes]};
Now something strange happens when I use the TargetFunctions options: If I calculate
FullSimplify[(ComplexExpand[
D[expr, y, x] /.{x -> 0, y -> 0}
, c, TargetFunctions -> {Abs, Arg}]) - (ComplexExpand[
D[expr, y, x] /.{x -> 0, y -> 0}
, c])]
the output is 0, as I expect.
But if I calculate the same with an extra FullSimplyfy
I have a different output:
FullSimplify[(ComplexExpand[
D[expr, y, x] /.{x -> 0, y -> 0}
, c, TargetFunctions -> {Abs, Arg}]) - (FullSimplify[ComplexExpand[
D[expr, y, x] /.{x -> 0, y -> 0}
, c]])]
here the output is
-2 a b (-Sqrt[c^2] Abs[c] + Sqrt[c^3 Conjugate[c]])
- Why is the last result not zero?
- Why is the output different in the two cases?
Thank you
0
for me. $\endgroup$Sqrt[ c Conjugate[c] ]== Abs[c]
$\endgroup$