This may be more math related than Mathematica related, but I thought this might be of interest to the group.
I'm trying to work with some Taylor Series approximations of functions that are ultimately exponentiated. I've noticed that the order which I apply Normal
and Exp
affects the output, but I don't understand why.
Here's an example
Series[-q (c[x1] - c[x2]), {x2, x1, 1}]
Exp[%] // Normal // Simplify
(Exp[%% // Normal]) // Simplify
The output is
SeriesData[x2, x1, {q*Derivative[1][c][x1]}, 1, 2, 1] 1 + q*(-x1 + x2)*Derivative[1][c][x1] E^(q*(-x1 + x2)*Derivative[1][c][x1])
Assuming that we are dealing with real functions and parameters, it seems like the Exp[%% // Normal]
would be more accurate since we can derive the Exp[%] // Normal
result from it when q
is close to zero.
Can anyone explain why I get these differences?