Euler’s Method — Question 8

PDF ↗

Question 8

For y′=−yy'=-y, y(0)=1y(0)=1, let YhY_h denote the Euler approximation at t=1t=1 with equal step hh. Compare h=1/2h=1/2 and h=1/4h=1/4. Assume exact arithmetic. For the extrapolation argument, suppose Yh=y(1)+Ch+O(h2)Y_h=y(1)+Ch+O(h^2) with a coefficient CC independent of hh as h→0h\to 0.

Tasks

  1. Compute Y1/2Y_{1/2}, Y1/4Y_{1/4}, and R=2Y1/4−Y1/2R=2Y_{1/4}-Y_{1/2}.

  2. Use the stated error expansion to explain why RR cancels the leading first-order error. Relate the difference between the two Euler values to an estimate of the finer-grid error.

  3. Compare the actual errors of the two Euler values and RR with the exact endpoint. Is it a contradiction if RR lies outside the interval between the Euler values?

  4. Test whether grid agreement certifies accuracy using a different IVP, z′=sin⁡2(4πt)z'=\sin^2(4\pi t), z(0)=0z(0)=0. Compute both Euler endpoints on the same grids and the exact value z(1)z(1), and explain the failure of the grid-difference indicator.

Original worksheet page 1: question and worked solution for 2-9-008
Show solutionHide solution

Question 8 – Solution

Strategy. Separate asymptotic error cancellation from a rigorous certificate: two grids can share the same sampling blind spot.

Step 1: Compute the three approximations. For decay, Yh=(1−h)1/hY_h=(1-h)^{1/h}. Hence Y1/2=1/4,Y1/4=81/256,R=49/128=0.3828125.\boxed{Y_{1/2}=1/4,\quad Y_{1/4}=81/256,\quad R=49/128=0.3828125}.

Step 2: Cancel the leading error term. The assumed expansions give 2Yh/2−Yh=y(1)+O(h2),Yh/2−Yh=−Ch/2+O(h2).2Y_{h/2}-Y_h=y(1)+O(h^2),\qquad Y_{h/2}-Y_h=-Ch/2+O(h^2). Thus |Yh/2−Yh||Y_{h/2}-Y_h| estimates the leading magnitude of the finer-grid error, while the extrapolated value removes that term. This argument is asymptotic; it supplies no explicit bound for the omitted terms on these particular grids.

Step 3: Compare actual errors. The exact endpoint is e−1e^{-1}. Absolute errors are valueY1/2Y1/4Rabsolute error0.1178790.0514730.014933\begin{array}{c|ccc} \text{value}&Y_{1/2}&Y_{1/4}&R\\\hline \text{absolute error}&0.117879&0.051473&0.014933 \end{array} The finer-grid estimate is 17/256=0.0664062517/256=0.06640625, not its exact error. Both Euler values are below the truth, while RR is above it. Extrapolation is not interpolation, so lying outside their interval is consistent with its construction and does not by itself invalidate it.

Step 4: Exhibit shared undersampling. At all left nodes of both specified grids, sin⁡2(4πt)=0\sin^2(4\pi t)=0. Both Euler approximations for z(1)z(1) are therefore zero, and their difference is zero. But z(1)=∫01sin⁡2(4πt)dt=12.\boxed{z(1)=\int_0^1\sin^2(4\pi t)\,dt=\frac 12}.

See the diagram in the original worksheet below.

The nonnegative forcing is missed between the sample nodes. Agreement of two grids does not certify accuracy; an explicit error bound or further analysis of the resolved time scales is needed.

Original worksheet page 2: question and worked solution for 2-9-008

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