Let f be the exponential function, whose derivative is itself. The given function e^(g(x)) is the composition of f with g, and this is well known that its derivative is g'(x) f'(g(x)). In this case it gives g'(x) e^(g(x))