(a) Let f : (-infty,0) U (0,infty) -> R be defined by f(x) = 1/x. Show that f has no inverse function.
(b) Let g : (0,infty) -> R be defined by g(x) = (x + 1)/x. Show that g has an inverse function.