5. (15%) If $f$ and $g$ are differentiable functions such that

$$f(g(x)) = x \text{ and } f'(x) = 1 + [f(x)]^2.$$

Find an explicit formula for $g'(x)$.