Series Solutions — Question 9

PDF ↗

Question 9

For y″+y=x,y(0)=y′(0)=0,y''+y=x,\qquad y(0)=y'(0)=0, a power-series approximation is to be certified on [0,1][0,1]. For a trial function pp, define its differential residual by ℛp=p″+p−x\mathcal R_p=p''+p-x.

Tasks

  1. Derive the coefficient recurrence and construct the degree-seven Taylor polynomial P7P_7 of the exact solution.

  2. Compute ℛP7\mathcal R_{P_7} exactly. Derive a definite-integral formula for the error e=y−P7e=y-P_7 from its differential equation and initial values.

  3. Prove the signed error enclosure −x9/362880≤e(x)≤0-x^9/362880\le e(x)\le 0 on [0,1][0,1]. Identify the exact solution and compare this certificate with the alternating Taylor remainder.

  4. Show that the residual alone cannot control approximation error if initial data are not also checked. Construct trial functions with the same residual as P7P_7 but arbitrarily large error at x=1x=1.

Original worksheet page 1: question and worked solution for 6-3-009
Show solutionHide solution

Question 9 – Solution

Strategy. Convert the residual into a forced error equation, keeping track of both initial errors.

Step 1: Construct the solution truncation. Matching powers gives (n+2)(n+1)an+2+an=δn1(n+2)(n+1)a_{n+2}+a_n=\delta_{n1}, with a0=a1=0a_0=a_1=0. Thus all even coefficients vanish and P7(x)=x36−x5120+x75040.\boxed{P_7(x)=\frac{x^3}{6}-\frac{x^5}{120}+\frac{x^7}{5040}.}

Step 2: Derive the error equation. Direct differentiation yields ℛP7=x7/5040\mathcal R_{P_7}=x^7/5040. Since P7P_7 satisfies both initial values, e″+e=−x7/5040e''+e=-x^7/5040 with e(0)=e′(0)=0e(0)=e'(0)=0. The zero-data solution is e(x)=−15040∫0xsin⁡(x−t)t7dt.\boxed{e(x)=-\frac 1{5040}\int_0^x\sin(x-t)t^7\,dt.} Differentiating this integral twice verifies the equation and the two initial conditions, so uniqueness proves the formula.

Step 3: Bound the signed integral. For 0≤t≤x≤10\le t\le x\le 1, 0≤sin⁡(x−t)≤x−t0\le\sin(x-t)\le x-t. Therefore −15040∫0x(x−t)t7dt=−x9362880≤e(x)≤0.-\frac 1{5040}\int_0^x(x-t)t^7dt =-\frac{x^9}{362880}\le e(x)\le 0. The exact solution is y=x−sin⁡x\boxed{y=x-\sin x}, as substitution and initial values verify. Its convergent sine expansion has first omitted term −x9/9!-x^9/9!, so the alternating estimate agrees with the integral certificate. For x>0x>0 the integral is strictly positive before its minus sign, giving e(x)<0e(x)<0.

Step 4: Expose the role of initial data. Let pM=P7+Msin⁡xp_M=P_7+M\sin x for any real MM. Since (sin⁡x)″+sin⁡x=0(\sin x)''+\sin x=0, every pMp_M has exactly the same residual. But pM′(0)=Mp_M'(0)=M, and y(1)−pM(1)=e(1)−Msin⁡1y(1)-p_M(1)=e(1)-M\sin 1 is unbounded as |M|→∞|M|\to\infty. Residual size certifies error only together with suitable initial or boundary errors and a stability estimate.

See the diagram in the original worksheet below.

Original worksheet page 2: question and worked solution for 6-3-009

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