>>13358849subtle. you swept a out of the calculation, just like how when people write . the issue is that you've chosen different branch cuts of the logarithm. when you write , that's fine. but that then means you cannot write at the end since it's part of a different branch cut (hence introducing an additional negative sign).