I was given as homework to calculate the Fourier series of $x^{3}$.
I know, in general, how to obtain the coefficients of the series using integration with $$\sin(nx),\cos(nx)$$ multiplied by the given function.
Is there an easier way to calculate this Fourier series other then calculating $$\int x^{3}\cos(nx),\int x^{3}\sin(nx)\;?$$
I guess that both of the above can be calculated by using integration by parts $2-3$ times, but maybe there is a smarter way (maybe even one that allows me to calculate the Fourier series of $x^{n}$ , $n\geq1$).
I would appreciate to hear any thoughts and techniques for solving this problem
If you are expanding the Fourier series of $x^3$ over a symmetric interval, say $I=[-T,T]$, then notice how $x^3$ is an odd function over $I$, while $\cos(nx)$ is an even function over $I$, hence the integral $\int_{-T}^T x^3 \cos(nx) dx=0$, all vanishes. Now you just need to compute the Fourier coefficients for $\sin(nx)$. To which several application of integration by parts, as you mentioned, will do.
In general, try to exploit the symmetry of the integration whenever possible (though not always possible). Perseverance, neatness, and a supply paper will be of great aid.