(a) Let f(x) be a 2π-periodic function (i.e. f(x)=f(x+2π) for all x ) defined on [−π,π] by
f(x)={x−xx∈[0,π]x∈[−π,0]
Find the Fourier series of f(x) in the form
f(x)=21a0+n=1∑∞ancos(nx)+n=1∑∞bnsin(nx)
(b) Find the general solution to
y′′+2y′+y=f(x)
where f(x) is as given in part (a) and y(x) is 2π-periodic.