Evaluate definite integral: $$\int_{-\pi/2}^{\pi/2} \cos \left[\frac{\pi n}{2} +\left(a \sin t+b \cos t \right) \right] dt$$
$n$ is an integer. $a,b$ real numbers.
The purpose of the integral - computing matrix elements of an electron Hamiltonian in an elliptic ring in the quantum box basis.
Before you ask me what I've done already, I've got this integral from the original, much more complicated one.
Originally I just gave up and computed it numerically.
But I wonder - is it possible to express the integral in closed form with Bessel functions?
Or maybe some series, still better than numerical integration.
I'm not asking for a full solution, some hint would be fine. Or even just a reassurance that a closed form exists.
Write $a \sin(t) + b \cos(t) = c \cos(t-\delta)$ where $a = c \sin(\delta)$ and $b = c \cos(\delta)$. So now (depending on $n$ mod $4$) we want to look at $\pm \int_{-\pi/2}^{\pi/2} \cos(c \cos(t-\delta))\; dt$ or $\pm \int_{-\pi/2}^{\pi/2} \sin(c \cos(t-\delta))\; dt$.
The integral with $\cos$ turns out nicely, because (due to symmetry) we can take the integral from $-\pi$ to $\pi$ and divide by $2$:
$$ \int_{-\pi/2}^{\pi/2} \cos(c \cos(t-\delta))\; dt = \pi J_0(c)$$
The integral with $\sin$ is not as nice. If we call it $F(c)$, then we have the differential equation
$$ c F''(c) + F'(c) + c F(c) = 2 \cos(\delta) \cos(c \sin(\delta))$$ with initial conditions $$ F(0) = 0,\ F'(0) = 2 \cos(\delta)$$
whose solution, according to Maple, is
$$ F(c) = \pi \cos(\delta) Y_0(c) \int_0^c J_0(z) \cos(z \sin(\delta))\; dz - J_0(c) \int_0^c Y_0(z) \cos(z \sin(\delta))\; dz $$
and I don't think those integrals over $z$ can be done in closed form.