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 SeriesRunge-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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsCenter of MassConservation of Linear MomentumElastic CollisionsInelastic CollisionsCoefficient of RestitutionCollision Analysis and Real-World ApplicationsTwo-Body Collisions in the Center-of-Mass FrameReduced Mass and Two-Body ProblemsKinematics in Two DimensionsProjectile MotionCircular Motion: KinematicsSimple Harmonic MotionIntroduction to Differential EquationsEuler's Method for Numerical SolutionsEuler's Method for ODEs (Error Analysis)

Longest path: 105 steps · 666 total prerequisite topics

Prerequisites (2)

Leads To (1)