Does $\exp(f(x)) = e^{f(x)}$?

119 Views Asked by At

I've rarely seen the notation $\exp(f(x))$ but whenever I do I just replace it with $e^{f(x)}$. Is this correct, or do these mean something different? Also, in computer science, should these be replaced rather with $2^{f(x)}$ since the base mostly considered is $2$?

2

There are 2 best solutions below

0
On BEST ANSWER

Is this correct, or do these mean something different?

Yes, it is correct.

And yes, it is different — typographically. If the exponent gets complicated, typesetting the exponent can result in tiny symbols that might be hard to read. Using $\exp$ makes the exponent "one level" bigger. Using notation $e^x$ is preferred, IMHO, for simple exponents because it is shorter and needs less parenthesis.

Also, in computer science, should these be replaced rather with $2^{f(x)}$ since the base mostly considered is $2$?

No, of course not. Some math libs provide functions like $\operatorname{exp2}$ and $\operatorname{exp10}$ for bases 2 and 10, respectively, but $\exp$ is still base $e$.

0
On

For typographical puroses, when the exponent is complicated, it is preferable to write it with $\exp$ for readability. Compare $$ \exp\left(\frac{(\ln x)^2}{\sqrt{x^2+1}}\right) = e^{\frac{(\ln x)^2}{\sqrt{x^2+1}}} $$


Sometimes in elementary texts we define a function $\exp$, develop some of its properties, and only after a while (from the properties) can we see that it is reasonable to write $e^x$ for this function.