For checking my calculations, I generally use Wolfram Alpha or a similar tool. Today, I wanted to check the following integral:
$$\int {\frac{1}{{9 - {x^2}}}} dx$$
From my calculations, using partial fraction decomposition, I ended up with the following answer:
$$\int {\frac{1}{{9 - {x^2}}}} {\text{ }}dx = \frac{1}{6}\left( {\ln (x + 3) - \ln (x - 3)} \right) + C$$
This is also the result returned when using the calculator at http://www.integral-calculator.com/
Using Wolfram Alpha, I however got something slightly different:
$$\int {\frac{1}{{9 - {x^2}}}} {\text{ }}dx = \frac{1}{6}\left( {\ln (x + 3) - \ln (3 - x)} \right) + C$$
Using the "step-by-step solution" feature, WA uses a trignometric hyperbolic function to get to the answer:
$$\int {\frac{1}{{9 - {x^2}}}} {\text{ dx = }}\frac{1}{3}{\tanh ^{ - 1}}(\frac{x}{3}) + C = \frac{1}{6}\left( {\ln (x + 3) - \ln (3 - x)} \right) + C$$
Using Geogebra gives the follwing result, identical to my own result except in using absolute values for the logarithmic functions, thus expanding the domain to values of x smaller than 3 :
$$\int {\frac{1}{{9 - {x^2}}}} {\text{ }}dx = \frac{1}{6}\ln (\left| {x + 3} \right|) - \frac{1}{6}\ln (\left| {x - 3} \right|)$$
Lastly, using the Wolfram Mathematica Online Integrator gives the following:
$$\int {\frac{1}{{9 - {x^2}}}} {\text{ }}dx = \frac{1}{6}\left( {\ln ( - x - 3) - \ln (x - 3)} \right)$$
Using Geogebra to plot the graphs for the various variations above, I observe the following:
The first expression (my original result) is defined for $x \geq3$. The value goes to infinity as x goes towards 3.
The expression returned by Geogebra is defined for all values of x except for x=3 and x= -3. The value goes to positive and negative infinity at these points, respectively.
The expression returned by Wolfram Alpha is defined for values between x=3 and x=-3. The value goes to positive and negative infinity at these points, respectively.
Geogebra refuses to plot the graph of the expression returned by Wolfram Mathematia Online Integrator, apparently because either logarithmic term is undefined when the other is not.
What is going on here? If all of the expressions are above are equivalent (although to me, they appear to be not), is there one that is most reasonable?