Let's say I would like to find a symbolic form for the integral $$\int_0^{2\pi}\sin^nx\,\mathrm{d}x$$with the added condition that $n$ is not only an integer, but an even one at that. Can this be done?
I've tried
Integrate[Sin[x]^n, {x, 0, 2Pi}, Assumptions -> {n == 2k && k ϵ Integers}]
but this seems to ignore the k altogether.
I didn't expect this to work, but I've also tried using
Assumptions -> {n ϵ Integers && EvenQ[n] == True}
but that only returns Integrate[..., Assumptions -> {False}].
Edit: I realize I could replace n with 2n and just use Assumptions -> n ϵ Integers, but is there a way to compound the even/integer conditions in Assumptions?


