Fourier Sine Series — Question 7

PDF ↗

Question 7

On [0,1][0,1], approximate f(x)=exf(x)=e^x using sine functions sin⁡(nπx)\sin(n\pi x). To preserve the endpoint data, also consider ℓ(x)=1+(e−1)x,r(x)=ex−ℓ(x),AN(x)=ℓ(x)+∑n=1Ncnsin⁡(nπx),\ell(x)=1+(e-1)x,\qquad r(x)=e^x-\ell(x),\qquad A_N(x)=\ell(x)+\sum_{n=1}^N c_n\sin(n\pi x), where cnc_n are the sine coefficients of rr.

Tasks

  1. Compute the sine coefficients bnb_n of exe^x exactly. State the ordinary sine-series limits at zero and one.

  2. Compute the sine coefficients of ℓ\ell and subtract them to derive cnc_n. Explain the improvement in decay.

  3. Prove that ANA_N converges uniformly to exe^x on [0,1][0,1], with error at most (1+e)/(π3N2)(1+e)/(\pi^3N^2). Find an integer NN certified to give error below 10−310^{-3}.

  4. Compare endpoint errors of the raw sine partial sum and ANA_N. Sketch their errors for N=12N=12, and explain why adding the boundary interpolant changes the approximation problem rather than contradicting the endpoint limitation of pure sine sums.

Original worksheet page 1: question and worked solution for 8-4-007
Show solutionHide solution

Question 7 – Solution

Strategy. Remove the nonzero boundary values before asking a sine series for uniform approximation.

Step 1: Compute the raw coefficients. For k=nπk=n\pi, an antiderivative is ex(sin⁡kx−kcos⁡kx)/(1+k2)e^x(\sin kx-k\cos kx)/(1+k^2). Evaluation gives bn=2k(1−(−1)ne)1+k2.\boxed{b_n=\frac{2k(1-(-1)^ne)}{1+k^2}.} The odd periodic extension has opposite one-sided values at each endpoint, so its jump averages are zero. Every raw sine partial sum is also zero there.

Step 2: Cancel the leading boundary contribution. Integration of the linear interpolant gives bnℓ=2(1−(−1)ne)/kb_n^{\ell}=2(1-(-1)^ne)/k. Therefore cn=bn−bnℓ=−2(1−(−1)ne)k(1+k2).\boxed{c_n=b_n-b_n^{\ell}= -\frac{2(1-(-1)^ne)}{k(1+k^2)}.} The raw coefficients are of order 1/n1/n, while cnc_n are of order 1/n31/n^3. The residual has zero values at both endpoints; the leading boundary term cancels.

Step 3: Establish a uniform certificate. Since |cn|≤2(1+e)/(π3n3)|c_n|\leq 2(1+e)/(\pi^3n^3), the residual series converges absolutely and uniformly. Its continuous piecewise smooth odd extension identifies the sum with rr throughout the closed interval. Thus ∥ex−AN∥∞≤1+eπ3N2.\boxed{\|e^x-A_N\|_\infty\leq\frac{1+e}{\pi^3N^2}.} For N=12N=12, the bound is below 10−310^{-3}, so twelve modes suffice.

Step 4: Interpret the endpoint comparison. For the raw sum SNS_N, f−SNf-S_N equals one at zero and ee at one. For ANA_N, both endpoint errors are exactly zero, and the entire error has the small bound above. The graph shows these two errors on the same scale. The corrected approximant includes the non-sine function ℓ\ell; it is not a pure sine sum and therefore is not constrained to vanish at the endpoints.

See the diagram in the original worksheet below.

Original worksheet page 2: question and worked solution for 8-4-007

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