Dear Wolfram Community,
I have encountered a question regarding the comparison of two integration results obtained from FriCAS and Mathematica, and I was hoping to get your insights on this topic.
I calculated the integral of the following function using both FriCAS and Mathematica:
(4*x - 1)/sqrt(x^4 - 2*x^3 + 3*x^2 + 2*x + 1)
In FriCAS, I got the following result:
log((x^2 - 2 x + 2) sqrt[x^4 - 2 x^3 + 3 x^2 + 2 x + 1] + x^4 - 3 x^3 + 5 x^2 - 2 x)
In Mathematica, using IntegrateAlgebraic, I got the following result:
In[19]:= Integrate[(4 x - 1)/Sqrt[x^4 - 2*x^3 + 3*x^2 + 2*x + 1], x]
Out[19]= -Log[-2 x + 5 x^2 - 3 x^3 +
x^4 + (-2 + 2 x - x^2) Sqrt[1 + 2 x + 3 x^2 - 2 x^3 + x^4]]
As you can see, these two results are different in form, although they are supposed to be equivalent. I was wondering if you could provide some insights into the following questions:
Why are the results obtained from FriCAS and Mathematica different in form? Are there any general methods to check that these two different results are indeed equivalent in their respective domains?
I have tried comparing these two functions graphically, using different line styles and markers to distinguish them. However, this method can only check for equivalence at a finite number of points and does not provide a formal proof.
Thank you in advance for your help and guidance. I look forward to reading your responses.
See here for the related discussion.
Kind regards,
Zhao