Lesson 98 — Euler's Method (Numerical)
Explicit Euler's method for ODEs: discretization, local error O(h²), global error O(h), implementation, and comparison with Runge-Kutta.
Used in: Cálculo Numérico (UFRGS, USP, UNICAMP) · Spécialité Maths Terminale (França) · Mathematics 4 (IIT-JEE Advanced, Índia)
Rigorous notation, full derivation, hypotheses
Derivation and error analysis
Initial Value Problem
Given the IVP:
We wish to approximate on without a closed-form expression.
Discretization
Divide the interval into equal subintervals:
"The simplest numerical method for solving , , is Euler's method. We replace with the difference quotient and evaluate at : this gives ." — Lebl, Notes on Diffy Qs §1.7
Error analysis via Taylor series
Comparison of methods
Comparison of single-step methods for ODEs. RK4 is the industry standard for precision; Implicit Euler is for stiff equations.
Solved Examples
Exercise list
28 exercises · 7 with worked solution (25%)
- Ex. 98.1Application
Use Euler with to approximate given , .
- Ex. 98.2Application
Use Euler with to approximate , given , . Compare with the exact value .
- Ex. 98.3ApplicationAnswer key
Use Euler with to approximate , given , . Exact: .
- Ex. 98.4Application
Repeat exercise 98.3 with . Compare the errors and verify the 1st order of the method.
- Ex. 98.5Application
Use Euler with for , , and estimate . Compare with the exact value.
- Ex. 98.6Application
Use Euler with for , , and estimate .
- Ex. 98.7ApplicationAnswer key
For , , estimate the local error of Euler's method with on .
- Ex. 98.8Application
Determine the maximum step size for stability of explicit Euler in .
- Ex. 98.9Application
Apply implicit Euler with for , , and estimate .
- Ex. 98.10ApplicationAnswer key
Apply Heun's method (RK2) with for , , and estimate .
- Ex. 98.11Application
For , : calculate the errors in with Euler for and . Verify the 1st order.
- Ex. 98.12Application
How many Euler steps are needed for , , with global error less than on ?
- Ex. 98.13ApplicationAnswer key
Simulate the oscillator , , with Euler and . Calculate , , .
- Ex. 98.14Application
Verify that Euler's method does not conserve the energy of the oscillator . Compare with symplectic Euler.
- Ex. 98.15Modeling
, . Use Euler with to estimate (12 months). Sketch the graph of the calculated points.
- Ex. 98.16ModelingAnswer key
RLC circuit: H, Ω, F, , . Use Euler with to simulate for 3 steps.
- Ex. 98.17Modeling
, °C. Use Euler with min to estimate .
- Ex. 98.18Modeling
Carbon-14 has a half-life of 5730 years. Use Euler with years to estimate the fraction remaining after 5000 years.
- Ex. 98.19Understanding
Why does Euler's method have a global error of if each step has a local error of ?
- Ex. 98.20Understanding
In which situation does explicit Euler's method become impractical due to numerical instability?
- Ex. 98.21Understanding
What is the main advantage of RK4 over Euler's method?
- Ex. 98.22ApplicationAnswer key
Use Euler with to approximate given , . Compare with .
- Ex. 98.23Application
Use Euler with for , . Estimate and compare with the exact value .
- Ex. 98.24Application
For , , compare Euler and Heun (RK2) with to estimate . Exact: .
- Ex. 98.25Modeling
Describe how to experimentally verify the order of a numerical method by comparing errors for and .
- Ex. 98.26Proof
Derive the local error of Euler's method using the Taylor series of around .
- Ex. 98.27Proof
Derive the stability region of explicit Euler's method in the plane and show it is the disk .
- Ex. 98.28ChallengeAnswer key
Apply RK4 with to , . Compare the error with Euler's and confirm that RK4 is 4th order.
Sources
- Lebl, Jiří. Notes on Diffy Qs: Differential Equations for Engineers. Version 6.4. CC-BY-SA. jirka.org/diffyqs — §1.7 covers Euler's method with Taylor error analysis.
- UFRGS Reamat. Cálculo Numérico (Python version). CC-BY-SA. ufrgs.br/reamat/CalculoNumerico — Ch. 8: Euler, Heun, RK4, stability, and error analysis with Python code.
- OpenStax. Calculus Volume 2. CC-BY-NC-SA. openstax.org/details/books/calculus-volume-2 — §4.2: direction fields and Euler's method with graphical interpretation.