(Already noticed this post)
Given for example the odd function $f(x)=x$ defined in the interval $[-\pi,\pi]$. I would like to expand this function into a cosine series. Is it possible to somehow expand $f$ into a function symmetric with respect to the axis $x=\pi$ (or $x=-\pi$) in order to do that?
EDIT: just to emphasize, this is not a homework question, just a general question I thought of when learning about expanding a function into a cosine series. I know that if we are looking at a function defined on $[0,\pi]$ and want to expand it into a cosine series, we need to first define it as an even function in the interval $[-\pi,\pi]$, and then the coefficients of the sine terms will vanish.
Nevertheless, I am not quite sure how to expand a function defined on $[-\pi,\pi]$ that is not a priori even into a cosine series. As GEdgar suggested, when I say "a cosine series", I don't mean $\sum a_n \cos(nx)$ necessarily (which obviously doesn't work), but also $f(x)=\sum a_n\cos(n(x-\pi))$ might work for me. Is there any book/paper/notes that discuss this case and also include a statement of the convergence theorems for such a case?