I was trying to find the equation of a sinusoidal function that has one upward facing semicircle and immediately after one downwards facing semicircle which would make up a period of the function. When I evaluated the Fourier Series I came up with this integral:
$\int_{-1}^1 cos{(n\pi x)}\sqrt{1-x^2}~dx$
Also a clearer problem of similar difficulty is if the period is simply an upwards facing semicircle. If you can solve the integral or find another solution to the problem help is greatly appreciated.
Using the parity of the integrand, in conjunction with a simple trigonometric substitution, will automatically yield a Bessel function, or, better said, the sum between a Bessel function and its second derivative, which can then be simplified using its various properties.
$$\begin{align} I~&=~2~\int_0^\tfrac\pi2\cos(n\pi\sin t)~\cos^2t~dt~=~2~\int_0^\tfrac\pi2\cos(n\pi\sin t)~\Big(1-\sin^2t\Big)~dt~=~ \\\\ ~&=~2~\int_0^\tfrac\pi2\cos(n\pi\sin t)~dt~+~2~\bigg[~\frac{\partial^2}{\partial a^2}\int_0^\tfrac\pi2\cos(a\sin t)~dt~\bigg]_{a=n\pi}~=~ \\\\ ~&=~\pi~\bigg[~J_0(n\pi)+J_0''(n\pi)~\bigg]~=~\frac\pi2~\bigg[~J_0(n\pi)+J_2(n\pi)~\bigg]~=~\frac{J_1(n\pi)}n~. \end{align}$$