I'm doing an indefinite integral on Mathematica and need the result in a more traditional form such as a polynomial in descending order. Something like, (-2+x)->(x-2). I have to integrate a rational function which would result in natural log of some expression in an absolute value. Here is the code I have below,
PolynomialForm[Integrate[1/((x - 2) (x + 3)), x], TraditionalOrder -> True]
and the resulting antiderivative it gives me is:
1/5Log[2-x]-1/5Log[x+3]
I figured out how to get |3+x| to become |x+3| by using PolynomialForm, but I still need to get |2-x| into |x-2|. I know both of them are equal to one another because of the absolute value. But Mathematica doesn't give me an absolute value, which is fine, but I need |2-x| to be |x-2|.
Any ideas on how to do so?