(a) Let f : R -> R be defined by f(x) = x^2. Show that f(x) has no inverse function.
(b) Let g : (0,inf) -> R be defined by g(x) = x^2. Show that g(x) has an inverse function.