Fourier Series — Question 6

PDF ↗

Question 6

Find the continuous 2π2\pi-periodic steady response of y′+2y=1+q(x),q(x)={1,0<x<π,−1,π<x<2π,y'+2y=1+q(x),\qquad q(x)=\begin{cases}1,&0<x<\pi,\\-1,&\pi<x<2\pi,\end{cases} where qq is periodically extended and assigned zero at its jumps. The differential equation is required on the open intervals between jumps. Solutions are continuous and piecewise continuously differentiable.

Tasks

  1. Derive the full Fourier coefficients of qq, including its mean.

  2. Obtain the mean and all cosine and sine coefficients of the periodic response by mode equations.

  3. Independently solve on the two intervals and enforce continuity and periodicity. Prove that this response is unique.

  4. Verify its mean, extrema and behavior at the switches. Sketch the exact response and its degree-9 Fourier approximation. Explain why a sine-only forcing produces cosine terms in the response.

Original worksheet page 1: question and worked solution for 8-6-006
Show solutionHide solution

Question 6 – Solution

Strategy. Solve the harmonic response and the piecewise differential equation independently.

Step 1: Expand the input. The periodic extension of qq is odd. Direct integration gives zero mean and zero cosine coefficients, with bn(q)=2(1−(−1)n)πn={4/(πn),n odd,0,n even.\boxed{b_n^{(q)}=\frac{2(1-(-1)^n)}{\pi n} =\begin{cases}4/(\pi n),&n\text{ odd},\\0,&n\text{ even}.\end{cases}} The constant in 1+q1+q is one.

Step 2: Solve the coupled mode equations. Write y=m+∑(Ancos⁡nx+Bnsin⁡nx)y=m+\sum(A_n\cos nx+B_n\sin nx). Integration by parts is legitimate piecewise: continuity and periodicity cancel the internal and endpoint terms. Thus 2m=12m=1, nBn+2An=0nB_n+2A_n=0, and −nAn+2Bn=bn(q)-nA_n+2B_n=b_n^{(q)}. Hence m=12,An=−4π(n2+4),Bn=8πn(n2+4)(n odd),\boxed{m=\frac 12,\quad A_n=-\frac{4}{\pi(n^2+4)},\quad B_n=\frac{8}{\pi n(n^2+4)}\quad(n\text{ odd}),} and both coefficients vanish for even nn.

Step 3: Verify a closed-form periodic response. Put r=e−2πr=e^{-2\pi}. Solving the constant-forcing equations and matching gives y(x)={1−e−2x1+r,0≤x≤π,e−2(x−π)1+r,π≤x≤2π.\boxed{y(x)= \begin{cases} 1-\dfrac{e^{-2x}}{1+r},&0\leq x\leq\pi,\\[3pt] \dfrac{e^{-2(x-\pi)}}{1+r},&\pi\leq x\leq 2\pi. \end{cases}} Both expressions give y(π)=1/(1+r)y(\pi)=1/(1+r), and y(0)=y(2π)=r/(1+r)y(0)=y(2\pi)=r/(1+r). A difference of two responses is Ce−2xCe^{-2x} across the whole period by continuity; periodicity forces C=0C=0. The verified closed form therefore has the coefficients determined above.

Step 4: Interpret the response. The first branch increases and the second decreases, so the extrema are r/(1+r)r/(1+r) and 1/(1+r)1/(1+r). Integrating the equation over a period gives mean 1/21/2. The response is continuous, but y′y' jumps by −2-2 at π\pi and by 22 at 00 modulo 2π2\pi; the assigned input values do not require a derivative there. Differentiation couples sine and cosine coefficients, creating a phase shift. Absolute coefficient summability and the Fourier theorem identify the plotted series with the continuous response.

See the diagram in the original worksheet below.

Original worksheet page 2: question and worked solution for 8-6-006

Original worksheet layout. Use Enlarge or open the PDF for a closer view.