I'm trying to derive this
and getting this
But the answer I get when checking on Wolfram Alpha is
I don't understand how this works. How do the exponents for e become positive all of a sudden, and where does the +2 in the denominator come from?