I need to integrate the expression G given below:
R = {Rx, Ry, Rz};
b = {bx, by, bz};
r = Sqrt[(s*b - R).(s*b - R)];
K = Exp[-r/L]/r;
G = Simplify[-K*(1/r + 1/L)*1/r*b.(s*b - R)];
If I use:
Integrate[G,{s,0,1}]
it takes quite a long time; instead if I use:
int = Integrate[G, s]
Simplify[(int /. s -> 1) - (int /. s -> 0)]
it takes less than a second.
Why is it so?