Tutorials › AP Statistics › Forward Euler Update Rule

Euler and Logistic Methods · Tutorial 580 of 999

Forward Euler Update Rule

Use the slope at the current point and a chosen step size to calculate the next Euler approximation.

Advanced 9 min read

What You'll Learn

  • Define the forward Euler update for an initial-value problem.
  • Identify the current time, current approximation, and step size in the recurrence.
  • Derive the update by approximating a solution with its tangent line.
  • Calculate and check a single Euler step for several slope rules.
  • Recognize why the slope must be evaluated at the current point.
  • Track the units of a slope, step size, and solution increment.

From a Differential Equation to a Numerical Step

A differential equation such as \(y'=f(t,y)\) specifies the slope of a solution at each point. If an initial value is known, the equation and initial value together form an initial-value problem. Sometimes the exact solution is difficult to find, or the immediate goal is simply to estimate the solution a short time later.

The forward Euler method makes that estimate using the slope at the starting point. It moves forward in time by a chosen step size and treats the slope as constant over that short step. The result is an approximation, not necessarily the exact solution.

Core idea: Starting from a known point, use the differential equation to find the slope there. Multiply that slope by the step size to estimate the change in the solution.

Definition of the Forward Euler Update

Consider the initial-value problem \(y'=f(t,y)\), with starting data \(y(t_0)=y_0\). Choose a forward step size \(h>0\). The slope rule gives the slope \(f(t_0,y_0)\) at the starting point. The forward Euler estimate one step later is

$$ t_1=t_0+h, \qquad y_1=y_0+h f(t_0,y_0). $$

Here, \(t_1\) is the new time and \(y_1\) is the numerical estimate of the solution at that time. The slope is evaluated at the known starting pair \((t_0,y_0)\), not at the unknown point \((t_1,y_1)\).

Definition: The forward Euler update for one step of size \(h>0\) is \(t_1=t_0+h\) and \(y_1=y_0+h f(t_0,y_0)\). It advances the time and estimates the solution by adding the current slope multiplied by the step size.

For repeated steps with a fixed step size, the same rule is written

$$ t_{n+1}=t_n+h, \qquad y_{n+1}=y_n+h f(t_n,y_n). $$

The symbols \(y_n\) represent successive numerical approximations. In general, \(y_n\) need not equal the exact solution value \(y(t_n)\). The recurrence gives a procedure for generating estimates from the initial data.

Why the Update Uses the Starting Slope

At the starting point, the differential equation says that the solution has slope \(y'(t_0)=f(t_0,y_0)\). The tangent line to the solution at that point therefore has equation

$$ L(t)=y_0+f(t_0,y_0)(t-t_0). $$

To estimate the solution at the next time \(t_1=t_0+h\), evaluate this tangent line at \(t_1\):

$$ L(t_1) =y_0+f(t_0,y_0)(t_1-t_0) =y_0+h f(t_0,y_0). $$

This is exactly the forward Euler update. It is called a forward step because the new time is ahead of the starting time, and the estimate uses information available at the starting point.

Why the method works as an estimate: A differentiable solution is locally approximated by its tangent line. Forward Euler evaluates that line at the next time. The method is therefore based on local linear approximation; it does not claim that the actual solution keeps the same slope throughout the whole step.

Worked Examples

Worked Example: One Step for Exponential Growth

Use one forward Euler step for \(y'=y\), starting from \(t_0=0\), \(y_0=2\), with \(h=0.1\).

The slope rule is \(f(t,y)=y\). At the starting point, the slope is

$$ f(t_0,y_0)=f(0,2)=2. $$

The new time is

$$ t_1=t_0+h=0+0.1=0.1. $$

The new solution estimate is

$$ y_1=y_0+h f(t_0,y_0) =2+(0.1)(2) =2+0.2 =2.2. $$

Check by substituting the computed slope and step size into the update: \(2+(0.1)(2)=2.2\), as obtained. Thus one Euler step gives the estimate \(y_1=2.2\) at \(t_1=0.1\).

Worked Example: A Negative Slope

Use one forward Euler step for \(y'=-2y\), starting from \(t_0=1\), \(y_0=5\), with \(h=0.1\).

Here \(f(t,y)=-2y\). Evaluate it at the starting value:

$$ f(1,5)=-2(5)=-10. $$

The new time is \(t_1=1+0.1=1.1\). The solution estimate is

$$ y_1=5+(0.1)(-10) =5-1 =4. $$

The negative slope produces a decrease in the estimate. Checking the update directly gives \(y_0+h f(t_0,y_0)=5+(0.1)(-10)=4\). Therefore the one-step estimate is \(y_1=4\) at \(t_1=1.1\).

Worked Example: A Nonlinear Slope Rule

Use one forward Euler step for \(y'=y^2\), starting from \(t_0=2\), \(y_0=1\), with \(h=0.2\).

The slope rule is \(f(t,y)=y^2\). At the starting point,

$$ f(2,1)=1^2=1. $$

The new time is

$$ t_1=2+0.2=2.2. $$

Apply the update using the slope just calculated:

$$ y_1=1+(0.2)(1) =1+0.2 =1.2. $$

Check the arithmetic in the recurrence: \(y_0+h f(t_0,y_0)=1+(0.2)(1)=1.2\). The one-step Euler estimate at time \(2.2\) is \(1.2\).

Reading the Update as a Change

The update can also be viewed as a formula for the estimated change in \(y\):

$$ \Delta y_{\text{Euler}}=h f(t_0,y_0). $$

This separates the roles of the quantities. The value \(f(t_0,y_0)\) is a rate of change per unit of time; \(h\) is the amount of time advanced; and their product estimates the change in the solution. Adding that change to \(y_0\) gives the next estimate.

Units provide a useful check. If \(t\) is measured in hours and \(y\) in liters, then \(f(t,y)\) has units of liters per hour. Multiplying by \(h\), measured in hours, gives liters:

$$ \left(\frac{\text{liters}}{\text{hour}}\right) (\text{hours}) =\text{liters}. $$

Thus the Euler increment has the same units as \(y\), so it can correctly be added to the starting solution value. Units cannot detect every arithmetic error, but they can expose an incorrectly formed update.

A Common Mistake: Using the Wrong Slope

A frequent error is to evaluate the slope rule at the new estimate instead of at the known starting point. For the problem \(y'=y\), \(y_0=2\), and \(h=0.1\), the correct starting slope is \(f(0,2)=2\), so the one-step estimate is \(2+(0.1)(2)=2.2\).

An incorrect calculation might first guess the new value and then use that guessed value as the slope. For instance, using \(2.2\) as the slope gives \(2+(0.1)(2.2)=2.22\). This is not the forward Euler step: the rule requires the slope at the known point, which is \(y_0=2\). The corrected update is \(y_1=2+(0.1)(2)=2.2\).

Practical check: Before calculating \(y_1\), write down the current pair \((t_0,y_0)\) and evaluate \(f(t_0,y_0)\). Only then multiply by \(h\) and add the result to \(y_0\).

What One Euler Step Does—and Does Not—Tell You

A single update tells you how the method estimates the solution one chosen step beyond the initial point. It does not by itself give an exact solution, nor does it establish how close the estimate is to the true solution. The estimate is based on the starting slope, while the actual slope may change during the step.

The size \(h\) is part of the method: it determines how far forward in time the update goes and how much of the starting slope is used. For a given starting point and slope rule, changing \(h\) changes both the new time and the numerical estimate. Whether a particular step is sufficiently accurate is a separate question from correctly applying the recurrence.

The central sequence of operations is short, but the order matters: identify the starting point, evaluate its slope, advance time by \(h\), and add \(h\) times the starting slope to the current solution estimate.

Check Your Understanding

For each question, apply the one-step rule carefully and keep the starting point distinct from the new estimate.

  1. For \(y'=3y\), with \(t_0=0\), \(y_0=1\), and \(h=0.2\), what are \(t_1\) and \(y_1\)?
  2. For \(y'=-y\), with \(t_0=4\), \(y_0=6\), and \(h=0.5\), calculate the starting slope and the one-step estimate.
  3. For \(y'=y^2\), with \(t_0=1\), \(y_0=2\), and \(h=0.1\), calculate the new time and estimate.
  4. In the forward Euler update, why is the slope evaluated at \((t_0,y_0)\) rather than at \((t_1,y_1)\)?
  5. If \(y\) is measured in meters and time in seconds, what units must \(f(t,y)\) and \(h f(t,y)\) have?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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