Tutorials › Calculus I › Completing an Euler Table by Hand

Euler's Method and Numerical Solutions · Tutorial 1424 of 1495

Completing an Euler Table by Hand

Build and verify a complete Euler table by applying the slope at each current estimate and advancing by one uniform step.

Advanced 9 min read

What You'll Learn

  • Identify the initial-value problem, starting estimate, and uniform step size needed for a table.
  • Evaluate the slope at the current solution estimate in each row.
  • Calculate the step increment and use it to find the next estimate.
  • Keep step indices, times, and table columns consistent.
  • Check a completed table using the Euler update rule.
  • Recognize common arithmetic and indexing mistakes.

From an Initial-Value Problem to a Table

An initial-value problem gives a differential equation and a starting value. For example, an autonomous first-order problem has the form \(y'=f(y)\), with \(y(t_0)=y_0\). The equation specifies the slope at a given solution value, while the initial condition supplies the first value from which to begin computing.

Euler's method turns that information into a sequence of approximate solution values. A table makes each step visible: it records the time, the current estimate, the slope evaluated at that estimate, and the next estimate. The essential habit is to calculate each row from the current estimate in that same row—not from a value that has not yet been reached.

Definition: For an autonomous initial-value problem \(y'=f(y)\), \(y(t_0)=y_0\), and a fixed step size \(h>0\), the Euler table is generated by $$ t_n=t_0+nh,\qquad y_{n+1}=y_n+h f(y_n). $$ Here \(y_n\) is the approximate solution at time \(t_n\). The slope used in row \(n\) is \(f(y_n)\), and the resulting next estimate is \(y_{n+1}\).

The product \(h f(y_n)\) is the change in the estimate during that step. It is useful to calculate and record this increment explicitly, even if a table format combines it with the next-estimate calculation. The next row begins with the previous row's next estimate, and its time is one step later.

For a table with \(N\) steps, there are \(N\) updates but \(N+1\) time-value pairs: the initial pair \((t_0,y_0)\), followed by the estimates through \((t_N,y_N)\). The last row used to perform an update is row \(N-1\), since it produces \(y_N\).

A Reliable Row-by-Row Procedure

Before filling in any rows, write down the initial time, initial estimate, step size, and number of steps. For an autonomous equation, the slope depends on the current estimate through \(f(y_n)\); the time column still advances by \(h\), but time is not an input to this particular slope function.

1
Enter the starting pair.
Set \(t_0\) and \(y_0\) from the initial condition. These are given values, not Euler updates.
2
Evaluate the current slope.
In row \(n\), substitute the current estimate \(y_n\) into the right-hand side to find \(f(y_n)\).
3
Compute the increment.
Multiply the evaluated slope by the step size: \(\Delta y_n=h f(y_n)\).
4
Find the next estimate and time.
Set \(y_{n+1}=y_n+\Delta y_n\) and \(t_{n+1}=t_n+h\). Copy those values into the next row as its current time and estimate.

Use the same step size in every row. Keep enough digits to avoid unnecessary rounding during intermediate calculations, and check that the increment's sign agrees with the evaluated slope: because \(h>0\), a positive slope gives a positive increment and a negative slope gives a negative increment.

Worked Tables

Worked Example: A Slope That Decreases with the Estimate

Complete four Euler steps for \(y'=2-y\), with \(y(0)=0\) and \(h=0.5\). Here \(f(y)=2-y\). In each row, evaluate \(2-y_n\), multiply by \(0.5\), and add the result to \(y_n\).

$$ \begin{array}{c|c|c|c|c|c} n & t_n & y_n & f(y_n)=2-y_n & h f(y_n) & y_{n+1}\\ \hline 0 & 0 & 0 & 2-0=2 & 0.5(2)=1 & 0+1=1\\ 1 & 0.5 & 1 & 2-1=1 & 0.5(1)=0.5 & 1+0.5=1.5\\ 2 & 1 & 1.5 & 2-1.5=0.5 & 0.5(0.5)=0.25 & 1.5+0.25=1.75\\ 3 & 1.5 & 1.75 & 2-1.75=0.25 & 0.5(0.25)=0.125 & 1.75+0.125=1.875 \end{array} $$

The time entries follow \(t_{n+1}=t_n+0.5\): \(0\), \(0.5\), \(1\), \(1.5\), and finally \(2\). Thus the fourth update gives the estimate \(y_4=1.875\) at time \(t_4=2\). To check the final update, use the last row's current value: \(f(1.75)=0.25\), so \(1.75+0.5(0.25)=1.875\), as recorded.

Worked Example: A Slope Equal to the Current Estimate

Complete three steps for \(y'=y\), with \(y(0)=1\) and \(h=0.5\). Since \(f(y_n)=y_n\), each slope is the current estimate itself.

$$ \begin{array}{c|c|c|c|c|c} n & t_n & y_n & f(y_n)=y_n & h f(y_n) & y_{n+1}\\ \hline 0 & 0 & 1 & 1 & 0.5(1)=0.5 & 1+0.5=1.5\\ 1 & 0.5 & 1.5 & 1.5 & 0.5(1.5)=0.75 & 1.5+0.75=2.25\\ 2 & 1 & 2.25 & 2.25 & 0.5(2.25)=1.125 & 2.25+1.125=3.375 \end{array} $$

The final estimate is \(y_3=3.375\) at \(t_3=1.5\). Check the last row directly: the slope at \(y_2=2.25\) is \(2.25\), the increment is \(0.5(2.25)=1.125\), and the next value is \(2.25+1.125=3.375\). Notice that the slope in a row is based on that row's current estimate, not on its next estimate.

Worked Example: Keeping Track of Negative Slopes

Complete four steps for \(y'=-2y\), with \(y(0)=4\) and \(h=0.25\). The slope is negative for these positive estimates, so each increment should decrease the estimate.

$$ \begin{array}{c|c|c|c|c|c} n & t_n & y_n & f(y_n)=-2y_n & h f(y_n) & y_{n+1}\\ \hline 0 & 0 & 4 & -2(4)=-8 & 0.25(-8)=-2 & 4-2=2\\ 1 & 0.25 & 2 & -2(2)=-4 & 0.25(-4)=-1 & 2-1=1\\ 2 & 0.5 & 1 & -2(1)=-2 & 0.25(-2)=-0.5 & 1-0.5=0.5\\ 3 & 0.75 & 0.5 & -2(0.5)=-1 & 0.25(-1)=-0.25 & 0.5-0.25=0.25 \end{array} $$

The four updates reach \(t_4=1\) and give \(y_4=0.25\). The last update checks as \(0.5+0.25(-1)=0.5-0.25=0.25\). The negative sign belongs to the increment; writing \(0.5+0.25\) would contradict the slope \(-1\).

Why the Table Recurrence Is Consistent

A completed row must describe one Euler update from the pair \((t_n,y_n)\) to the next pair. The time changes by \(h\), so \(t_{n+1}=t_n+h\). The equation supplies the slope \(f(y_n)\) at the current estimate. Over a step of length \(h\), Euler's rule uses that slope to calculate a change of \(h f(y_n)\), giving \(y_{n+1}=y_n+h f(y_n)\).

Justification: Suppose row \(n\) has the correct current pair \((t_n,y_n)\). Evaluating the equation at its current estimate gives the row's slope \(f(y_n)\). Multiplying by the chosen step \(h\) gives the prescribed Euler increment \(h f(y_n)\). Adding that increment gives the next estimate, and adding \(h\) gives the next time. Therefore row \(n\) produces exactly the pair \((t_{n+1},y_{n+1})\) specified by the Euler update. The initial row is the given pair \((t_0,y_0)\); repeating this argument for each row establishes the whole table.

This argument explains why the columns have their particular order. The slope column is calculated from the current estimate; the increment column is calculated from the slope; the next-estimate column is calculated from the current estimate and increment. Rearranging these dependencies—for example, using a new estimate to calculate the slope that was supposed to produce it—would no longer be the stated Euler update.

Indexing, Checks, and Common Errors

Table labels can be a source of errors even when the arithmetic is simple. Row \(n\) starts with \(t_n\) and \(y_n\), and its update produces \(t_{n+1}\) and \(y_{n+1}\). The next row then begins with those same values. A table may display the next estimate in the last column of one row or as the current estimate in the next row; either layout is valid as long as the values agree.

Common mistake: Forgetting to multiply the slope by the step size. In the first example, the initial slope is \(2\). The incorrect calculation \(y_1=0+2=2\) uses the slope as though the time step were \(1\). But the specified step is \(0.5\), so the increment is \(0.5(2)=1\), and the correct update is \(y_1=0+1=1\). Check every update against \(y_{n+1}-y_n=h f(y_n)\).

Other useful checks include counting the rows, verifying the time sequence, and checking signs:

  • For \(N\) steps, there should be \(N\) slope evaluations and \(N+1\) time-value pairs, including the initial pair.
  • Every successive time should differ by the same amount \(h\).
  • The difference between consecutive estimates should equal the recorded increment.
  • For \(h>0\), the increment should have the same sign as the slope.
  • The next row's current estimate should equal the preceding row's next estimate.

An Euler table records the numerical procedure, not an exact solution of the differential equation. Its final entry is an approximation produced by repeated updates. The table is valuable because it makes those updates auditable: one can locate whether a discrepancy comes from evaluating a slope, multiplying by the step size, adding the increment, or advancing the time.

Check Your Understanding

Use the definitions and row-by-row procedure above to answer these questions.

  1. For \(y'=3-y\), \(y(0)=1\), and \(h=0.2\), what slope, increment, and next estimate belong in the first row?
  2. If a table has six Euler updates, how many time-value pairs should it contain, and what is the index of the last update row?
  3. For \(y'=-y\) with a positive current estimate and \(h>0\), what sign should the increment have? Explain using the update rule.
  4. A row records \(y_n=2\), \(f(y_n)=3\), \(h=0.25\), and \(y_{n+1}=2.75\). Is the update consistent? Show the calculation.
  5. Why must the slope in a row be evaluated using \(y_n\), rather than the next estimate \(y_{n+1}\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon