Can you please help me with a Fourier series question? Any help would be

greatly appreciated!

Find the Fourier series of f(x) = pi - x

Thinking of f(x) as defined on the interval [-pi,pi]

So I know I must find ao, ak and bk.

I have found:

ao = 0

ak = - (x sin(kx)) / (k pi)

bk = + (x cos(kx)) / (k pi)

Is this correct? Please provide step by step solutions is possible.

Thanks again!