Evaluate $\int\frac1x(\frac{1-√x}{1+√x})^{\frac12}dx$
My Attempt:
Inside the bracket, multiplying and dividing by $(1-√x)$,
$\int\frac1x\frac{1-√x}{(1-x)^{\frac12}}dx$
Putting $(1-x)^\frac12=t\implies 1-x=t^2\implies x=1-t^2\implies dx=-2tdt$
Thus, the integral becomes $\int{\frac{1-\sqrt{1-t^2}}{(1-t^2)(t)}(-2t)dt}=-2\int{\frac{1-\sqrt{1-t^2}}{1-t^2}dt}$
It can be written as $-2\int{\frac1{1-t^2}dt}+2\int{\frac1{\sqrt{1-t^2}}dt}$
Thus, my answer is $-\ln|\frac{1+t}{1-t}|+2\arcsin t+c$, where $t=\sqrt{1-x}$
But the answer neither matches with wolfram nor with this video solution.
What's going on here?
EDIT:
After Tony's comment, I plotted my answer on wolfram, and it doesn't match with wolfram's answer to original question.
Wolfram also gives derivative of my answer, which sort of matches with the original question but not exactly.
I think the issue here is of domain.
But in general, while substituting, we don't think of domain. Or do we? If yes, is there any general advice which could be applied to such questions?
Partial fraction decomposition leads to three simple integrals which recombine as one logarithm and one arctangent.
– Claude Leibovici Aug 13 '23 at 01:24