If I do Integrate[Exp[I*omega*t],t], it gives me $\frac{1}{\omega} e^{i \omega t}$, as expected in most of the cases, except when $\omega$ is 0.
Mathematica seems to assume, without any input from me (other than Element[omega, Reals], that $\omega$ is non zero.
Is there a way to get a more general integral, also valid in the case $\omega = 0$, or should I handle such cases on my own?
Thanks
EDIT: In my specific case, I have some function, let's say Sin[a * Exp[I*omega_a*t] * Sin[b * Exp[I*omega_b*t]] which I expand in powers of $a$ and $b$ up to some orders. Then, I have multiple terms oscillating at sums and differences of frequencies $\omega_a$ and $\omega_b$ and I am looking at the mean value (over time) of this expansion, depending on the values of $\omega_a$ and $\omega_b$. Then, Integrate being able to deal with such edge cases would directly give me the result.
GenerateConditions -> Trueto identify special cases. – bbgodfrey Feb 04 '16 at 15:17Integrate, it did not change anything =( – Phyks Feb 04 '16 at 15:32Expandthe result so we get a linear combination of exponentials. Each exponential hasI ttimes a linear combination of $\omega_a$ and $\omega_b$. We are really only interested in which of these are zero. We can try to do it using careful pattern matching instead of integration. What do you think? Before trying to write an answer about that, can you (semi-)manually work out a very small example, to make sure there's no misunderstanding? – Szabolcs Feb 05 '16 at 17:50