$$ f(x) = \int\sqrt{1+x^{-2/3}}\,\mathrm dx $$
What I have attempted: $$ \int\left(\frac{\sqrt{x^{2/3}}}{\sqrt{x^{2/3}}}\right)\sqrt{1+x^{-2/3}}\,\mathrm dx =\int\frac{\sqrt{x^{2/3}+1}}{x^{1/3}}\,\mathrm dx $$ Then let $$\tan u = x^{1/3}$$ so, $$ \int\frac{\sqrt{\tan^{2}{u}+1})(3\sec^{2}{u}\tan^{2}{u}\,\mathrm du)}{\tan u} =\int3\sec^{3}{u}\tan{u}\,\mathrm du $$ I come up with this answer $$\sec^{3}({\tan^{-1}{x^{1/3}}})+C$$
Now,I found out that my answer is correct only when $x$ is positive.
What things did I miss out? (I don't need a new approach.)
You're making following transformation$$\int\sqrt{1+\frac{1}{x^{2/3}}}\,\mathrm dx=\int\frac{\sqrt{x^{2/3}+1}}{\sqrt{x^{2/3}}}\,\mathrm dx=\int\frac{\sqrt{x^{2/3}+1}}{x^{1/3}}\,\mathrm dx$$
But notice that
For example put $x=-8$ $$\sqrt{(-8)^{2/3}}= 2=8^{1/3} $$