Often we substute $x$ with another variable having even/odd indices in order to get integral way easier and shorter than usual route.
Lets say for an function $\frac1 {(x-3)\sqrt{x+1}}$ we considered $x+1=z^2$. If we use this to get the integral then we might obtain integral=$\frac1 2ln|\frac{z-2} {z+2}|+c$. Now what is the value of $z$? Is it $z=\sqrt{x+1}$ or $z=\pm\sqrt{x+1}$?
I have faced aame sort of confusion for a lot of problems like this. However my textbook ignores the $"-"$ sign. I don't know if it is correct or not. Getting rid of thos confusion will help me a lot since this has been troubling while doing most of the problems my textbook contains.
I have looked in wolframalpha for this form of integral but found out that the site has solved the same function but in completely different ways which I am unfamiliar with.
Apparently it looks there should be $"\pm"$ but I am not sure whether my considerations are all right or not.
Also consider functions like $\frac 1 {(ax+b)(cx^n+d)}$
Another example:
$\int{x\sqrt{4-x} dx}$
If we consider $4-x=z^2$ then what should be the value of z?
Observe that $f:\mathbb{R}\to\mathbb{R}$ given by $f(x)=x^2$ is not bijective and so, it does not have an inverse.
However, $f:\mathbb{R}_+\to \mathbb{R}_+$ given by $f(x)=x^2$ is bijective. Thus,, in general, when you have $x=z^2$, it would mean $z=|x|$.