How do you determine whether the function f(x)=x2 has an inverse and if it does, how do you find the inverse function?