> assume(n::'integer'):
> int(exp(n * x * I) * cos(x), x = 0 .. 2 * Pi);
0
But if we substitute n=1 by hand:
> int(exp(x * I) * cos(x), x = 0 .. 2 * Pi);
Pi
How do I get Maple to tell me which integral values of $n$ make the integral non-zero?
I. – GEdgar Oct 11 '21 at 01:02