Not answer, but an observation of where the problem is (too small to fit in comment).
If you simplify the function to
g[b_] := Integrate[ f[n] Exp[-b n ], n];
Now, applying Series[g[x],{x,0,1}]
, and applying the Series
manually (from definition) to see the difference:
(g[b] /. b -> 0) + (D[g[b], b] /. b -> 0) x
Now using the Series command:
Series[g[x], {x, 0, 1}]
Ok, so where is the problem? Series
is not integrating it correctly when there is a b
inside Exp[]
(b
is the input symbol to the function). This works:
g[b_] := Integrate[ f[n] Exp[-n], n];
But once b
is added inside the integrand and has to be inside Exp[]
, it fails. Need more Tracing to find where exactly it failed.
Note: I think this is a bug. I verified with Maple, and it gives the results, which matches the manual method:
n.u
means? You use n as the integration variable, so it is one-dimensional. N.u is a vector operation. $\endgroup$