A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Euler's Method for ODEs (Error Analysis)

Graduate Depth 104 in the knowledge graph ☐ I know this ☆ Set as goal
12topics build on this
666prerequisites beneath it
See this on the map →
Euler's Method for Numerical SolutionsTaylor Series→→Runge-Kutta Methods
euler-method ode-solving truncation-error

Core Idea

Euler's method y_{n+1} = y_n + h*f(x_n, y_n) has local truncation error O(h²) and global error O(h) by Taylor expansion analysis. The local error at each step accumulates over the integration interval, and the total accumulated error grows linearly with integration length. Understanding this trade-off guides appropriate step size selection.

Explainer

You know Euler's method from practice: starting at y(x₀) = y₀, you step forward by yₙ₊₁ = yₙ + h·f(xₙ, yₙ), where h is the step size. The method produces numbers that approximate the true solution, but it makes errors at every step and those errors accumulate. To understand how reliable the method is, you need to quantify two distinct quantities: local truncation error (the mistake at a single step) and global error (the total accumulated mistake at the end of the integration interval).

The local truncation error comes directly from Taylor series. The true solution satisfies y(xₙ₊₁) = y(xₙ) + h·y'(xₙ) + (h²/2)·y''(xₙ) + O(h³). Euler's method keeps only the first two terms: yₙ₊₁ = yₙ + h·f(xₙ, yₙ) = yₙ + h·y'(xₙ). The discrepancy at one step is therefore (h²/2)·y''(xₙ) + O(h³), which is O(h²). This is the local truncation error. The "2" in the exponent gives Euler's method its classification as a first-order method — the global error is O(h¹), one power lower than the local error.

Why does the global error drop one order? Consider integrating from x = 0 to x = T with step size h. There are N = T/h steps, each contributing a local error of O(h²). If these errors simply added, the total would be N × O(h²) = (T/h) × O(h²) = O(h). Errors also propagate — an error introduced at step k perturbs the trajectory for all subsequent steps — but careful stability analysis shows that this propagation does not cause exponential blowup for ODEs satisfying a Lipschitz condition. The net effect is still O(h) global error. This means halving the step size halves the final error: the method is first-order accurate globally.

The practical consequence is significant. To achieve global error ε, you need h ~ ε, requiring N ~ T/ε steps. For high accuracy (ε = 10⁻⁶), you need a million steps. This cost motivates higher-order methods: the classical Runge-Kutta method of order 4 achieves O(h⁴) global error, requiring only N ~ T/ε^(1/4) steps for the same accuracy — a factor of ε^(3/4) fewer steps. Error analysis is not just bookkeeping; it tells you precisely when Euler's method is adequate and when the step-size cost makes it impractical.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Center of Mass → Conservation of Linear Momentum → Elastic Collisions → Inelastic Collisions → Coefficient of Restitution → Collision Analysis and Real-World Applications → Two-Body Collisions in the Center-of-Mass Frame → Reduced Mass and Two-Body Problems → Kinematics in Two Dimensions → Projectile Motion → Circular Motion: Kinematics → Simple Harmonic Motion → Introduction to Differential Equations → Euler's Method for Numerical Solutions → Euler's Method for ODEs (Error Analysis)

Longest path: 105 steps · 666 total prerequisite topics

Prerequisites (2)

Leads To (1)