From Rogawski, Jon (2011-04-01). Single Variable Calculus (Page 343). W. H. Freeman. :
To compute the derivative of a function of the form eg(x), write eg(x) as a composite eg(x) = f(g(x) ), where f(u) = eu, and apply the Chain Rule:
[ f(g(x) ) ]' = f'(g(x) ) * g'(x) = eg(x) * g'(x) [ because f'(x) = ex ]
A special case is ( ekx+b )' = kekx+b, where k and b are constants.
Is f(g(x) ) = ekx+b really a special case? Isn't this the general case?
No, the case $\mathrm{g}(x) = kx+b$, i.e. where $\mathrm{g}$ is a linear function, is really quite special.
Even amongst all possible polynomials $a_nx^n + a_{n-1}x^{n-1}+\cdots + a_1x + a_0$, the linear functions are a special example. When you include trigonometric function, logarithms, rational functions, hyperbolic functions and other non-elementary functions, you see that $\mathrm{g}(x)=kx+b$ is special.
What about, for example,
$$\mathrm{g}(x) = \sin(\cos(\ln(\sin(\cos(\mathrm{e}^x))))$$