I am running Mathematica 11.1 on an Ubuntu machine and noticed the following unsavory behaviour today:
In[1] := Assuming[ Element[x,Reals],
Integrate[1/(1 + y^2)*1/(y - x), {y, -Infinity, Infinity},
PrincipalValue -> True]
]
Out[1] = Log[(-1)^(1/(1 + x^2)) e^(π /(I - x))]
In[2] := Assuming[ Element[w,Reals],
Integrate[1/(1 + y^2)*1/(y - w), {y, -Infinity, Infinity},
PrincipalValue -> True]
]
Out[2] = -π w/(1+w^2)
Although the two answers are mathematically equivalent, it is not clear to me why the results are presented in different manners (and different enough that Simplify or FullSimplify does not reveal the latter from the former.
Clearly the answer should not depend on what symbol I use, but it does. I have obtained the same result using different kernels on the same computer. I could not reproduce the problem on Mathematica 8.0 or Mathematica 10.0 on two different Linux machines.
Is this perhaps an issue with my machine/setup? I would also like to know if others can reproduce this issue. I would also like to know if this issue persists in 11.2, if it does not I will upgrade.
Note: I believe that this is a different issue than covered here since using u,v, or z gives the same problem as x; only w seems to work as desired.
xis) who come before and after x which do not work (exceptw). I'm mainly curious if this is a bug that was introduced in 11.1 and not fixed in 11.2 or if it was fixed in 11.2 (since it does not appear to exist before 11.1). – Jeremy Upsal Jan 07 '18 at 23:40ycan be any character, but onlyi,landwas the parameter give the simpler form. – corey979 Jan 07 '18 at 23:46iandldo not give the simpler form in v11.1. – Jeremy Upsal Jan 07 '18 at 23:50xtox > 2.78215965, then we get the simpler form, but not if I usex > 2.78215964. – Michael E2 Jan 08 '18 at 01:13x>2.78215965the time increases to 1.66046 but gives the simpler form. If I change the assumption tox>2.78215964the time increases more to 1.72901 and does not give the correct form. – Jeremy Upsal Jan 08 '18 at 17:33