Determine if the following function is odd or even using Fourier series.
$$f(x)=x^5\sin x$$
If a function is even then $b_n=0$ and you have to evaluate $a_n=\frac 2 \pi \int_0^\pi f(x) \cos nx \, dx$
And if a function is odd then $a_n=0$ and you have to evaluate $b_n=\frac 2 \pi \int_0^\pi f(x)\sin nx \, dx$
However, this means that I have to do integration by parts five times. Is there a more efficient method to determine if the function is even or odd?
You do not need complicated tools to determine whether a function $f(x)$ is odd, even or neither-nor.
A function $f(x)$ is even, if and only if the equation $f(-x)=f(x)$ holds for every $x$ for which both $f(x)$ and $f(-x)$ are defined and it is odd if and only if the equation $f(-x)=-f(x)$ holds for every $x$ for which both $f(x)$ and $f(-x)$ are defined.
In your example, we have $f(-x)=(-x)^5\sin(-x)=(-x^5)\cdot (-sin(x))=x^5\cdot sin(x)=f(x)$, so $f$ is even.