(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?
Since $\cos x$ is even so is $\cos(nx)$ for any integer $n$. Hence, is $f(x)$ could be "expanded" into sum of cosines on the right side we would have an even and on the left an odd function. Hence, if the "expansion" were convergent in any sensible way, its limit would be both an even and an odd function. This can happen only if $f(x) = 0$ almost everywhere.