Find the Fourier series for $\sin^8x+\cos^8x$

calculusfourier seriessequences-and-series

Find the Fourier series for $f$:
$$
f(x)=\sin^8x+\cos^8x
$$

I tried to linearize $f(x)$ using the following formulas:
$$
\sin x=\frac{e^{ix}-e^{-ix}}{2i},\ \ \cos x=\frac{e^{ix}+e^{-ix}}{2}
$$

And I got:
$$
f(x)=\frac{1}{256}\left((e^{ix}-e^{-ix})^8+(e^{ix}+e^{-ix})^8\right)
$$

And now I'm stuck trying to calculate $a_0, a_n, b_n$:
$$
a_0=\frac{1}{2\pi}\int\limits_{-\pi}^\pi f(x)dx,\ \
a_n=\frac{1}{\pi}\int\limits_{-\pi}^\pi f(x)\cos nxdx,\ \
b_n=\frac{1}{\pi}\int\limits_{-\pi}^\pi f(x)\sin nxdx
$$

So, I thought that there must be a better solution to this problem. Could someone tell me what I should do?

Best Answer

Once you write $f$ as a finite sum $\sum e^{ijx} a_j$ there is nothing more to be done since this sum is the (complex form of) Fourier series. The coefficents $a_j$ are already there when you expand you powers $(e^{ix}+e^{-ix})^{8}$ and $(e^{ix}-e^{-ix})^{8}$. To get the real form of the Fourier series just write $e^{ijx} =\cos (jx)+i\sin (jx)$ and $e^{-ijx} =\cos (jx)-i\sin (jx)$. There is no need to evaluate any integrals.