I was having confusion over the concepts of roots. My confusion begins as: I know that if $x^{1/n}=y$ then $y^n=x$ must be true.
Case 1: With square roots, let's take $y=4^{1/2}$
We know $y=2$ is a solution as $2^2=4$, but $y=-2$ must also be a solution as $(-2)^2=4$ is also true. But I browsing here I read that $(x^2)^{1/2}$ is actually equivalent to absolute value of $x$, hence only $y=2$ is solution of my above case.
Case 2: With cubic root, let's restrict ourselves to the real no.s's domain, let's take $y=(-8)^{1/3}$, then $y=-2$ seems feasible solution as $(-2)^3=-8$ but why in this case absolute value after cube root is not required. Also, why $(-x)^{1/3}=-(x)^{1/3}$, but $(-x)^{1/2}$ is not equal to $-(x)^{1/2}$
The same apparent ambiguity goes with $x^{1/4}$ and $x^{1/5}$
So, in general what is the general function definition of $x^{1/n}$?