Answer on Question #66843 - Math - Differential Equations
Question
Obtain the Fourier series for the following periodic function which has a period of 2π: f(x)=x2 for −π≤x≤π.
Solution
For the periodic function f(x)=x2 which has a period of 2π, −π≤x≤π, the Fourier series is given by
f(x)=21a0+n=1∑∞(ancosnx+bnsinnx)
where
a0=π1∫−ππf(x)dx,an=π1∫−ππf(x)cos(nx)dx,bn=π1∫−ππf(x)sin(nx)dx
are the Fourier coefficients.
Find a0:
a0=π1∫−ππx2dx=π13x3∣∣−ππ=3π1(π3−(−π)3)=32π2
Find an:
an=π1∫−ππx2cos(nx)dx=π2∫0πx2cos(nx)dx
here we used that the integrand, x2cos(nx), is even. To find an we use integration by parts
an=π2∫0πx2cos(nx)dx=πn2∫0πx2d(sin(nx))=πn2x2sin(nx)∣∣0π−πn2∫0π2xsin(nx)dx==πn2(π2sin(nπ)−0)−πn24∫0πxd(−cos(nx))=0+πn24∫0πxd(cos(nx))==πn24xcos(nx)∣∣0π−πn24∫0πcos(nx)dx=πn24(πcos(nπ)−0)−πn34sin(nx)∣∣0π==n24cos(nπ)−πn34(sin(nπ)−sin0)=n24(−1)n−0=(−1)nn24
Find bn:
bn=π1∫−ππx2sin(nx)dx=0
since the integrand, x2sin(nx), is odd.
So
f(x)=x2=3π2+4n=1∑∞n2(−1)ncosnx
Answer: Fourier series is
f(x)=x2=3π2+4n=1∑∞n2(−1)ncosnx
Answer provided by https://www.AssignmentExpert.com