Math101learn.math101.caEuler's Method
A careful guide to Euler's numerical method, stepwise computation, error sources, and responsible approximation.
Precise definition
For the initial value problem $y'=f(t,y)$, $y(t_0)=y_0$, Euler's method with step $h$ defines $t_{n+1}=t_n+h$ and $y_{n+1}=y_n+h f(t_n,y_n)$. It follows the tangent line from the current approximation for one step; the values $y_n$ approximate, rather than equal, $y(t_n)$.
Notation and mathematical language
The local truncation error of forward Euler is $O(h^2)$ per step when the exact solution is sufficiently smooth, while accumulated global error over a fixed interval is $O(h)$. This order statement is asymptotic and does not supply a numerical bound without derivative and stability information.
Conceptual picture
Euler replaces a curved solution over each short interval by its tangent at the left endpoint. Smaller steps usually improve accuracy, but rounding, stiffness, and instability can complicate the pattern. The method is explicit because $y_{n+1}$ is computed directly from known data.
Conditions and key results
$f$ should be evaluable throughout the numerical path, and an exact solution should exist over the interval. Error estimates require additional smoothness. A step crossing a singularity or leaving the model's domain invalidates the computation even if arithmetic continues.
A reliable strategy
- Choose $h$, create columns for $n,t_n,y_n,f(t_n,y_n)$, and record the initial row.
- Evaluate the slope using the current pair only, then compute $y_{n+1}=y_n+h f(t_n,y_n)$.
- Advance $t$ by exactly $h$ and repeat for the required number of steps.
- Report the result as an approximation and assess error by step halving, an exact solution, or a rigorous bound.
Fully worked example
Interpretation and application
Euler's method approximates models that lack elementary closed forms and previews more accurate numerical solvers. In safety-critical simulation, a small step is not a proof of accuracy: an error tolerance, convergence study, and suitable method for stiffness are required.
Common mistakes
Verification and reasonableness
- Repeat with $h/2$ and compare values at common time points.
- When an exact solution exists, compute absolute and relative error.
- Check qualitative properties—sign, monotonicity, feasible range—against the differential equation.
Practice
- Take one Euler step for $y'=t+y$, $y(0)=2$, $h=0.1$.
- Is Euler's $y_n$ exact?
- What is forward Euler's global order?
Answers and brief solutions
- $y_1=2+0.1(2)=2.2$.
- No; it is a numerical approximation except in special cases.
- First order: global error is $O(h)$ under standard smoothness and stability conditions.
Further deduction
For $y'=y$, Euler gives $y_n=(1+h)^n$ at $t_n=nh$, whereas the exact solution is $e^{nh}$. Since $1+h<e^h$ for $h>0$, Euler underestimates this growing solution at every positive grid time. This exact comparison explains the sign of the error in the worked example and illustrates how a qualitative error claim can sometimes be proved rather than guessed from one table.
Related topics
Explore the idea
Direction field and Euler step
Change one quantity at a time and connect what moves to Euler's Method.
Try it yourself
Hints are part of learning. Open one whenever it makes the next step feel possible.
For $y'=y$, $y(0)=1$, and $h=0.05$, what is $y_1$?
- $y_1=y_0+h f(t_0,y_0)$.
- $y_1=1+0.05(1)=1.05$.
End of lesson
Nice work making it this far.
Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.
