I'm starting to learn Fourier series and I've tried to find the Fourier series for $$f(x) =x+\sin(x), \quad\quad -\pi<x<\pi $$ Since $f$ is odd, it has a Fourier series of the form $$\sum_{n = 1}^{+\infty}b_n \sin(nx)$$ For $b_n$ i got $$ b_n= -\frac{2\cos(n\pi)}{n} = \frac{2(-1)^{n+1}}{n}$$So, the Series can be written as $$\sum_{n = 1}^{+\infty}\frac{2(-1)^{n+1}}{n} \sin(nx)$$
However, the solution that appears in the book (Linear Partial differential equations for scientists and engineers by Tyn Myint-U) is $$\sin(x)+\sum_{n = 1}^{+\infty}\frac{2(-1)^{n+1}}{n} \sin(nx) $$
Thanks in advance