I am trying to differentiate this: $$f(x)=e^{-x^2}$$
In Wolfram Alpha I get this: $$-2x\,e^{-x^2}$$
But in Mathematica I get: $$-2x\,e^{-x^2}\log(e)$$
Why the difference?
I am trying to differentiate this: $$f(x)=e^{-x^2}$$
In Wolfram Alpha I get this: $$-2x\,e^{-x^2}$$
But in Mathematica I get: $$-2x\,e^{-x^2}\log(e)$$
Why the difference?
Copyright © 2021 JogjaFile Inc.
The difference is in notation.
Mathematica, by convention, only assigns special meaning to identifiers that begin with a capital letter, not lowercase. In particular, the mathematical constant $e$ is represented as
Ein Mathematica - when you type it in. When it appears in output, it is written as "" to distinguish it.A lowercase
ein Mathematica has no special meaning: it is a variable, just likeforg. Mathematica treats it as a variable: you can tell because of the syntax highlighting. Ifewere equal toE, thenLog[e]would simplify to1and go away.