Question:
Evaluate $I=\int_{0}^{2}x\cdot\sqrt{x+2}\ dx$.
My Approach:
Put $x+2=t^{2}$. Now changing limits: Lower Limit $\left(x=0\right)\ :\ t^{2}=0+2=2$ $\to$ $t=\pm\sqrt{2}$
How do I know if i have to take the t with + or - sign? Same confusion is with the upper limit. Sorry if this might be too bad of a question to ask but I have only began with definite integration. I know This doubt is really specific because taking some other substitution would not have landed me in this situation. But how do I proceed this way?
Edit:
I think everyone is right, It is just a matter of preference. What alex is saying is:
Let me take $-\sqrt{2}$ as the lower limit and $-2$ as the upper limit, since I have substituted $t^{2}=x+2$ We have, $dx=2tdt$ and the integral becomes: $I=2\int_{-\sqrt{2}}^{-2}\left|t\right|\cdot t\cdot\left(t^{2}-2\right)dt$ which gives the same answer. Here we will open |t| with - sign because we know it is varying in negative number.
We can even take lower limit as $-\sqrt{2}$ and upper limit as $+2$ and evaluate the integral which gives the same thing but this time I have to split the integral because of the mod, specifically: $$I=2\int_{-\sqrt{2}}^{2}\left|t\right|\cdot t\cdot\left(t^{2}-2\right)dt$$
$$I=2\int_{-\sqrt{2}}^{0}\left(-t\right)\cdot t\cdot\left(t^{2}-2\right)dt+2\int_{0}^{2}\left(+t\right)\cdot t\cdot\left(t^{2}-2\right)dt$$ .
Both give the same answer. Obviously integrating from $+\sqrt{2}\to2$ is easy but it's nice to get the concepts right.