Question #66843

Obtain the Fourier series for the following periodic function which has a period of 2π:

f(x) = x^2 for -π ≤x ≤π

Expert's answer

Answer on Question #66843 - Math - Differential Equations

Question

Obtain the Fourier series for the following periodic function which has a period of 2π2\pi: f(x)=x2f(x) = x^2 for πxπ-\pi \leq x \leq \pi.

Solution

For the periodic function f(x)=x2f(x) = x^2 which has a period of 2π2\pi, πxπ-\pi \leq x \leq \pi, the Fourier series is given by


f(x)=12a0+n=1(ancosnx+bnsinnx)f(x) = \frac{1}{2} a_0 + \sum_{n=1}^{\infty} \left(a_n \cos nx + b_n \sin nx\right)


where


a0=1πππf(x)dx,an=1πππf(x)cos(nx)dx,bn=1πππf(x)sin(nx)dxa_0 = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \, dx, \quad a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(nx) \, dx, \quad b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx) \, dx


are the Fourier coefficients.

Find a0a_0:


a0=1πππx2dx=1πx33ππ=13π(π3(π)3)=2π23a_0 = \frac{1}{\pi} \int_{-\pi}^{\pi} x^2 \, dx = \left. \frac{1}{\pi} \frac{x^3}{3} \right|_{-\pi}^{\pi} = \frac{1}{3\pi} \left(\pi^3 - (-\pi)^3\right) = \frac{2\pi^2}{3}


Find ana_n:


an=1πππx2cos(nx)dx=2π0πx2cos(nx)dxa_n = \frac{1}{\pi} \int_{-\pi}^{\pi} x^2 \cos(nx) \, dx = \frac{2}{\pi} \int_{0}^{\pi} x^2 \cos(nx) \, dx


here we used that the integrand, x2cos(nx)x^2 \cos(nx), is even. To find ana_n we use integration by parts


an=2π0πx2cos(nx)dx=2πn0πx2d(sin(nx))=2πnx2sin(nx)0π2πn0π2xsin(nx)dx==2πn(π2sin(nπ)0)4πn20πxd(cos(nx))=0+4πn20πxd(cos(nx))==4πn2xcos(nx)0π4πn20πcos(nx)dx=4πn2(πcos(nπ)0)4πn3sin(nx)0π==4n2cos(nπ)4πn3(sin(nπ)sin0)=4n2(1)n0=(1)n4n2\begin{aligned} a_n &= \frac{2}{\pi} \int_{0}^{\pi} x^2 \cos(nx) \, dx = \frac{2}{\pi n} \int_{0}^{\pi} x^2 \, d(\sin(nx)) = \frac{2}{\pi n} x^2 \sin(nx) \Big|_{0}^{\pi} - \frac{2}{\pi n} \int_{0}^{\pi} 2x \sin(nx) \, dx = \\ &= \frac{2}{\pi n} \left(\pi^2 \sin(n\pi) - 0\right) - \frac{4}{\pi n^2} \int_{0}^{\pi} x \, d(-\cos(nx)) = 0 + \frac{4}{\pi n^2} \int_{0}^{\pi} x \, d(\cos(nx)) = \\ &= \frac{4}{\pi n^2} x \cos(nx) \Big|_{0}^{\pi} - \frac{4}{\pi n^2} \int_{0}^{\pi} \cos(nx) \, dx = \frac{4}{\pi n^2} (\pi \cos(n\pi) - 0) - \frac{4}{\pi n^3} \sin(nx) \Big|_{0}^{\pi} = \\ &= \frac{4}{n^2} \cos(n\pi) - \frac{4}{\pi n^3} (\sin(n\pi) - \sin 0) = \frac{4}{n^2} (-1)^n - 0 = (-1)^n \frac{4}{n^2} \end{aligned}


Find bnb_n:


bn=1πππx2sin(nx)dx=0b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} x^2 \sin(nx) \, dx = 0


since the integrand, x2sin(nx)x^2 \sin(nx), is odd.

So


f(x)=x2=π23+4n=1(1)nn2cosnxf(x) = x^2 = \frac{\pi^2}{3} + 4 \sum_{n=1}^{\infty} \frac{(-1)^n}{n^2} \cos nx


Answer: Fourier series is


f(x)=x2=π23+4n=1(1)nn2cosnxf(x) = x^2 = \frac{\pi^2}{3} + 4 \sum_{n=1}^{\infty} \frac{(-1)^n}{n^2} \cos nx


Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS