Differential-Equations ยท Unit 2 ยท Video 2 ยท Interactive Practice

Make a Table: Euler's Method by Hand, y(0) = 1 to y(0.2) โ‰ˆ 0.82

IKey Formulas

FormulaNameWhat you need
xn+1=xn+hx_{n+1} = x_n + hStep in xxThe current xnx_n and the step size hh
An=f(xn,โ€‰yn)A_n = f(x_n,\, y_n)Slope at the current pointThe right-hand side, evaluated at (xn,yn)(x_n, y_n)
yn+1=yn+hAny_{n+1} = y_n + hA_nStep in yyThe current yny_n and the product hAnhA_n
An=xn2โˆ’yn2A_n = x_n^2 - y_n^2Specialized to this IVPyโ€ฒ=x2โˆ’y2y' = x^2 - y^2, ย y(0)=1\ y(0) = 1, ย h=0.1\ h = 0.1

Key Insight: hAnhA_n earns a column of its own because the formula adds the product, not the slope: with h=0.1h = 0.1 a slope of โˆ’1-1 moves yy by only โˆ’0.1-0.1.

IIVisualization 1 โ€” Building the Table, Row by Row

Two steps of h=0.1h = 0.1 carry y(0)=1y(0) = 1 to y(0.2)โ‰ˆ0.82y(0.2) \approx 0.82, one table entry at a time.

nnxnx_nyny_nAnA_nhAnhA_n
0
1
2

๐Ÿ’ก y1=0.9y_1 = 0.9 is Euler's approximation to y(0.1)y(0.1), not its exact value. As far as anyone knows yโ€ฒ=x2โˆ’y2y' = x^2 - y^2 has no elementary solution to check it against โ€” which is why a numerical method is the right tool here.

IIIVisualization 2 โ€” Stepping Along the Direction Field

Each segment leaves its left-hand point along the line element there, wherever the initial condition sits.

IVVisualization 3 โ€” Predict the Next Two Rows

Two more rows carry the table from x=0.2x = 0.2 to x=0.4x = 0.4 โ€” where does the broken line land?

nnxnx_nyny_nAnA_nhAnhA_n
20.20.82
3
4

VQuiz Questions

Problem 1 ยท The First Slope Entry

Given: yโ€ฒ=x2โˆ’y2y' = x^2 - y^2 with y(0)=1y(0) = 1 and h=0.1h = 0.1. Row 0 of the table holds (x0,y0)=(0,1)(x_0, y_0) = (0, 1) โ€” find the slope entry A0A_0.

โœ… Correct! 02โˆ’12=โˆ’10^2 - 1^2 = -1: the solution starts out heading downhill at 45ยฐ45\degree.
โŒ Check the order of the subtraction. The right-hand side is x2โˆ’y2x^2 - y^2, not y2โˆ’x2y^2 - x^2.
โŒ That is the next column. โˆ’0.1-0.1 is the product hA0hA_0; A0A_0 itself is the slope, before multiplying by hh.
โŒ Not quite. Evaluate x2โˆ’y2x^2 - y^2 at the row-0 point (0,1)(0, 1) โ€” both coordinates come from that row.
Show solution

The slope column is the right-hand side of the equation evaluated at the current row's point. With f(x,y)=x2โˆ’y2f(x, y) = x^2 - y^2 and (x0,y0)=(0,1)(x_0, y_0) = (0, 1):

A0=x02โˆ’y02=02โˆ’12=0โˆ’1=โˆ’1A_0 = x_0^2 - y_0^2 = 0^2 - 1^2 = 0 - 1 = -1

A0A_0 is a slope, not a change in yy. The change in yy lives in the next column, hA0=(0.1)(โˆ’1)=โˆ’0.1hA_0 = (0.1)(-1) = -0.1.

Problem 2 ยท What the Formula Adds

Given: row 0 is complete โ€” x0=0x_0 = 0, y0=1y_0 = 1, A0=โˆ’1A_0 = -1, hA0=โˆ’0.1hA_0 = -0.1, with h=0.1h = 0.1. Find y1y_1.

โœ… Correct! y1=1+(โˆ’0.1)=0.9y_1 = 1 + (-0.1) = 0.9 โ€” the last column is exactly the amount yy changes.
โŒ You added A0A_0, not hA0hA_0. 1+(โˆ’1)=01 + (-1) = 0 is a drop ten times too large; the formula adds the product hA0=โˆ’0.1hA_0 = -0.1.
โŒ Check the sign. A0=โˆ’1A_0 = -1 is negative, so hA0=โˆ’0.1hA_0 = -0.1 and yy must decrease.
โŒ Not quite. y1=y0+hA0y_1 = y_0 + hA_0: start from y0=1y_0 = 1 and add the hA0hA_0 entry.
Show solution

The step in yy adds the last column of the row to the current yy:

y1=y0+hA0=1+(0.1)(โˆ’1)=1โˆ’0.1=0.9y_1 = y_0 + hA_0 = 1 + (0.1)(-1) = 1 - 0.1 = 0.9

This is exactly why hAnhA_n gets a column of its own โ€” the product, not the slope, is what the formula adds. Adding A0=โˆ’1A_0 = -1 directly would give y1=0y_1 = 0, a drop ten times too big.

The new point is (x1,y1)=(0.1,0.9)(x_1, y_1) = (0.1, 0.9).

Problem 3 ยท Row One, Both Working Columns

Given: yโ€ฒ=x2โˆ’y2y' = x^2 - y^2, h=0.1h = 0.1, and row 1 holding (x1,y1)=(0.1,0.9)(x_1, y_1) = (0.1, 0.9) โ€” find the slope A1A_1 (to two decimal places) and then y2y_2.

What is A1A_1?

What is y2y_2?

โœ… Correct! A1=0.01โˆ’0.81=โˆ’0.80A_1 = 0.01 - 0.81 = -0.80 and y2=0.9โˆ’0.08=0.82y_2 = 0.9 - 0.08 = 0.82, so y(0.2)โ‰ˆ0.82y(0.2) \approx 0.82.
โŒ You kept the old yy. 0.01โˆ’1=โˆ’0.990.01 - 1 = -0.99 uses y0=1y_0 = 1; the slope must be evaluated at the new point, with y1=0.9y_1 = 0.9.
โŒ That is hA1hA_1, not A1A_1. โˆ’0.08-0.08 is the slope already multiplied by h=0.1h = 0.1.
โŒ Check A1A_1. Square both new coordinates: (0.1)2=0.01(0.1)^2 = 0.01 and (0.9)2=0.81(0.9)^2 = 0.81, then subtract in that order.
โŒ You reused the first slope. 0.9+(0.1)(โˆ’1)=0.800.9 + (0.1)(-1) = 0.80 recycles A0A_0; every row gets its own slope, and here A1=โˆ’0.80A_1 = -0.80.
โŒ You added A1A_1 instead of hA1hA_1. 0.9+(โˆ’0.80)=0.100.9 + (-0.80) = 0.10; multiply by hh first: hA1=โˆ’0.08hA_1 = -0.08.
โŒ Check y2y_2. y2=y1+hA1y_2 = y_1 + hA_1, with y1=0.9y_1 = 0.9 and hA1=(0.1)(โˆ’0.80)hA_1 = (0.1)(-0.80).
Show solution

Step 1 โ€” the slope, re-evaluated at the new point. Both coordinates are new:

A1=x12โˆ’y12=(0.1)2โˆ’(0.9)2=0.01โˆ’0.81=โˆ’0.80A_1 = x_1^2 - y_1^2 = (0.1)^2 - (0.9)^2 = 0.01 - 0.81 = -0.80

Step 2 โ€” the working column.

hA1=(0.1)(โˆ’0.80)=โˆ’0.08hA_1 = (0.1)(-0.80) = -0.08

Step 3 โ€” the step in yy.

y2=y1+hA1=0.9+(โˆ’0.08)=0.82y_2 = y_1 + hA_1 = 0.9 + (-0.08) = 0.82

Two steps of size 0.10.1 have carried the table from x=0x = 0 to x=0.2x = 0.2, so y(0.2)โ‰ˆ0.82y(0.2) \approx 0.82.

Common mistakes:

  • Keeping y0=1y_0 = 1 in the slope: 0.01โˆ’1=โˆ’0.990.01 - 1 = -0.99.
  • Reusing A0=โˆ’1A_0 = -1 for the second step: y2=0.9โˆ’0.1=0.80y_2 = 0.9 - 0.1 = 0.80.

Problem 4 ยท A New Equation, Two Steps

Given: yโ€ฒ=x+yy' = x + y with y(0)=1y(0) = 1 and h=0.2h = 0.2 โ€” find the Euler approximation to y(0.4)y(0.4) after two steps.

โœ… Correct! A0=1A_0 = 1, A1=1.4A_1 = 1.4, and y2=1.2+0.28=1.48y_2 = 1.2 + 0.28 = 1.48. The same five columns work for any right-hand side.
โŒ You froze the slope. 1+0.2+0.2=1.401 + 0.2 + 0.2 = 1.40 reuses A0=1A_0 = 1 twice; row 1 needs its own slope, A1=1.4A_1 = 1.4.
โŒ You evaluated A1A_1 at the old yy. A1=x1+y1=0.2+1.2=1.4A_1 = x_1 + y_1 = 0.2 + 1.2 = 1.4, not 0.2+1=1.20.2 + 1 = 1.2.
โŒ That is y1y_1. With h=0.2h = 0.2 one step reaches only x=0.2x = 0.2; x=0.4x = 0.4 takes a second row.
โŒ Not quite. Build the table: An=xn+ynA_n = x_n + y_n, then hAn=0.2AnhA_n = 0.2A_n, then yn+1=yn+hAny_{n+1} = y_n + hA_n.
Show solution

Only the slope column changes: here An=xn+ynA_n = x_n + y_n, with h=0.2h = 0.2.

Row 0 โ€” (x0,y0)=(0,1)(x_0, y_0) = (0, 1):

A0=0+1=1,hA0=(0.2)(1)=0.2A_0 = 0 + 1 = 1, \qquad hA_0 = (0.2)(1) = 0.2

Row 1 โ€” x1=0+0.2=0.2x_1 = 0 + 0.2 = 0.2 and y1=1+0.2=1.2y_1 = 1 + 0.2 = 1.2:

A1=0.2+1.2=1.4,hA1=(0.2)(1.4)=0.28A_1 = 0.2 + 1.2 = 1.4, \qquad hA_1 = (0.2)(1.4) = 0.28

Row 2 โ€” x2=0.4x_2 = 0.4:

y2=y1+hA1=1.2+0.28=1.48y_2 = y_1 + hA_1 = 1.2 + 0.28 = 1.48

So y(0.4)โ‰ˆ1.48y(0.4) \approx 1.48. Every entry to the right of yny_n was built from entries already in its own row, which is what makes the table checkable.

Solved: 0 / 4