Given D[eⁿ, n], Mathematica produces:

eⁿ Log[e]

Why? (Or rather, why not just eⁿ?)

  • 5
    $\begingroup$ Case sensitivity. In particular, E != e. $\endgroup$ Aug 30 '17 at 14:19
  • 2
    $\begingroup$ To add to that: note that when you type e in Mathematica it will be highlighted as blue, while E is black. Blue symbols don't have definitions (either user-defined or build-in), so the fact that e is blue is a hint that Mathematica considers it just to be a variable and nothing more. $\endgroup$ Aug 30 '17 at 14:37
  • 2
    $\begingroup$ If you want to use the more familiar notation for the exponent, it's easily entered as esceeesc. This is rendered as a math double stroke lowercase e, but behaves as as the exponential E. D[\[ExponentialE]^n, n]===\[ExponentialE]^n $\endgroup$ Aug 30 '17 at 20:16

Built-in symbols are capitalized.

You want E (or esceeesc), not e.

  • $\begingroup$ Quick and easy! Thank you! Added an edit to your comment to make it a little more useful to future visitors, I hope. (I feel like an idiot! 🤣) $\endgroup$ Aug 31 '17 at 3:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.